谄媚隐藏在注意力头中
Sycophancy Hides Linearly in the Attention Heads
AI总结:
研究发现通过线性干预可缓解注意力机制中的谄媚现象,揭示了事实准确性与抵抗倾向的不同机制。
摘要:
我们发现正确的到错误的谄媚信号在多头注意力激活中最为线性可分。受线性表示假设的启发,我们在线性探针上训练残差流、多层感知机(MLP)和注意力层,以分析这些信号出现的位置。尽管可分性出现在残差流和MLP中,但通过这些探针进行引导最有效的是中间层注意力头的一个稀疏子集。使用TruthfulQA作为基础数据集,我们发现在此训练的探针可以有效地转移到其他事实性问答基准上。此外,将我们发现的方向与之前识别出的“诚实”方向进行比较,发现重叠有限,这表明事实准确性以及对 deference 的抵抗来自相关但不同的机制。注意力模式分析进一步表明,有影响力的大头倾向于过度关注用户的怀疑表达,导致谄媚的转变。总体而言,这些发现表明,通过简单的、有针对性的线性干预,可以利用注意力激活的内部几何结构来缓解谄媚问题。
英文摘要:
We find that correct-to-incorrect sycophancy signals are most linearly separable within multi-head attention activations. Motivated by the linear representation hypothesis, we train linear probes across the residual stream, multilayer perceptron (MLP), and attention layers to analyze where these signals emerge. Although separability appears in the residual stream and MLPs, steering using these probes is most effective in a sparse subset of middle-layer attention heads. Using TruthfulQA as the base dataset, we find that probes trained on it transfer effectively to other factual QA benchmarks. Furthermore, comparing our discovered direction to previously identified "truthful" directions reveals limited overlap, suggesting that factual accuracy, and deference resistance, arise from related but distinct mechanisms. Attention-pattern analysis further indicates that the influential heads attend disproportionately to expressions of user doubt, contributing to sycophantic shifts. Overall, these findings suggest that sycophancy can be mitigated through simple, targeted linear interventions that exploit the internal geometry of attention activations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。