ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
20
Citations
1
Influential Citations
arXiv.org
Venue
2025
Year
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.
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.
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.
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.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba