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

信念动力学揭示了上下文学习和激活引导的双重本质

Belief Dynamics Reveal the Dual Nature of In-Context Learning and Activation Steering

Eric Bigelow, Daniel Wurgaft, YingQiao Wang, Noah Goodman, Tomer Ullman, Hidenori Tanaka, Ekdeep Singh Lubana

AI总结:

本文从贝叶斯视角提出统一框架,解释LLM通过上下文学习和激活引导控制行为的双重本质,并预测其在不同干预下的行为变化。

摘要:

大型语言模型(LLMs)可以通过提示(上下文学习)和内部激活(激活引导)在推理时进行控制。已有不同的解释方法来说明这些方法,但它们共同的目标是控制模型行为,这引发了疑问:这些看似不同的方法是否可以被视为更广泛框架的具体实例。受此启发,我们从贝叶斯视角发展了一个统一的、预测性的LLM控制解释框架。具体来说,我们提出,基于上下文和激活的干预通过改变模型对潜在概念的信念来影响其行为:引导操作通过改变概念先验,而上下文学习导致证据的积累。这导致了一个闭合形式的贝叶斯模型,能够高度预测LLM在上下文和激活干预下的行为,这些干预在受先前多示例上下文学习工作启发的领域中。该模型帮助我们解释了先前的实证现象——例如,随着上下文证据的积累,学习曲线呈现S形——同时预测了新的现象——例如,两种干预在对数信念空间中的可加性,导致不同的阶段,使得通过略微改变干预控制可以引发突然且剧烈的行为变化。总体而言,这项工作为提示式和激活式LLM行为控制提供了统一的解释,并提供了一种经验上预测这些干预效果的方法。

英文摘要:

Large language models (LLMs) can be controlled at inference time through prompts (in-context learning) and internal activations (activation steering). Different accounts have been proposed to explain these methods, yet their common goal of controlling model behavior raises the question of whether these seemingly disparate methodologies can be seen as specific instances of a broader framework. Motivated by this, we develop a unifying, predictive account of LLM control from a Bayesian perspective. Specifically, we posit that both context- and activation-based interventions impact model behavior by altering its belief in latent concepts: steering operates by changing concept priors, while in-context learning leads to an accumulation of evidence. This results in a closed-form Bayesian model that is highly predictive of LLM behavior across context- and activation-based interventions in a set of domains inspired by prior work on many-shot in-context learning. This model helps us explain prior empirical phenomena - e.g., sigmoidal learning curves as in-context evidence accumulates - while predicting novel ones - e.g., additivity of both interventions in log-belief space, which results in distinct phases such that sudden and dramatic behavioral shifts can be induced by slightly changing intervention controls. Taken together, this work offers a unified account of prompt-based and activation-based control of LLM behavior, and a methodology for empirically predicting the effects of these interventions.

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

↑