When Every Choice Is Correct: A Causal Study of Numerical Preference in Language Models

Hongnian Huang, Hongliang LiuarXiv 2026

TL;DR

Why does a language model pick 17 instead of 15 when asked for a number between 1 and 30? This paper uses causal interventions to trace these arbitrary preferences through the model's internal layers, revealing how early neuron activations are carried forward via the KV cache and transformed by downstream computation to flip the final answer.

What Problem Does This Paper Address?

When you ask an LLM to "Give me a number between 1 and 30," every integer is technically a "correct" answer. However, models consistently show systematic preferences—favoring some numbers over others. Because all choices are equally valid, this task provides a unique "controlled system" to study model preference without the confounding factors of correctness, utility, or familiarity that plague tasks like tool selection or coding.

The authors aim to understand the internal mechanics of this preference:

  1. Localization: Where in the model does the "decision" to favor a specific number start?
  2. Persistence: How does an early internal state influence a digit generated several tokens later?
  3. Transformation: How do later layers in the model process and potentially alter these preference signals?

Methods

The researchers employed a sophisticated suite of mechanistic interpretability techniques on the Qwen3 model family:

  • Candidate Nomination: They used Perturbation Probing (PP) and Gradient Attribution to identify specific "source" neurons in the late MLP (Multi-Layer Perceptron) layers that significantly impact the probability of specific numerical outcomes.
  • Activation Interventions: They applied "doses" (adding a scalar value) or "zeroing" to these neurons at the pre-answer position to see if they could force the model to switch its favorite number (e.g., from 17 to 15).
  • Causal Tracing via KV Cache: To see how the influence persists, they performed selective KV cache replacements. By swapping the cached keys and values from an "edited" run into a "baseline" run, they localized which parts of the model's memory carried the preference forward across tokens.
  • Response Blocking (Clamping): A novel aspect of this study involved "clamping" later MLP outputs (Layers 34–35) to their baseline values while intervening on earlier layers. This allowed them to test if these later layers were actively "transforming" the preference signal.

Datasets

The study focused on a "controlled model system" rather than a traditional static dataset:

  • Models: Qwen3-4B, Qwen3-4B-Instruct-2507, and Qwen3-8B.
  • Prompts: A bank of 18 primary contexts (e.g., "Pick a number between 1 and 30") plus 20 paraphrased wordings to test if the discovered pathways were robust to different phrasing.
  • Controls: They used 100 random neurons and "matched-write" controls to ensure the effects were specific to the nominated neurons and not just a result of general network noise.

Key Insights and Ideas

  • The Unchanged Prefix: In a key case study, an intervention changed the model's answer from 17 to 15, even though both answers started with the digit "1". This allowed the authors to study how the model's internal state carries a preference for the second digit while the first digit remains identical.
  • Persistence in the Cache: The preference isn't just a fleeting activation; it is encoded into the KV cache at the pre-answer position and "read" by attention heads (specifically L33 head 26) when processing the first digit.
  • Conditional Downstream Processing: Perhaps the most striking finding is that later layers (MLPs in L34-35) act as a filter or transformer. Two different internal interventions might produce similar immediate signals, but the later MLPs process them differently, leading to different final log-odds for the tokens "7" vs "5".
  • Distribution vs. Winner: The authors found that while they could predict the general "shape" of how probabilities shifted across all 30 numbers (reducing error by ~89%), predicting the exact moment the model would switch its "winning" answer remained difficult.
Figure 1: A shared response captures probability movement while missing the selected switch. A: all eighteen source responses at the same dose, centered across the thirty candidate log probabilities; the black curve is their coordinate-wise median. E1 and E2, initially favoring 23 and 15, remain visible. B: the selected prompt’s baseline, leave-one-out estimate from the other seventeen responses, and observed source distribution. The estimate retains mode 17; the observed source favors 15. For the full thirty-candidate distribution in B, KL prediction error falls by 88.9%, although the estimated mode remains 17. E1 uniquely has no pre-answer text after the chat template. This retrospective comparison is distinct from the earlier fitted interval predictor.
Figure 1 shows that while a median response profile (black curve in A) captures the general trend of probability shifts, it often misses the specific "near-boundary" switch where one number overtakes another (B).

Key Results

  • Neuron Specificity: Zeroing a single nominated neuron (L29:8172) in Qwen3-4B increased the frequency of "17" replies from 2% to 77% across a cohort of new wordings.
  • Causal Localization: In the 17-to-15 switch experiment, replacing the L32–33 cache window accounted for 68% of the total margin displacement.
  • MLP Transformation: Clamping the outputs of later MLPs (L34–35) reduced the difference in influence between a key attention head and its complement from 0.119 nat to a mere 0.0025 nat. This proves that the "strength" of a preference is heavily dependent on downstream computation.
  • Directional Success: In a frozen "dose" test across 18 prompts, the authors correctly predicted the direction of the probability shift in 70 out of 72 cases (Table 2).
Table 2: Frozen directional predictions at two individually edited sites.

Limitations and Future Work

  • Origin Unknown: The study explains how the preference is processed during inference but does not establish why the model prefers 17 in the first place (e.g., training data bias).
  • Partial Circuits: The authors identify a "partial pathway" but acknowledge they have not mapped a complete, end-to-end circuit for numerical preference.
  • Context Sensitivity: The "17-to-15" switch was an existence proof found in a specific context; the intervention did not produce a portable "answer switcher" that worked across all possible prompts.
  • Future Directions: The authors suggest applying these methods to other "equally valid" choice scenarios, such as tool selection or programming language preference, to see if similar persistent-state mechanisms are at play.

Summary updated

Abstract

When a language model chooses a number between 1 and 30, every integer in the range is valid, yet the model can favor particular answers. We use numerical choice to study how preference is processed across layers and tokens. Perturbation probing and gradient attribution nominate neurons for activation interventions. In a selected Qwen3-4B case, a pre-answer edit changes 17 to 15 while both runs first emit 1. After the edit ends, selective cache and attention-output replacements trace part of its continuing influence on the second digit. Replacing one attention head's output or the other heads' outputs jointly produces similar immediate readout contributions; both interventions restore 17 but have different final log-odds effects on 7 versus 5. Holding later multilayer perceptron (MLP) outputs at their values from the edited run without either replacement reduces this effect gap from 0.119 to 0.0025 nat. Later computation therefore changes how similar local contributions affect the continuation. Retrospective estimates across eighteen contexts capture much of the probability movement but miss the selected answer switch. Prompt tests also separate influence from answer changes: one held-out prompt retains influence without switching, and only one of twelve fresh wordings qualifies for the reader/MLP test; there, joint MLP clamping again reduces the gap between the two reader effects while the answer remains 17. These results use numerical choice as a controlled case for studying persistent state and conditional downstream processing; they do not establish the origin or a complete circuit of natural numerical preference.
BibTeX
@misc{huang2026when,
  author = {Hongnian Huang and Hongliang Liu},
  title = {{When Every Choice Is Correct: A Causal Study of Numerical Preference in Language Models}},
  year = {2026},
  eprint = {2611.06025},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.06025},
}
Figure