TL;DR
When comparing physical quantities like "110 cm" and "1.2 m," large language models (LMs) do not actually convert them to a unified internal scale. Instead, they rely on a "bag of heuristics" that aggregates separate numerical and unit-scale differences, leading to systematic failures near decision boundaries when these cues conflict.
What Problem Does This Paper Address?
While language models have shown a remarkable capacity for basic numerical reasoning, real-world data rarely consists of bare numbers; values are almost always tied to measurement units (e.g., 3 kg, 110 cm, 1.2 m). To accurately compare these quantities, an LM must successfully compose a numeral with a symbolic unit scale.
The authors investigate a fundamental question about the internal mechanics of LMs: Do these models perform an exact internal conversion to a shared scale (like converting everything to meters), or do they rely on shortcut heuristics? Understanding this helps clarify how symbolic and numeric information are integrated within neural representations.
Methods
The authors explore this mechanism using a three-pronged evaluation framework:
- Behavioral Observation: They test the accuracy of various base and instruct LMs (from the Qwen3 and OLMo families) on quantity comparison prompts. They analyze performance relative to the Quantity Margin—the log-scale difference between the actual physical magnitudes.
- Surrogate Analysis: To see what information drives the models' choices, they fit linear ridge regression models to predict the LM's internal log-probability preferences using different feature sets (e.g., true physical values vs. coarse heuristic cues like "is the left number bigger?").
- Causal Interventions: Using Distributed Alignment Search (DAS), they train orthogonal rotation matrices to locate linear subspaces in the activation space corresponding to specific heuristic variables. They then perform interchange interventions to see if altering these internal representations causally steers the model's final output.
Datasets
The authors synthetically generated a dataset of 5,000 comparison examples spanning 5 distinct unit settings:
- Metric length (mm, cm, m, km)
- Imperial length (inch, feet, yard, mile)
- Metric mass (mg, g, kg, t)
- Metric-Imperial length
- Metric-Imperial mass
For the surrogate and causal analyses, they expanded this to a broader dataset of 20,000 training, 1,000 validation, and 5,000 test examples, sampled evenly across quantity-margin bins to ensure a balanced evaluation near the decision boundary.
Key Insights and Ideas
- The Boundary Drop: LM accuracy is strongly organized by the Quantity Margin. Performance is near-perfect when magnitudes are vastly different but plummets sharply near the decision boundary.
- Heuristic Conflict: Errors are highly systematic and concentrate where numerical cues and unit cues disagree. For instance, when comparing 110 cm and 1.2 m, the numerical cue favors the left side ($110 > 1.2$), while the unit cue favors the right side ($\text{cm} < \text{m}$). LMs frequently trip over these conflicting votes.
- Heuristics Outperform Exact Scale: Coarse, thresholded heuristic features (simply knowing which number or unit scale is larger) predict LM behavior significantly better than exact shared-scale representations.
- Late Integration: Causal analysis reveals that information relevant to the comparison is integrated heavily at the very last token of the second quantity expression ($u_2$).
Key Results
- Surrogate Performance: On boundary examples ($|\text{QM}| \le 0.2$), a baseline using only the true Quantity Margin achieves an $R^2$ of just 0.022. In contrast, adding thresholded numerical and unit-scale difference features boosts the partial $R^2$ dramatically to 0.740 (for Qwen3-4B-Base), proving that heuristics dominate the model's internal decision-making process.
- Causal Steering: DAS interventions achieved high Interchange Intervention Accuracy (IIA), peaking in middle-to-late layers (layers 14–18). This demonstrates that changing the internal representation of the numerical or unit difference predictably flips the model's final answer in the direction of the counterfactual label.
Limitations and Future Work
- Single-Step Constraints: The study focuses purely on isolated, single-step comparisons. It does not capture complex multi-step reasoning or long-context problem-solving where explicit chain-of-thought unit conversion might naturally emerge.
- Linearity Assumptions: Both surrogate and DAS analyses look for linear relationships and subspaces, potentially missing more complex, non-linear heuristic interactions.
- Extension to Reasoning Models: While preliminary behavioral analysis on Qwen3-4B-Thinking shows that explicit unit conversion occurs in the thinking trace, future work is required to see if their internal activation states still rely on these implicit shortcuts during hard comparisons.
Summary updated