Under stochastic decoding, a single context can elicit many different answers from a language model. Characterizing this variation typically requires many expensive autoregressive rollouts, each revealing only one realization. We ask whether the activations produced while reading the context can directly forecast the model's rollout activations. We train context--answer metamodels that map a context activation sequence to point or distribution forecasts of mean-pooled answer activations. We find that (i) the four metamodel families we study forecast mean-pooled answer activations with high fidelity, and the distribution metamodels also capture rollout variability; (ii) performance improves as the training set grows to 500,000 prompts, and the metamodels generalize zero-shot to out-of-domain datasets; (iii) their forecasts retain behavior-predictive signal; and (iv) context activations from Qwen2.5 predict mean-pooled answer activations from Qwen3.5 and Gemma 4, suggesting that activation forecasts can transfer across models. Together, these results suggest that context activation traces can support scalable forecasts of behaviors in LLM answers before the first answer token is generated.
Figures & tables
Figure 1: Forecasting a future activation distribution. The metamodel receives context activations from a language model and produces either a point forecast of the expected mean-pooled answer activation (linear ridge or MLP) or a distribution forecast over mean-pooled answer activations (Gaussian or flow). Multiple decoding seeds provide training and evaluation targets.
Figure 2: Prompt coverage drives forecast quality through the largest tested scale, in and out of domain. Columns correspond to evaluation sets and show mean R2 for the linear ridge, MLP, and flow metamodels. All metamodels are trained only on LMSYS; WeirdChat (2,660 prompts) and IFEval (541 prompts) are zero-shot, with four rollouts per prompt. The linear ridge metamodel uses the final context-token activation and the neural models use the 32-bin context trace. Other endpoint metrics are in Table 1 .
Energy score ↓
Variance Spearman ρ↑
Variance ratio →1
Evaluation set
Gaussian
Flow
Gaussian
Flow
Gaussian
Flow
LMSYS
0.06686
0.06747
0.829
0.690
1.532
1.299
WeirdChat
0.06978
0.06851
0.610
0.633
1.961
1.857
IFEval
0.10330
0.10032
0.679
0.611
1.547
1.833
Table 1: Distribution metrics at the final 500,000-prompt LMSYS-only checkpoint. WeirdChat and IFEval are zero-shot evaluations.
Figure 3: Forecasted activations retain behavior-predictive signal. Answer-level AUPRC on held-out WeirdChat prompts. Dashed segments show each group’s positive-rollout base rate. The actual-answer probe observes generated answers.
Figure 4: Qwen2.5 traces preserve most of the forecast quality for Qwen3.5 and Gemma 4. Mean R2 for linear ridge, MLP, and flow metamodels. Rows show target models; curves compare Qwen2.5 and matched target-model conditioning. Error bars show one standard deviation over three rollout partitions (Qwen3.5) or three initialization replicates (Gemma 4 MLP/flow); Gemma 4 linear ridge fits are deterministic (Appendix G ).
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 5: Linear ridge input comparison. Mean R2 for LMSYS-only linear ridge metamodels from 100 to 500,000 training prompts. In legend order, the inputs are the 32-bin context trace, final context-token activation, and mean context activation. At 500,000 prompts, the final context-token activation performs best on all three domains; its LMSYS R2 is 0.784, versus 0.750 for the 32-bin context trace and 0.734 for the mean context activation. WeirdChat and IFEval are zero-shot; selection uses only LMSYS validation.
Figure 6: MLP input comparison. Mean R2 from 100 to 500,000 training prompts. Columns show held-out LMSYS, zero-shot WeirdChat, and zero-shot IFEval. At 500,000 training prompts, the full context trace reaches LMSYS R2=0.881 , compared with 0.874 for the 32-bin context trace, 0.842 for the final context-token activation, and 0.834 for the mean context activation. The full context trace has the highest endpoint R2 on all three domains (Table 2 ).
Figure 7: Flow input comparison. Mean R2 from 100 to 500,000 training prompts. Columns show held-out LMSYS, zero-shot WeirdChat, and zero-shot IFEval. At 500,000 training prompts, the full context trace reaches LMSYS R2=0.860 , versus 0.852 for the 32-bin context trace, 0.802 for the final context-token activation, and 0.804 for the mean context activation. The full context trace has the highest endpoint R2 on all three domains (Table 2 ).
Model
Input
LMSYS R2
WeirdChat R2
IFEval R2
Linear ridge
32-bin context trace
0.7498
0.4844
0.4854
Linear ridge
Final context-token activation
0.7844
0.6095
0.4996
Linear ridge
Mean context activation
0.7335
0.5447
0.4873
MLP
32-bin context trace
0.8739
0.7309
0.6839
MLP
Full context trace
0.8808
0.7591
0.7183
MLP
Final context-token activation
0.8418
0.6636
0.5383
Appendix
Table 2: Representation endpoints at 500,000 LMSYS training prompts. WeirdChat and IFEval are zero-shot. The full context trace has the highest observed R2 for both neural models on all three domains. The linear ridge metamodel compares the 32-bin context trace, final context-token activation, and mean context activation.
Figure 8: Eight rollout targets capture most of the repeat-sampling gain. Held-out mean R2 at 100,000 training prompts versus training rollouts. Error bars show standard deviations across three fits with different neural-network training seeds and training-rollout subsets; the subsets coincide at 12 and 16 rollouts. From 8 to 16 rollouts, the MLP gains 0.0032 and the flow gains 0.0046 . The main experiments use four rollouts per prompt due to compute constraints. Table 3 gives the full values.
Model
2 rollouts
4 rollouts
8 rollouts
12 rollouts
16 rollouts
Linear ridge
0.7893±0.0003
0.7924±0.0003
0.7940±0.0001
0.7944†
0.7946†
MLP
0.8469±0.0006
0.8595±0.0010
0.8665±0.0005
0.8688±0.0008
0.8697±0.0003
Flow
0.8351±0.0041
0.8409±0.0033
0.8465±0.0040
0.8501±0.0020
0.8512±0.0040
Appendix
Table 3: Rollout-count results at 100,000 training prompts: mean R2± one standard deviation over three fits. The fits vary training-rollout subsets and, for the MLP and flow, training seeds; subsets coincide at 12 and 16 rollouts. All cells use the same 16-rollout evaluation mean, which differs from the four-rollout main target. † indicates a standard deviation below 0.0001 .
Figure 9: Validation selection of Qwen3.5-9B layer 18. Each three-layer MLP maps the final context-token activation at each decoder block to that block’s mean-pooled answer activation over four temperature-1 rollouts. All fits use 10,000 LMSYS training prompts. We select on 1,000 validation prompts (blue); the 3,000-prompt test results are orange. Layer 18 has the best validation R2 ( 0.7577 ), followed by layer 17 ( 0.7394 ).
Metric
Definition
Better
Point metrics (point models and means of distribution models)
Mean R2
Variance in empirical prompt-level rollout means explained by the predicted means.
Higher
Prompt retrieval
Fraction of predicted means whose nearest empirical answer mean in Euclidean distance belongs to the same prompt.
Higher
Distribution metrics
Energy score
Proper score above, averaged over prompts and divided by d .
Lower
Variance Spearman ρ
Across-prompt Spearman correlation between generated and observed covariance traces.
Higher
Appendix
Table 4: Forecast metric definitions.
Component
Setting
Context input
Final context-token activation (linear ridge) or 32-bin context trace (MLP/Gaussian/flow); Qwen3.5-9B layer 18 ( d=4,096 ) or Qwen2.5-7B-Instruct layer 19 ( d=3,584 )
Answer target
Mean Qwen3.5-9B layer 18 activation over generated answer tokens plus, for normally stopped answers, any end-of-turn template tokens not already generated; d=4,096
Point MLP
LayerNorm for attention scores; one learned query; weighted sum of the 32-bin context trace; Linear–GELU–Linear–GELU–Linear with widths 4,096→8,192→8,192→4,096 ; no dropout; 134.2M parameters. Qwen2.5 input changes the first width from 4,096 to 3,584.
MLP training
MSE against the empirical rollout mean; AdamW; batch size 256; learning rate 3×10−4 ; weight decay 10−3 ; select by validation R2
Flow metamodel
Learned-query attention conditioner; width 4,096; eight residual blocks; sinusoidal time embedding; 352.8M parameters for Qwen3.5 input
Figure 10: Prompt retrieval across the LMSYS training scale, in and out of domain. Top-1 retrieval from the predicted means of LMSYS-only linear ridge, MLP, and flow metamodels. Candidate banks contain 3,000, 2,660, and 541 prompts for LMSYS, WeirdChat, and IFEval, respectively. WeirdChat and IFEval are zero-shot evaluations.
Figure 11: Distribution quality across the LMSYS training scale, in and out of domain. The first three rows use evaluation sets as columns and show energy score, prompt-level variance Spearman correlation, and generated-to-observed variance ratio for Gaussian and flow forecasts. WeirdChat and IFEval are zero-shot. The final row adds LMSYS NLL, predictive MMD 2 , and PCA sliced-Wasserstein distance. Lower energy, NLL, MMD 2 , and Wasserstein distance are better; higher variance correlation is better; and the ideal variance ratio is one. The flow has lower NLL at 14 of 15 scales (all except 100 prompts) and scores lower on all three auxiliary diagnostics at the largest scale. The Gaussian’s variance ranking stays near zero through 100,000 training prompts because validation energy selects global covariance; at 200,000 prompts it selects prompt-dependent variance, raising LMSYS Spearman to 0.815. The jump reflects selection between variance modes, not an identified learning threshold.
Figure 12: Gaussian forecast and fixed flow trajectory in a common answer activation plane. Yellow points are real LMSYS answer activations, green points are samples from the validation-selected Gaussian metamodel, and magenta points are the same LMSYS-only flow particles after 0, 50, 200, 500, 800, and 1,000 Euler updates. The curve shows energy score along the flow trajectory, not sampler quality at different costs. PCA is fitted on 32,768 answer rollouts from 8,192 LMSYS training prompts and then frozen before test targets and forecasts are projected.
Figure 13: Completed-sampler quality versus numerical cost. The vertical axis is energy score divided by d ; lower is better. Shaded bands are 95% prompt-bootstrap confidence intervals. Every point reaches the endpoint. On LMSYS test prompts, 8-step Heun gives energy 0.067563 versus 0.067537 for 32-step Euler, with half the vector-field evaluations. Their paired difference is 0.000026 (95% interval [−0.000004,0.000058] ). At high resolution, both approach 0.06749.
Conditioner
Forecast
Mean R2↑
Energy score ↓
Variance Spearman ρ↑
Variance ratio →1
Target: Qwen3.5
Qwen2.5
Linear ridge
0.7313±0.0006
–
–
–
Qwen2.5
MLP
0.8058±0.0011
–
–
–
Qwen2.5
Gaussian
–
0.07849±0.00024
0.770±0.006
2.203±0.112
Qwen2.5
Flow
0.7937±0.0016
0.07739±0.00053
0.713±0.011
1.266±0.076
Qwen3.5
Linear ridge
0.7854±0.0003
–
–
–
Appendix
Table 6: Cross-model endpoints at 100,000 training prompts. Values are means ± standard deviations over three rollout partitions for Qwen3.5 and three initialization replicates for Gemma 4; Gemma 4 linear ridge fits are deterministic. Training/validation and test rollout seeds are disjoint. The Gaussian’s analytic mean is the MLP mean, so its duplicate R2 is omitted. Energies use each target model’s activation coordinates.
Figure 14: Qwen3.5 cross-model prompt retrieval across prompt scale. Top-1 retrieval from the mean forecasts of linear ridge, MLP, and flow metamodels conditioned on Qwen2.5 or Qwen3.5 context activations; both predict Qwen3.5 answer activations. Retrieval uses the same fixed bank of 3,000 LMSYS prompts. Points show means, and error bars show standard deviations over three rollout partitions.
Figure 15: Qwen3.5 cross-model distribution quality across prompt scale. The first two rows show separate Gaussian and flow forecasts for energy score, prompt-level variance Spearman correlation, and generated-to-observed variance ratio. The last two rows show the same families separately for NLL, predictive MMD 2 , and PCA sliced-Wasserstein distance. Both conditioners predict Qwen3.5 answer activations. Points show means, and error bars show standard deviations over three rollout partitions. The auxiliary curves use the same completed fits as the primary metrics. Lower energy, NLL, MMD 2 , and Wasserstein distance are better; higher variance correlation is better; and the ideal variance ratio is one.
Figure 16: Gemma 4 cross-model prompt retrieval across prompt scale. Top-1 retrieval from the mean forecasts of linear ridge, MLP, and flow metamodels conditioned on Qwen2.5 or Gemma 4 context activations; both predict Gemma 4 answer activations. Retrieval uses a fixed bank of 3,000 LMSYS prompts. For the MLP and flow, points show means, and error bars show standard deviations over three initialization replicates.
Figure 17: Gemma 4 cross-model distribution quality across prompt scale. The first two rows show Gaussian and flow energy score, prompt-level variance Spearman correlation, and generated-to-observed variance ratio. The last two rows show NLL, predictive MMD 2 , and PCA sliced-Wasserstein distance. Both conditioners predict Gemma 4 answer activations. Points show means, and error bars show standard deviations over three initialization replicates. The Gaussian NLL axis includes the large variability at 100 training prompts. Lower energy, NLL, MMD 2 , and Wasserstein distance are better; higher variance correlation is better; and the ideal variance ratio is one.
Figure 18: Answer-level AUROC on held-out WeirdChat prompts. Higher is better. The actual-answer reference observes the generated answer.
Large language model (LLM) interpretability studies how internal representations and computations produce outputs, and how they can be explained or controlled.
Trust in an AI system is often anchored by explanations of how it works, which one then uses to forecast its behavior on new inputs. For large reasoning models (LRMs), this conventional route is particularly difficult to follow: explanation methods for single token generations do not naturally generalize to long trajectories, and the trajectories themselves are often not faithful when read as natural language. We propose an alternative that bypasses the explanation step: treat behavior forecasting as a learnable task and train Behavior Forecasters that operates on a single reasoning trajectory to make the same forecasts one would typically seek from an explanation. The forecaster's training data is obtained by querying the LRM with no human annotation, and its inference is done in a single forward pass. We instantiate this approach on two tasks: how likely the LRM is to repeat its answer on re-runs, and how removing parts of the input changes its answer. We evaluate this approach on both tasks across three diverse reasoning datasets and find that trained Behavior Forecasters are more accurate than GPT-5.4 and Claude Opus-4.6 reading the same trajectories as naive readers, at a small fraction of their inference cost. We find that fine-tuning the backbone end-to-end and initializing it from the target LRM are each necessary for strong performance. These results show that the reasoning trajectory carries information about the LRM's future behavior that goes beyond what naive reading conveys.
Mosh Levy, Yoav Goldberg, Asa Cooper Stickland
Bar-Ilan University · Constellation · UK AI Security Institute +1
Large language models can be steered at inference time through prompting or activation interventions, but activation steering methods often underperform compared to prompt-based approaches. We propose a framework that formulates prompt steering as a form of activation steering and investigates whether distilling successful prompt steering behavior into simpler, interpretable models can close this gap. Our analysis reveals that popular activation steering methods are not faithful to the mechanics of prompt steering, which applies strong interventions on some tokens while barely affecting others. Based on these insights, we introduce Prompt Steering Replacement (PSR) models that estimate token-specific steering coefficients from the activations themselves and are trained to imitate prompt-based interventions. Experiments on three steering benchmarks across multiple language models show that PSR models outperform existing activation steering methods, especially when controlling for high-coherence completions, and also compare favorably to prompting on AxBench and persona steering.
Large language models (LLMs) trained on next-token prediction exhibit remarkable in-context learning (ICL) abilities, yet the representations that support ICL remain poorly understood. We consider such representations in a controlled setting: prompting LLMs with data emitted from hidden Markov models (HMMs) and probing for the corresponding belief state -- the posterior distribution over the HMM's hidden states given the observed token history. Across six open-source LLMs prompted with data from 40 HMMs selected for non-trivial belief structure, we find that belief states are linearly decodable from residual stream activations, with peak probe R2-values of 0.83-0.99 across HMM and LLM combinations, ranging from early to late layers. To establish functional relevance, we intervene directly on the probe-identified subspace via patching and steering, resulting in downstream prediction quality on the order of the untampered model, while controls degrade performance substantially. Together, these results provide representation-level evidence that ICL in open-source LLMs approximates optimal Bayesian prediction over a context-inferred generative model. More broadly, our findings extend prior results linking input-distribution structure to activation geometry: from toy networks trained explicitly on HMM data to production-scale LLMs.
Daniel Balcells, Andrew Jun Lee, Chirag Rastogi +3