Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Measuring Affinity between Attention-Head Weight Subspaces via the Projection Kernel

About

Understanding relationships between attention heads is essential for interpreting the internal structure of Transformers, yet existing metrics do not capture this structure well. We focus on the subspaces spanned by attention-head weight matrices and quantify head-to-head relationships using the Projection Kernel (PK), a principal-angle-based measure of subspace similarity. Experiments show that PK reproduces known head-to-head interactions on the IOI task more clearly than prior metrics such as the Composition Score. We further introduce a framework to quantify the informativeness of PK distributions by comparing them with a reference distribution derived from random orthogonal subspaces. As an application, we analyze a directed graph constructed from PK and show that, in GPT2-small, L4H7 acts as a hub by functioning as an identity head.

Hiroaki Yamagiwa, Yusuke Takase, Hidetoshi Shimodaira• 2026

Related benchmarks

TaskDatasetResultRank
Circuit ClusteringGPT-2-small backup-NM circuit pair-level same-circuit VS-ACTIVE
Cluster AUC79
4
Circuit ClusteringGPT-2-small induction circuit VS-ACTIVE (pair-level same-circuit)
Cluster AUC0.89
4
Circuit ClusteringGPT-2-small prev-token circuit VS-ACTIVE (pair-level same-circuit)
Cluster AUC73
4
Circuit ClusteringGPT-2-small name-mover circuit VS-ACTIVE (pair-level same-circuit)
Cluster AUC79
4
Circuit ClusteringGPT-2-small s-inhib circuit VS-ACTIVE (pair-level same-circuit)
Cluster AUC0.74
4
Circuit ClusteringGPT-2-small dup-token circuit VS-ACTIVE (pair-level same-circuit)
Cluster AUC59
4
Circuit ClusteringGPT-2-small neg-NM circuit VS-ACTIVE (pair-level same-circuit)
Cluster-AUC0.96
4
Showing 7 of 7 rows

Other info

Follow for update