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

ODESteer: 一种基于常微分方程的统一激活引导框架用于大语言模型对齐

ODESteer: A Unified ODE-Based Steering Framework for LLM Alignment

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Northwestern University(西北大学);William & Mary(威廉与玛丽学院);University of Washington(华盛顿大学);Stanford University(斯坦福大学)

Hongjue Zhao, Haosen Sun, Jiangtao Kong, Xiaochang Li, Qineng Wang, Liwei Jiang, Qi Zhu, Tarek Abdelzaher, Yejin Choi, Manling Li, Huajie Shao

AI总结:

ODESteer通过基于常微分方程的理论框架,统一了激活引导方法,实现了在大语言模型对齐中的显著性能提升。

摘要:

激活引导,或表示工程,提供了一种轻量级的方法来对齐大语言模型(LLMs),通过在推理时间操纵其内部激活。然而,当前的方法有两个关键限制:(i)缺乏指导引导方向设计的统一理论框架,(ii)过度依赖一步引导,无法捕捉激活分布的复杂模式。在本工作中,我们提出了一种基于常微分方程(ODEs)的统一理论框架,用于LLM对齐中的激活引导。我们展示传统激活加法可以被解释为ODE解的一阶近似。基于这种ODE视角,识别引导方向等同于从控制理论中设计一个屏障函数。由此衍生出ODESteer,一种基于屏障函数的ODE引导方法,展示了在LLM对齐中的经验优势。ODESteer通过将屏障函数定义为正负激活之间的对数密度比来识别引导方向,并利用它构建多步和自适应的引导ODE。与最先进的激活引导方法相比,ODESteer在多种LLM对齐基准上实现了持续的经验改进,显著提高了TruthfulQA的5.7%,UltraFeedback的2.5%,以及RealToxicityPrompts的2.4%。我们的工作通过统一其理论基础通过ODEs,为LLM对齐中的激活引导建立了新的原理性视角,并通过所提出的ODESteer方法进行了实证验证。

英文摘要:

Activation steering, or representation engineering, offers a lightweight approach to align large language models (LLMs) by manipulating their internal activations at inference time. However, current methods suffer from two key limitations: (i) the lack of a unified theoretical framework for guiding the design of steering directions, and (ii) an over-reliance on one-step steering that fail to capture complex patterns of activation distributions. In this work, we propose a unified ordinary differential equations (ODEs)-based theoretical framework for activation steering in LLM alignment. We show that conventional activation addition can be interpreted as a first-order approximation to the solution of an ODE. Based on this ODE perspective, identifying a steering direction becomes equivalent to designing a barrier function from control theory. Derived from this framework, we introduce ODESteer, a kind of ODE-based steering guided by barrier functions, which shows empirical advancement in LLM alignment. ODESteer identifies steering directions by defining the barrier function as the log-density ratio between positive and negative activations, and employs it to construct an ODE for multi-step and adaptive steering. Compared to state-of-the-art activation steering methods, ODESteer achieves consistent empirical improvements on diverse LLM alignment benchmarks, a notable $5.7\%$ improvement over TruthfulQA, $2.5\%$ over UltraFeedback, and $2.4\%$ over RealToxicityPrompts. Our work establishes a principled new view of activation steering in LLM alignment by unifying its theoretical foundations via ODEs, and validating it empirically through the proposed ODESteer method.

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

↑