将局部上下文粘合为全局意义:Transformer 表示的层论分解

·

研究论文 · 2026/10/28

现有可解释性工具不检验表征在仅改变措辞时是否保持相同内容。我们将每个复述对视为两个激活应一致的局部见证,并在复述图上构建胞腔层;其拉普拉斯算子 L_F 在冻结模型上无需训练即可回答该问题。核 H^0 是一个内容子空间:在 20 维时,它在留出的 CounterFact 事实检索任务上,于八种架构中平均比概念擦除器 LEACE 的保留子空间高出 17.1 个百分点,并且联合约束一个事实的所有复述再增加 6.5 个百分点。谱补集集中了因果影响:消融最具复述变异性的坐标(其逐坐标代理)对模型输出的改变,比消融具有匹配逐坐标变异性的坐标大 5.6 至 26.5 倍,涵盖从 124M 到 13B 参数的九个模型。将层堆叠成网格会产生 b_1 = N(L-1) 个代数 1-循环,由此得到的模型导出调和质量在六种架构间变化近三个数量级,并按其引导脆弱性对它们进行排序(Spearman ρ= 0.90,精确单侧置换 p = 0.014)。同一复述图产生了内容子空间、影响方向和脆弱性度量。项目页面:https://cwru-aism.github.io/gluing-lc-page/

该研究提供了一种无需训练的可解释性工具,能同时识别模型中的内容表征、因果影响方向和脆弱性,并在多个架构和规模上验证有效,对理解Transformer表征和提升模型鲁棒性有重要意义。

Existing interpretability tools do not test whether a representation keeps the same content when only the phrasing changes. We treat each paraphrase pair as a local witness that two activations should agree and build a cellular sheaf over the paraphrase graph; its Laplacian L_F answers the question on a frozen model with no training. The kernel H^0 is a content subspace: at 20 dimensions it beats the preserved subspace of the concept eraser LEACE on held-out CounterFact fact retrieval across eight architectures by a mean +17.1\,pp, and constraining all paraphrases of a fact jointly adds a further +6.5\,pp. The spectral complement concentrates causal influence: ablating the most paraphrase-variable coordinates, a coordinate-wise proxy for it, changes model outputs 5.6 to 26.5times more than ablating coordinates of matched per-coordinate variability, across nine models from 124M to 13B parameters. Stacking layers into a grid creates b_1 = N(L-1) algebraic 1-cycles, and the resulting model-derived harmonic mass varies by nearly three orders of magnitude across six architectures and ranks them as their steering fragility does (Spearman ρ= 0.90, exact one-sided permutation p = 0.014). The same paraphrase graph yields the content subspace, the influence directions, and the fragility measure. Project page: https://cwru-aism.github.io/gluing-lc-page/

阅读原文

参与讨论