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

最小化激活引导中的附带损害

Minimizing Collateral Damage in Activation Steering

Department of Electrical \& Computer Engineering, Rice University, Houston, USA;Department of Computational;Applied Mathematics, Rice University, Houston, USA;Department of Electrical \& Computer Engineering, The University of Texas at Austin, Austin, USA

Tam Nguyen, Tu Anh Nguyen, Sina Alemohammad, Richard G. Baraniuk

AI总结:

本文提出了一种基于约束优化的框架,通过数学形式化附带损害并优化激活变化,以更精确地控制大语言模型行为,同时减少对无关任务性能的影响。

摘要:

激活引导是一种通过干预内部表示来控制大语言模型(LLM)行为的方法,以增强与特定目标特征方向的对齐。然而,标准干预如向量加法常导致``附带损害'',即非目标特征方向上的激活对齐意外变化。这种损害发生因为标准方法隐假设非目标特征的各向同性。本文提供附带损害的数学形式化,并引入一个原理性框架,将引导建模为约束优化问题。我们的方法找到一个新的激活,以最小化预期平方附带变化,权重由激活的实证二阶矩矩阵决定。这种加权编码了不同特征方向的扰动非均匀成本,不同于各向同性方法对所有特征方向的均匀惩罚。通过考虑激活的实证二阶矩,我们的方法实现了更精确的控制,同时减少了对无关任务性能的退化。

英文摘要:

Activation steering is a method for controlling Large Language Model (LLM) behavior by intervening in its internal representations to increase the alignment with a specific target feature direction. However, standard interventions, such as vector addition, often cause ``collateral damage", defined as unintended changes in the alignment of activations along other non-target feature directions. This damage occurs because standard methods implicitly assume the isotropy of non-target features. In this work, we provide a mathematical formalization of collateral damage and introduce a principled framework that models steering as a constrained optimization problem. Our method finds a new activation that minimizes the expected squared collateral change weighted by the empirical second-moment matrix of activations. This weighting encodes the nonuniform cost of the perturbation in different feature directions, in contrast to isotropic approaches that penalize changes uniformly in all feature directions. By accounting for the empirical second-moment of activations, our approach achieves more precise control while reducing the degradation of model performance on unrelated tasks.

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

↑