2026-11-09~10|Jira 留言 406526
背景:眼鏡三選一(300 張人眼樣本,10 折交叉驗證)4 個前端模型的平均比 8 個大模型高。候選句子是 10 月初邊測 SigLIP 邊寫的(10/08d),對 SigLIP 以外的模型可能不利。Weihan 決定:先讓每個模型各自找句子,比較才公平,再看要不要重新挑模型;句子不用給他看,直接跑,以數據為準。
模型:8 個大模型(7 個投票的圖文大模型加 DINOv3 ViT-L/16 + dino.txt)、4 個前端模型(Weihan 2026-11-09:現在只管這 12 個)
圖
samples/ 人眼篩過的沒戴、一般眼鏡、墨鏡各 100 張,從查詢結果的前 5,000 筆挑(11/05a)manage.py embed_samples_and_test_set、文字向量 manage.py embed_texts;用向量算的三選一跟 three_way_scores 算的結果相同(4 個模型比過)manage.py three_way summary,結果在 glasses_three_way.json,網頁 /glasses| 段 | 三選一 | 兩項「− 沒戴」 | 兩階段:先墨鏡 − 沒戴 | 先 max − 沒戴 | 先「wearing glasses」− 沒戴 |
|---|---|---|---|---|---|
| 8 個大模型平均 | 89.3% | 87.1% | 75.5% | 88.5% | 89.3% |
| 4 個前端模型平均 | 95.7% | 96.0% | 83.4% | 95.3% | 94.8% |
候選句子(prompt_tasks.py 的 GLASSES_PHRASES):每種情況 5 種寫法,前 3 種是原本的句子
| 沒戴 | 一般眼鏡 | 墨鏡 |
|---|---|---|
| without glasses | eyeglasses | sunglasses |
| not wearing glasses | clear glasses | glasses with dark tinted lenses |
| bare eyes and no glasses | eyes visible through their glasses | eyes hidden behind dark lenses |
| a face with no eyewear | prescription glasses | shades |
| eyes not covered by anything | spectacles with transparent lenses | glasses that hide their eyes |
manage.py three_way search,結果在 glasses_prompt_search.json| 模型 | 原本(5 組候選) | 各自找(128 組) | 128 組各自固定:最差/中位數/最好 |
|---|---|---|---|
| embeddinggemma2-fp32 | 96.7% | 99.3% | 70.0%/92.7%/99.3% |
| dfn-h14 | 95.3% | 97.3% | 57.7%/86.8%/98.0% |
| siglip2-giant | 93.3% | 94.0% | 65.3%/87.0%/97.0% |
| dinov3-vitl16-dinotxt | 83.7% | 93.7% | 46.7%/72.2%/93.7% |
| pe-core-bigg | 92.7% | 92.3% | 46.3%/79.3%/93.0% |
| clip-l14-336 | 87.7% | 88.3% | 56.0%/75.7%/89.3% |
| openclip-bigg | 86.0% | 88.0% | 49.3%/76.0%/90.7% |
| eva02-e14-plus | 79.3% | 88.0% | 53.7%/75.3%/91.3% |
| 8 個大模型平均 | 89.3% | 92.6% | |
| mobileclip-b | 95.3% | 97.7% | 52.3%/84.7%/98.7% |
| mobileclip-s1 | 93.3% | 97.3% | 42.7%/81.7%/97.3% |
| siglip2-base-384 | 96.7% | 96.3% | 65.3%/90.8%/98.3% |
| siglip2-base | 97.7% | 96.0% | 63.7%/90.8%/98.0% |
| 4 個前端模型平均 | 95.8% | 96.8% |
寫法 3 種 vs 5 種(每種情況前 3 種寫法 27 組、5 種寫法 125 組,各自找):原本就在 96% 以上的模型差 −1.0~0 個百分點;比較弱的模型 OpenCLIP bigG +2.4、EVA02-E +2.3、MobileCLIP S1 +2.0、DINOv3 +1.7、MobileCLIP B +1.4
1 選 1 先篩(每一句單獨看能不能把自己那一類跟另外 2 類分開,AUC,用全部 300 張;每類取前 2 句共 8 組再各自找):跟 125 組全部跑比,差 −2.7~+2.0 個百分點,沒有一致變差。1 選 1 的篩選沒有放進交叉驗證,這個比較稍微偏樂觀
experiments/glasses_prompt_search_analysis.py設定(算之前定好,算完不回頭改句子或偏移)
glasses_vote_fits 存的問法與偏移(前端模型用 79 萬張 8 票一致的圖找,大模型用 300 張找,所以大模型的 C 跟 A 相同);test set 裡只有 1 張被 glasses_vote 拿去找過偏移experiments/glasses_test_set.py| 模型 | A | B | C | A 跟 B:只有 A 對/只有 B 對,McNemar p | B 的 95% 區間 |
|---|---|---|---|---|---|
| embeddinggemma2-fp32 | 90.7% | 92.4% | 90.7% | 3/8,0.227 | 89.4%~95.2% |
| dfn-h14 | 89.3% | 91.7% | 89.3% | 7/15,0.134 | 88.4%~94.6% |
| siglip2-giant | 90.8% | 89.1% | 90.8% | 10/5,0.302 | 85.6%~92.5% |
| eva02-e14-plus | 76.7% | 89.4% | 76.7% | 11/52,< 0.001 | 85.8%~92.9% |
| pe-core-bigg | 87.9% | 88.5% | 87.9% | 13/15,0.851 | 84.8%~91.8% |
| openclip-bigg | 77.5% | 88.2% | 77.5% | 6/40,< 0.001 | 84.8%~91.5% |
| dinov3-vitl16-dinotxt | 81.8% | 85.1% | — | 14/25,0.108 | 81.2%~88.9% |
| clip-l14-336 | 82.5% | 85.0% | 82.5% | 10/18,0.185 | 80.8%~88.9% |
| 8 個大模型平均 | 84.6% | 88.7% | |||
| siglip2-base | 92.3% | 93.0% | 92.0% | 1/3,0.625 | 90.2%~95.6% |
| siglip2-base-384 | 91.3% | 92.4% | 91.3% | 4/7,0.549 | 89.3%~95.1% |
| mobileclip-b | 90.4% | 92.2% | 90.1% | 5/11,0.210 | 89.1%~95.1% |
| mobileclip-s1 | 88.5% | 90.0% | 90.0% | 9/14,0.405 | 86.8%~93.2% |
| 4 個前端模型平均 | 90.6% | 91.9% |
錯在哪裡(4 個前端模型,C;判對的張數 ÷ 總張數,不是平衡正確率)
| 圖 | 張數 | 判對的比例 |
|---|---|---|
| 同時有帽子、頭巾或口罩(LLM 的標籤) | 55 | 80.0%~81.8% |
| 沒有其他遮蔽 | 260 | 92.3%~94.2% |
| 人眼改過答案的(跟抽圖時 LLM 的標籤不同) | 17 | 52.9%~70.6% |
| 人眼沒改答案的 | 298 | 91.3%~94.0% |
large_scale/browser_formats.py 的 REPOS)。排除的 5 個是因為沒有現成可用的瀏覽器版,不是因為比較差:PE-Core-B(onnx-community 的檔一次固定 2 張、沒有設定檔,transformers.js 不支援 PE-Core)、MobileCLIP2 S2、S0(只有個人轉的)、PE-Core-S、T(沒有人轉)限制:test set 是網路上的真人單臉照片,不是使用者的照片;315 張分不出 1~2 個百分點的差距