arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.09929cs.LGcs.AIcs.CL
收藏

基于特征引导激活添加的大型语言模型可解释干预

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)(新加坡科技研究局)

Samuel Soo, Chen Guang, Wesley Teng, Chandrasekaran Balaganesh, Tan Guoxian, Yan Ming

AI总结:

本文提出特征引导激活添加方法(FGAA),通过在稀疏自编码器潜空间中优化选择特征来构建精确干预向量,在保持输出连贯性的同时优于现有方法,揭示了干预规模与模型能力的权衡。

摘要:

对大型语言模型(LLM)行为的有效和可靠控制是一个重大挑战。虽然激活干预方法(即将干预向量添加到模型的隐藏状态中)是一种很有前景的方法,但现有技术在如何影响模型输出方面往往缺乏精确性和可解释性。我们引入了特征引导激活添加(FGAA),这是一种新颖的激活干预方法,利用了对比激活添加(CAA)和稀疏自编码器目标干预(SAE-TS)的见解。通过在稀疏自编码器(SAE)的潜空间中操作,并采用优化技术来选择所需的 SAE 特征,FGAA 构建了精确的干预向量,在保持干预后模型输出连贯性的同时提供了更好的干预效果。在这方面,在 Gemma-2-2B 和 Gemma-2-9B 模型上跨各种干预任务的评估表明,FGAA 优于现有的 CAA、SAE 解码器干预和 SAE-TS 干预方法。我们的结果还强调了干预规模与一般模型能力之间的重要权衡,这在所有测试的干预方法中都是一致的。

英文摘要:

Effective and reliable control over large language model (LLM) behavior is a significant challenge. While activation steering methods, which add steering vectors to a model's hidden states, are a promising approach, existing techniques often lack precision and interpretability in how they influence model outputs. We introduce Feature Guided Activation Additions (FGAA), a novel activation steering method that leverages insights from Contrastive Activation Addition (CAA) and Sparse Autoencoder-Targeted Steering (SAE-TS). By operating in the latent space of a Sparse Autoencoder (SAE) and employing optimization techniques to select desired SAE features, FGAA constructs precise steering vectors that provide better steering effects while maintaining coherence of steered model outputs. In this regard, evaluations on Gemma-2-2B and Gemma-2-9B models across various steering tasks demonstrate that FGAA outperforms existing steering methods of CAA, SAE decoder steering, and SAE-TS. Our results also highlight important trade-offs between steering scale and general model capabilities that are consistent across all tested steering methods.

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

↑