arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.13259cs.CLcs.AI
收藏

Transformer 如何拒绝错误答案:事实约束处理的旋转动力学

How Transformers Reject Wrong Answers: Rotational Dynamics of Factual Constraint Processing

University of California, Berkeley(加州大学伯克利分校)

Javier Marín

AI总结:

研究揭示了Transformer在处理事实性问题时,隐藏状态空间中正确与错误延续路径的旋转分离现象,揭示了模型在深层结构中对错误延续的非局部化偏好。

摘要:

当解码器-only Transformer 被强制处理事实性查询的匹配正确和错误单token延续时,两种路径在隐藏状态空间中以特定方式分离:从查询-only 表示出发的位移向量保持大致相等的幅度但方向旋转远离。角分离在中层增加,后期层解决不对称结果——在错误运行中,logit-lens 倾向远低于朴素先验,对应模型将错误token的概率约11.5倍于正确token。该双阶段模式——中层旋转分离后后期层不对称承诺——被描述为模型对外部看似拒绝错误延续的实证几何特征,但明确指出是观测描述而非因果解释。该模式在六个解码器-only Transformer 中一致,包括五个架构家族(1B到13B参数)。第七个模型(Qwen2 1.5B)在当前提取协议下显示平坦曲线,可能是tokenizer-fragmentation的artefact而非真实规模限制;是否存在临界出现阈值的问题仍悬而未决。单层激活拼接在任何层带均无法恢复正确token,意味着后期层不对称性并非局限于离散组件。总体而言,证据支持事实约束处理的分布式轨迹账户——几何结构在许多层中逐步累积出现,而非单一局部化回溯账户。

英文摘要:

When a decoder-only transformer is forced to process matched correct and incorrect single-token continuations of a factual query, the two pathways through hidden-state space diverge: displacement vectors from the query-only representation keep near-equal magnitude but rotate apart, with angular separation growing through mid-depth before late layers resolve an asymmetric outcome. A logit-lens preference in the incorrect run falls far below the equal-probability prior (roughly 11.5x more mass on the incorrect token than the correct one). We read this pattern, rotational divergence then late-layer asymmetric commitment, as the geometric signature of the model externally appearing to reject a wrong continuation, while staying explicit that it is observational, not causal: the incorrect run could equally reflect the model conforming to the token it is forced to carry, which only a random-token control can settle. It holds across six decoder-only transformers spanning four architecture families (Llama, Mistral, Gemma, StableLM) from 1B to 13B parameters; a seventh (Qwen2 1.5B) is flat under our protocol, plausibly a tokenizer artefact, leaving an emergence threshold open. Linear probes recover the distinction at intermediate depth, and cross-domain transfer is structurally asymmetric, a financial-medical corridor transferring far better than transport pairs. Where single-layer activation patching is cleanly interpretable (LLaMA-2 13B, Mistral 7B) it yields no layer band of consistent recovery; a third model (StableLM-2 1.6B) recovers uniformly above the ceiling, which we diagnose as a code-path artefact and exclude. Under this scoped null the late-layer asymmetry is not localized to a single component, fitting a distributed-by-trajectory account rather than single-layer localized recall. We document this with forced-completion probing across seven models, three domains, and 300 queries.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑