转向向量已成为一种轻量且有效的对齐大型语言模型(LLM)的方法,通过在推理时将LLM表示向目标行为偏移来调节模型行为。然而,现有方法通常在固定层应用转向向量,隐含假设最优干预层在不同输入中不变。我们论证这种假设本质上受限,因为与目标行为相关的表示可能在不同层编码。理论上,我们证明不同输入可能需要在不同层进行转向以实现与理想模型行为的对齐。我们还提供了实证证据,表明最优转向层在实践中因输入而异。受这些观察启发,我们引入Where to Steer(W2S)框架,通过学习从输入嵌入到最优转向层的映射,适应性地选择干预层。在多个LLM和对齐行为上,W2S在分布内和分布外设置均优于固定层基线。我们的发现强调了LLM对齐中输入依赖控制的重要性,并展示了适应性层选择是当前转向向量方法中缺失的关键设计维度。
英文摘要:
Steering vectors have emerged as a lightweight and effective approach for aligning large language models (LLMs) at inference time, enabling modulation of model behaviors by shifting intermediate representations toward a target behavior. Many existing steering methods apply interventions at globally fixed locations in an LLM, effectively treating the optimal intervention location as input-invariant. However, representations relevant to a target behavior can be encoded at different LLM layers depending on the input. Theoretically, we show that different inputs may require steering at different layers to achieve alignment with a given behavior. Empirically, we observe that the most effective layer for steering varies substantially between inputs. Motivated by these observations, we introduce \textit{Where to Steer} (W2S), a general framework that adaptively selects intervention layers conditioned on the inputs by learning a mapping from input representations to steering layers. Across multiple LLMs and alignment behaviors, W2S consistently outperforms fixed-layer baselines in both in-distribution and out-of-distribution settings. Our findings suggest that input-dependent layer selection is a key design dimension complementary to methods for steering vector extraction.
Activation Steering Induces Emergent Misalignment: Steering Vector Construction and Comprehensive Evaluation
Nanyang Technological University(南洋理工大学);Sun Yat-sen University(中山大学);University of Science and Technology of China(中国科学技术大学);National University of Singapore(新加坡国立大学)
Compositional Steering of Large Language Models with Steering Tokens
NEC Laboratories Europe(NEC欧洲实验室);University of Edinburgh(爱丁堡大学);Center for Artificial Intelligence and Data Science(人工智能与数据科学中心);University of Würzburg(乌尔姆大学);CAIR, Ss. Cyril and Methodius University of Skopje(CAIR,斯·西里尔和方法ius大学)
Interpretable Steering of Large Language Models with Feature Guided Activation Additions
Raffles Science Institute(莱佛士科学学院);Raffles Institution(莱佛士书院);Nous Research(努斯研究机构);Centre for Frontier AI Research (CFAR)(前沿人工智能研究中心);Agency for Science Technology and Research (A*STAR)(新加坡科技研究局)
Where Steering Signals Come From: Activation Source Selection in Activation Steering
Peking University(北京大学);Tsinghua University(清华大学);Beijing Academy of Artificial Intelligence(北京智源人工智能研究院);Tsinghua Shenzhen International Graduate School(清华大学深圳国际研究生院);YiXin-AILab(易信人工智能实验室)
Do Personality Traits Interfere? Geometric Limitations of Steering in Large Language Models
Network Analysis and Social Influence Modelling (NASIM) Lab(网络分析与社会影响建模实验室);School of Physics Maths and Computing(物理数学计算学院);The University of Western Australia(西澳大学);School of Computing(计算学院);Macquarie University(麦觉瑞大学)