Depth-Aware Activation Steering via Attention Residuals

Computer Science > Computer Vision and Pattern Recognition arXiv:2611.21655 (cs) [Submitted on 27 Oct 2026] Title: Depth-Aware Activation Steering via Attention Residuals Authors: Shilong Zhao (Independent Researcher).

计算机科学 > 计算机视觉与模式识别 arXiv:2611.21655 (cs) [提交于 2026 年 10 月 27 日] 标题:基于注意力残差的深度感知激活引导 作者:Shilong Zhao(独立研究员)。

Abstract: Activation steering is a simple, training-free way to modulate LLM behavior, yet existing methods typically inject vectors at a single layer and lack mechanisms for depth-aware propagation or internal verification. We combine two recent ideas - Attention Residuals (AttnRes) providing learnable cross-layer pathways, and Jacobian-lens (J-space) concept readout - into a lightweight depth-aware steering pipeline.

摘要:激活引导是一种简单且无需训练的调节大语言模型(LLM)行为的方法,但现有方法通常在单一层注入向量,且缺乏深度感知传播或内部验证机制。我们将两个近期的概念相结合——提供可学习跨层路径的注意力残差(AttnRes)以及雅可比透镜(J-space)概念读取——构建了一个轻量级的深度感知引导流水线。

On two small open models (Qwen3-0.6B and Qwen3.5-0.8B), distributing a persona vector according to AttnRes-style depth weights yields stronger internal alignment (deeper-layer concept cosine and rank, p<0.0001) and stronger behavioral shifts than single-layer injection. The effect is sign-specific: reverse vectors invert all six metrics, random directions degrade alignment (p<0.0001), and a short LoRA fine-tune erases the imprint.

在两个小型开源模型(Qwen3-0.6B 和 Qwen3.5-0.8B)上,根据 AttnRes 风格的深度权重分配角色向量,比单层注入产生了更强的内部对齐(深层概念余弦相似度和秩,p<0.0001)以及更显著的行为转变。这种效应具有符号特异性:反向向量会使所有六项指标反转,随机方向会降低对齐度(p<0.0001),而短时间的 LoRA 微调则会抹除这种印记。

Injection rewires attention strictly downstream of the injection point (upstream JS = 0.00000). Three practical findings follow. First, a layer-wise geometric decomposition of cosine readouts: at the injection layer 123% of the increase is arithmetic, while 5-11 layers downstream 100% is dynamical. Second, an intensity window: effects are monotone over 0.3-0.7, then generation collapses (617 to 306 to 25 chars). Third, metric discipline: keyword-rule metrics fail LLM-judge validation (kappa <= 0.09), and two rule-based conclusions were retracted.

注入操作严格地重构了注入点下游的注意力(上游 JS = 0.00000)。研究得出三个实践发现。首先,余弦读取的逐层几何分解:在注入层,123% 的增长是算术性的,而在下游 5-11 层,100% 是动态性的。其次,强度窗口:效应在 0.3-0.7 范围内呈单调变化,随后生成能力崩溃(字符数从 617 降至 306 再降至 25)。第三,指标准则:关键词规则指标未能通过 LLM 判别验证(kappa <= 0.09),且两项基于规则的结论已被撤回。

Training the depth weights on a steering objective (200 steps, frozen backbone) raises final alignment 10x on held-out prompts. Cross-persona vectors retain 96-99% of the effect: specificity holds against random, not semantic, directions. We contribute a practical, low-overhead depth-aware steering method with a careful evaluation protocol. Code and data are released.

在引导目标上训练深度权重(200 步,冻结主干网络)使保留提示词上的最终对齐度提高了 10 倍。跨角色向量保留了 96-99% 的效应:特异性在面对随机方向时成立,但在语义方向上不成立。我们贡献了一种实用、低开销的深度感知引导方法,并制定了严谨的评估协议。代码和数据已发布。