给定提示词“Rome is in”,我们能否仅通过将少数相关激活向量乘以标量,就能引导语言模型把对错误词元“France”的预测翻转为正确词元“Italy”?我们认为,成功对模型进行干预是解释其内部运作机制的前提。具体而言,我们提出了一个包含三项指标的目标:成功的干预应能将正确与错误词元的预测结果互换(有效性),同时不影响其他词元(忠实性),且干预需具备稀疏性(最小性)。借助基于梯度的优化方法,该目标让我们能够学习(并后续评估)一种特定的高效且可解释的干预方式:激活缩放(activation scaling)仅修改激活向量的带符号幅值,以增强、削弱或反转模型中已编码的引导方向。在合成任务上,这种干预方式在有效性和忠实性方面与引导向量(steering vectors)表现相当,但最小性远优于后者,让我们能够精准定位可解释的模型组件。我们从多个角度评估了激活缩放,在不同数据集上对比了性能,并将激活标量设为激活向量本身的可学习函数,以推广到不同长度的提示词场景。
英文摘要:
Given the prompt "Rome is in", can we steer a language model to flip its prediction of an incorrect token "France" to a correct token "Italy" by only multiplying a few relevant activation vectors with scalars? We argue that successfully intervening on a model is a prerequisite for interpreting its internal workings. Concretely, we establish a three-term objective: a successful intervention should flip the correct with the wrong token and vice versa (effectiveness), and leave other tokens unaffected (faithfulness), all while being sparse (minimality). Using gradient-based optimization, this objective lets us learn (and later evaluate) a specific kind of efficient and interpretable intervention: activation scaling only modifies the signed magnitude of activation vectors to strengthen, weaken, or reverse the steering directions already encoded in the model. On synthetic tasks, this intervention performs comparably with steering vectors in terms of effectiveness and faithfulness, but is much more minimal allowing us to pinpoint interpretable model components. We evaluate activation scaling from different angles, compare performance on different datasets, and make activation scalars a learnable function of the activation vectors themselves to generalize to varying-length prompts.
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(易信人工智能实验室)
Fine-Grained Activation Steering: Steering Less, Achieving More
School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore(电子与电气工程学院,南洋理工大学,新加坡);Home Team Science and Technology Agency (HTX), Singapore(家庭团队科技局(HTX),新加坡)
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)(新加坡科技研究局)
Language Model Activations Inhabit Privileged Error-Correcting Basins
Goodfire;University of Southern California(南加州大学);Massachusetts Institute of Technology(麻省理工学院);Northeastern University(东北大学);Stanford University(斯坦福大学);Harvard University(哈佛大学)
LF-Steering: Latent Feature Activation Steering for Enhancing Semantic Consistency in Large Language Models
College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部);IT Innovation and Research Center, Huawei Technologies(华为技术有限公司 IT 创新研究中心);Informatics, University of Edinburgh(爱丁堡大学信息学院)
From Weights to Activations: Is Steering the Next Frontier of Adaptation?
Saarland University(萨尔兰大学);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心);Centre for European Research in Trusted AI (CERTAIN)(可信AI欧洲研究中心);Munich Center for Machine Learning(慕尼黑机器学习中心);Fraunhofer Heinrich Hertz Institute(弗劳恩霍夫海因里希·赫兹研究所);Technological University Dublin(都柏林技术大学);Technische Universität Berlin(柏林技术大学);Berlin Institute for the Foundations of Learning and Data (BIFOLD)(柏林学习与数据基础研究所)