跳到正文
arXiv (AI + Vision + Imaging)· Bryce Grant, Peng Wang·· 1 天前AI 评分22

用层论分解Transformer表示:Gluing Local Contexts into Global Meaning

Gluing Local Contexts into Global Meaning: A Sheaf-Theoretic Decomposition of Transformer Representations

AI 导读

研究提出用层论(sheaf theory)在释义图上构建胞腔层,通过Laplacian的核H⁰提取内容子空间,无需训练。仅20维的核在8个模型的CounterFact事实检索上平均超过LEACE全维子空间+17.1pp,联合约束同一事实的所有释义再提升+6.5pp。消融释义变化最大的坐标使模型输出变化达5.6至26.5倍,并在124M至13B参数的9个模型上验证。

正文 · 原文

arXiv:2610.17117v3 Announce Type: replace Abstract: Prior research into interpretability does not test whether a representation stays consistent under paraphrasing. Each pair of paraphrases can be thought of as a local witness that two activations should be the same. From these local witnesses we can build a cellular sheaf on the paraphrase graph. The question of what is consistent under paraphrasing can be answered by the Laplacian $L_\mathcal{F}$ given a frozen model. No training required. Our kernel $H^0$ gives us a content subspace. We show that with only 20 dims the kernel outperforms the subspace that LEACE retains with all dims on held-out CounterFact fact retrieval by $+17.1$\,pp on average across 8 models. By constraining all paraphrases of a fact together we see an additional increase of $+6.5$\,pp. Our spectral complement shows us where the causal influence is concentrated. Ablating the coordinates that vary the most when paraphrased (which approximates ablating the spectral complement at the coordinate level) leads to $5.6$ to $26.5\times$ larger changes in model outputs compared to ablating coordinates with matched per-coordinate variability. We find this across 9 models from 124M to 13B params. By stacking layers we can create a grid which has $b_1 = N(L-1)$ algebraic 1-cycles. The harmonic mass derived from the model varies by nearly 3 orders of magnitude between the 6 architectures. It also tracks the order of steering fragility (Spearman's $\rho = 0.90$, exact one-sided permutation $p = 0.014$). The kernel, its spectral complement and the harmonic mass all come from the same paraphrase graph. Project page: https://cwru-aism.github.io/gluing-lc-page/.

来源:arXiv (AI + Vision + Imaging) · arxiv.org