arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.12404cs.LG
收藏

分析转向向量的泛化性与可靠性

Analyzing the Generalization and Reliability of Steering Vectors

AI Centre, Department of Computer Science, University College London(人工智能中心、计算机科学系、伦敦大学学院)

Daniel Tan, David Chanin, Aengus Lynch, Dimitrios Kanoulas, Brooks Paige, Adria Garriga-Alonso, Robert Kirk

AI总结:

本文系统研究了转向向量在语言模型中的泛化性与可靠性,发现其在分布内受输入和伪相关偏置影响显著、在分布外对提示变化较脆弱,并指出大规模应用仍面临技术挑战。

摘要:

转向向量(Steering Vectors, SVs)已被提出作为一种通过在推理时干预中间模型激活来调整语言模型行为的有效方法。它们在提升模型能力和模型对齐方面展现出潜力。然而,该方法的可靠性和泛化特性尚不明确。在本工作中,我们严格考察了这些特性,并表明转向向量在分布内和分布外均存在显著局限。在分布内,可转向性在不同输入之间高度可变。取决于具体概念,伪相关偏置可能对每个输入的转向效果产生显著贡献,这给转向向量的广泛使用带来了挑战。在分布外,虽然转向向量通常能良好泛化,但对于若干概念而言,它们对提示中的合理变化较为脆弱,导致其无法良好泛化。总体而言,我们的发现表明,尽管转向在合适条件下可以表现良好,但在大规模应用中利用转向向量引导模型行为仍存在技术困难。我们的代码可在 https://github.com/dtch1997/steering-bench 获取。

英文摘要:

Steering vectors (SVs) have been proposed as an effective approach to adjust language model behaviour at inference time by intervening on intermediate model activations. They have shown promise in terms of improving both capabilities and model alignment. However, the reliability and generalisation properties of this approach are unknown. In this work, we rigorously investigate these properties, and show that steering vectors have substantial limitations both in- and out-of-distribution. In-distribution, steerability is highly variable across different inputs. Depending on the concept, spurious biases can substantially contribute to how effective steering is for each input, presenting a challenge for the widespread use of steering vectors. Out-of-distribution, while steering vectors often generalise well, for several concepts they are brittle to reasonable changes in the prompt, resulting in them failing to generalise well. Overall, our findings show that while steering can work well in the right circumstances, there remain technical difficulties of applying steering vectors to guide models' behaviour at scale. Our code is available at https://github.com/dtch1997/steering-bench

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

↑