Preprint
Large Language Models

Unified Bayesian Account of LLM Control

Eric J. Bigelow, Daniel Wurgaft, YingQiao Wang, Noah D. Goodman, Tomer D. Ullman, Hidenori Tanaka, E. Lubana
November 1, 2025arXiv.org20 citations

20

Citations

1

Influential Citations

arXiv.org

Venue

2025

Year

Abstract

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.

Analysis

Why This Paper Matters

This paper addresses a fundamental gap in the understanding of how large language models (LLMs) can be controlled at inference time. Currently, practitioners use two seemingly distinct approaches: prompt-based in-context learning and activation steering. While both are effective, they have been studied separately, leaving the field without a unified theoretical framework. By providing a Bayesian account that subsumes both methods, this work enables researchers and engineers to reason about control interventions in a principled, predictive manner. This is particularly important as LLMs are deployed in high-stakes applications where reliable behavior is critical.

The paper's Bayesian perspective is elegant: it posits that both interventions affect the model's belief in latent concepts. Activation steering modifies the prior probability of a concept, while in-context learning provides evidence that updates the posterior. This framing not only explains existing empirical phenomena—such as the sigmoidal shape of learning curves as more examples are provided—but also predicts new effects, like the additivity of interventions in log-belief space. This predictive power is a significant step toward making LLM control more systematic and less reliant on trial-and-error.

Technical Contributions

  • Unified Bayesian Framework: The authors formalize LLM control as Bayesian inference over latent concepts, where activation steering sets concept priors and in-context learning provides likelihood evidence.
  • Closed-Form Model: They derive a closed-form expression for the posterior belief, enabling direct prediction of model behavior without requiring full model access or retraining.
  • Explanation of Sigmoidal Learning Curves: The model naturally explains why in-context learning exhibits a sigmoidal pattern: as evidence accumulates, the posterior shifts from prior-dominated to data-dominated, with a sharp transition region.
  • Prediction of Additivity in Log-Belief Space: The framework predicts that combining activation steering and in-context learning results in additive effects on the log-odds of concept beliefs, leading to distinct behavioral phases and potential sudden shifts.
  • Empirical Validation: The model is tested across multiple domains inspired by prior work on many-shot in-context learning, demonstrating high predictive accuracy.

Results

The paper reports that the Bayesian model is "highly predictive" of LLM behavior across both context- and activation-based interventions. It successfully reproduces known empirical phenomena, such as the sigmoidal shape of learning curves as the number of in-context examples increases. More importantly, it predicts novel behaviors, including the additivity of interventions in log-belief space. This additivity implies that by slightly adjusting either the steering strength or the number of examples, one can induce sudden and dramatic behavioral shifts—a finding with practical implications for controlling model outputs precisely.

Significance

This work has broad implications for the AI field. First, it provides a theoretical foundation that unifies two previously separate areas of LLM research, potentially leading to more efficient and principled control methods. Second, the predictive model offers a practical tool for engineers: by estimating concept priors and evidence, one can forecast how an LLM will respond to combined interventions without exhaustive experimentation. Finally, the framework opens avenues for future research, such as extending the Bayesian account to other control methods (e.g., fine-tuning) or exploring the neural basis of concept representations in LLMs. For Neura Market's audience, this paper is a must-read for anyone working on LLM alignment, safety, or advanced prompting strategies.