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:
- Localization: Where in the model does the "decision" to favor a specific number start?
- Persistence: How does an early internal state influence a digit generated several tokens later?
- 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.
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).
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