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

COLD-Steer: 通过上下文一步学习动态引导大型语言模型

COLD-Steer: Steering Large Language Models via In-Context One-step Learning Dynamics

Georgia Institute of Technology(佐治亚理工学院);Massachusetts Institute of Technology(麻省理工学院)

Kartik Sharma, Rakshit S. Trivedi

AI总结:

COLD-Steer通过近似学习动态实现无需训练的LLM引导,有效提升引导效果并减少样本需求。

摘要:

激活引导方法能够在不重新训练的情况下控制大型语言模型(LLM)的行为,但当前方法面临一个根本性的权衡:样本高效的方法在捕捉标注示例中的引导信号时表现不佳,而能够更好地提取这些信号的方法需要数百到数千个示例。我们介绍了COLD-Steer,一个无需训练的框架,通过近似上下文示例上梯度下降所导致的表示变化来引导LLM的激活。我们的关键见解是,对少量示例进行微调的效果可以无需实际参数更新,在推理时高效地近似。我们通过两种互补的方法进行了形式化:(i) 一个单位核近似方法,直接使用对激活的梯度进行更新,归一化跨示例;(ii) 一个有限差分近似方法,仅需两次正向传递,无论示例数量如何。在各种引导任务和基准上的实验表明,COLD-Steer在使用比最佳基线少50倍的样本的情况下,实现了高达95%的引导有效性。COLD-Steer使能够容纳多样的观点而无需大量的演示数据,我们通过在多元对齐任务上的实验进行了验证。我们的框架为适应性、上下文感知的模型控制开辟了新可能,能够通过原理性地近似学习动态而非专门的训练过程,灵活地应对不同驱动的人类偏好。

英文摘要:

Activation steering methods enable inference-time control of large language model (LLM) behavior without retraining, but current approaches face a fundamental trade-off: sample-efficient methods suboptimally capture steering signals from labeled examples, while methods that better extract these signals require hundreds to thousands of examples. We introduce COLD-Steer, a training-free framework that steers LLM activations by approximating the representational changes that would result from gradient descent on in-context examples. Our key insight is that the effect of fine-tuning on a small set of examples can be efficiently approximated at inference time without actual parameter updates. We formalize this through two complementary approaches: (i) a unit kernel approximation method that updates the activations directly using gradients with respect to them, normalized across examples, and (ii) a finite-difference approximation requiring only two forward passes regardless of example count. Experiments across a variety of steering tasks and benchmarks demonstrate that COLD-Steer achieves upto 95% steering effectiveness while using 50 times fewer samples compared to the best baseline. COLD-Steer facilitates accommodating diverse perspectives without extensive demonstration data, which we validate through our experiments on pluralistic alignment tasks. Our framework opens new possibilities for adaptive, context-aware model control that can flexibly address varying loss-driven human preferences through principled approximation of learning dynamics rather than specialized training procedures.

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

↑