Objects as Addresses: Instance Binding in Vision Transformer Attention

Khalil Sabri, Guillaume-Alexandre Bilodeau, Nicolas Saunier, Wassim Bouachir · 2026-11-12 · cs.CV

論文重點整理(忠實摘要,來源:agy)

一、Abstract(摘要翻譯)

人類能自然地將視覺場景解析為連貫的個別物件,而非零散的特徵,這項能力在認知科學中被稱為物件綁定(object binding)。儘管近期的研究顯示預訓練視覺 Transformer(Vision Transformers, ViTs)本質上獲得了這項能力,但原生的自注意力計算在機制上如何保持物件個體(object instances)分離仍未解決。透過對八個預訓練 ViT 的研究,我們發現個體分離在注意力路由(attention routing)中的表現比在 token 內容中更強烈:選定的 query–key 關係比 value 相似度或殘差表示(residual representations)更可靠地區分個別物件。在注意力頭內部,屬於同一個體的 patches 傾向於從一個共同的影像區域讀取,我們稱之為它們的「注意力位址」(attention address)。同一人外觀上不同的部位共享一個位址,而完全相同的複製個體則獲得各自獨立且可移動的位址。這些共享的目標區域之所以產生,部分原因是 query 與 keys 的空間結構相互作用,將注意力引導至一個物件的一致區域,並引導至另一個物件的其他區域。在 DINOv2 以及我們測試的大多數其他主幹網路中,在選定的注意力頭編輯此 query 組成成分,可將其注意力位址重新導向至另一個個體。依據此 query 組成成分將 patches 進行分組可分離同類別的個體,達到 .615 的 FG-ARI,相較之下,對傾向於將它們合併的最終層特徵進行相同分群僅有 .289。


二、Methods(研究方法)


三、Results(研究結果)

1. 空間配對控制測試下的個體分離表現(Section 3.3, Table 3)

2. 注意力位址(Attention Address)與共享讀取特性(Section 4, Section C)

3. 空間基底配適度與空間請求分析(Section 5, Section D)

4. 介入編輯與分群結果(Section 6)


四、Key Findings(核心發現)

  1. 個體分離訊號高度集中於特定自注意力頭的路由端(Q/K):在嚴格控制相對空間偏移量的測試下,8 個預訓練 ViT 的 Query、Key、Q–K 交互作用及注意力權重區分同類別相異個體的 AUC(.62–.81)顯著優於殘差表示(.55–.63)及 Value 相似度。
  2. 同一個體的相異部位共享「注意力位址」(Attention Address):同一物件的 patches 傾向讀取相同的影像區域(平均目標座標);外觀相異的人體部位共享位址(AUC 達 .935),而外觀完全相同的複製物件則各自擁有獨立且隨物件移動的位址。
  3. Query 透過二階空間基底定義「空間請求」(Spatial Request):平均 Key 的空間變化有 91% 可被包含 5 個空間圖的二階多項式解釋;Query 與此空間基底的交互作用向量(5 維)足以預測實際注意力位址($R^2 = .62$),並在同實例配對測試中達到高達 .872 的 AUC。
  4. 編輯 Query 空間請求可因果性重新導向注意力,且請求分群能有效分離重複物件:置換單一注意力頭的空間請求,可使注意力讀取位置轉向另一個體(位移預測 $R^2 = 0.82$);直接利用空間請求進行無監督分群,其同類別個體分離指標(FG-ARI = .615)大幅超越最終層輸出特徵(.289)及專用物件中心模型 SPOT(.356)。

原始摘要

Humans naturally parse visual scenes into coherent individual objects rather than scattered features, a capability cognitive science calls object binding. While recent work shows that pretrained Vision Transformers (ViTs) intrinsically acquire this ability, how native self-attention computations mechanistically keep object instances separate remains unresolved. By studying this across eight pretrained ViTs, we found that instance separation is expressed more strongly in attention routing than in token content: selected query-key relations distinguish individual objects more reliably than value similarity or residual representations. Inside heads, patches belonging to one individual tend to read from a common image region, which we term their attention address. Visually distinct parts of one person share an address, whereas identical duplicated instances receive separate, movable addresses. These shared destinations arise in part because query interactions with the spatial structure of keys direct attention toward consistent regions for one object and elsewhere for another. In DINOv2 and most other backbones we tested, editing this query component at the selected head redirects its attention address toward another individual. Grouping patches by this query component separates same-category instances, reaching .615 FG-ARI versus .289 for the same clustering of final-layer features, which tend to merge them.