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

LLM中的拒绝行为是一个仿射函数

Refusal in LLMs is an Affine Function

EleutherAI;Manifold Research(曼尼福德研究机构)

Thomas Marshall, Adam Scherlis, Nora Belrose

AI总结:

本文提出仿射概念编辑(ACE)方法,通过结合仿射子空间投影和激活加法直接干预模型激活,在十个模型上精确控制拒绝行为,优于现有方法。

摘要:

我们提出仿射概念编辑(ACE)作为一种通过直接干预激活来引导语言模型行为的方法。我们从模型激活向量的仿射分解开始,并证明先前引导模型行为的方法对应于该分解项的子集。然后我们推导了ACE,并用它在包括Llama 3 70B在内的十个不同模型上控制拒绝行为。ACE结合了仿射子空间投影和激活加法,以在各种提示类型上可靠地控制模型的拒绝响应。我们使用基于LLM的评分对有害和无害提示集合评估结果。实验表明,ACE始终比现有方法实现对模型行为更精确的控制,并泛化到仅通过仿射子空间投影进行方向消融会产生不连贯输出的模型。复现结果的代码可在https://github.com/EleutherAI/steering-llama3获取。

英文摘要:

We propose affine concept editing (ACE) as an approach for steering language models' behavior by intervening directly in activations. We begin with an affine decomposition of model activation vectors and show that prior methods for steering model behavior correspond to subsets of terms of this decomposition. We then provide a derivation of ACE and use it to control refusal behavior on ten different models, including Llama 3 70B. ACE combines affine subspace projection and activation addition to reliably control the model's refusal responses across prompt types. We evaluate the results using LLM-based scoring on a collection of harmful and harmless prompts. Our experiments demonstrate that ACE consistently achieves more precise control over model behavior than existing methods and generalizes to models where directional ablation via affine subspace projection alone produces incoherent outputs. Code for reproducing our results is available at https://github.com/EleutherAI/steering-llama3 .

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

↑