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

语言模型表示引导的改进方法

Improved Representation Steering for Language Models

Stanford University(斯坦福大学)

Zhengxuan Wu, Qinan Yu, Aryaman Arora, Christopher D. Manning, Christopher Potts

AI总结:

提出无参考偏好引导(RePS),一种双向偏好优化目标,在Gemma模型上优于现有表示引导方法,缩小与提示引导的差距,并提升可解释性和鲁棒性。

摘要:

语言模型(LM)的引导方法旨在通过改变模型输入、权重或表示来调整行为,从而对模型生成提供细粒度且可解释的控制。近期研究表明,在引入或抑制特定概念时,调整权重或表示往往不如通过提示引导有效。我们展示了如何通过新的无参考偏好引导(RePS)改进表示引导,这是一种双向偏好优化目标,可同时进行概念引导和抑制。我们训练了RePS的三种参数化形式,并在大规模模型引导基准AxBench上进行了评估。在规模从2B到27B的Gemma模型上,RePS优于所有使用语言建模目标训练的现有引导方法,并大幅缩小了与提示引导的差距,同时提升了可解释性并最小化参数数量。在抑制方面,RePS在Gemma-2上匹配了语言建模目标,在更大的Gemma-3变体上则超越了它,同时能抵御基于提示的越狱攻击,而这些攻击可击败提示引导。总体而言,我们的结果表明,RePS为引导和抑制提供了一种可解释且稳健的提示引导替代方案。

英文摘要:

Steering methods for language models (LMs) seek to provide fine-grained and interpretable control over model generations by variously changing model inputs, weights, or representations to adjust behavior. Recent work has shown that adjusting weights or representations is often less effective than steering by prompting, for instance when wanting to introduce or suppress a particular concept. We demonstrate how to improve representation steering via our new Reference-free Preference Steering (RePS), a bidirectional preference-optimization objective that jointly does concept steering and suppression. We train three parameterizations of RePS and evaluate them on AxBench, a large-scale model steering benchmark. On Gemma models with sizes ranging from 2B to 27B, RePS outperforms all existing steering methods trained with a language modeling objective and substantially narrows the gap with prompting -- while promoting interpretability and minimizing parameter count. In suppression, RePS matches the language-modeling objective on Gemma-2 and outperforms it on the larger Gemma-3 variants while remaining resilient to prompt-based jailbreaking attacks that defeat prompting. Overall, our results suggest that RePS provides an interpretable and robust alternative to prompting for both steering and suppression.

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

↑