Math Reasoning in LLMs is Organized by Approach, Not Topic
Organizations: Clemson University
Abstract
Mathematical reasoning benchmarks are typically organized by topic, but language models may organize their internal computation by reusable reasoning approach instead. In this paper, we investigate whether open math-capable LLMs organize internally by topical sub-skill or by reasoning approach, and we present evidence that the approach is the key. We introduce a generation-replay protocol: a model first generates a solution, after which we replay the exact prompt-plus-generation trajectory and extract activation-importance signatures over the reasoning tokens. We cluster these signatures without supervision across eight models and five mathematical reasoning sources, then evaluate the recovered structure with structural, semantic, and intervention tests. Across all 40 model-source cells, the recovered clusters outperform matched-size random baselines. Two independent frontier-LLM judges find approach-level coherence in 77-82% of real clusters versus 6-11% in within-source controls, and topic-pure clusters usually receive labels finer than the topic itself. In approach-controlled prompting, changing the requested reasoning approach shifts cluster assignment in seven of eight model conditions, whereas paraphrases largely preserve it. These results indicate that math-capable LLMs organize internal mathematical computation by reasoning approach rather than benchmark topic. The implication is that topic-stratified benchmarks and topic-balanced training corpora can still miss the axis that matters: even deliberately topic-balanced corpora may remain imbalanced over reasoning approaches.
Figures & tables
| Source | Characterization | Sub-skills | Prompts |
|---|---|---|---|
| deepmind_math | Procedurally generated mathematical tasks | 5 | 1,000 |
| gsm8k | Grade-school arithmetic word problems | 1 | 200 |
| math_hendrycks | Competition-style mathematical problems | 6 | 1,200 |
| mathqa | Operation-annotated word problems | 2 | 400 |
| numinamath_1_5 | Competition-level aggregated problem set | 5 | 1,000 |
| Total | 19 | 3,800 |
| Source | Cells | Clusters | Mean | Mean sil. | Sil. range |
|---|---|---|---|---|---|
| deepmind_math | 8 | 54 | 6.75 | 0.283 | 0.241–0.323 |
| gsm8k | 8 | 43 | 5.38 | 0.166 | 0.123–0.202 |
| math_hendrycks | 8 | 40 | 5.00 | 0.175 | 0.149–0.252 |
| mathqa | 8 | 42 | 5.25 | 0.200 | 0.158–0.249 |
| numinamath_1_5 | 8 | 46 | 5.75 | 0.195 | 0.160–0.228 |
| Total | 40 | 225 | 5.62 | 0.204 | 0.123–0.323 |
| Source | Clusters | Topic-pure clusters | Topic-pure rate |
|---|---|---|---|
| gsm8k | 43 | 43 | 100.0% |
| deepmind_math | 54 | 28 | 51.9% |
| mathqa | 42 | 11 | 26.2% |
| numinamath_1_5 | 46 | 1 | 2.2% |
| math_hendrycks | 40 | 0 | 0.0% |
| All sources | 225 | 83 | 36.9% |
| Claude Opus-4.7 | GPT-5.4 | |||
|---|---|---|---|---|
| Bundle type | Coherent rate | Coherent rate | ||
| Real clusters | 225 | 185/225 = 82.2% | 225 | 174/225 = 77.3% |
| Within-source controls | 80 | 5/80 0 = 6.2% | 80 | 9/80 0 = 11.2% |
| Gap | 76.0 pp | 66.1 pp | ||
| Claude Opus-4.7 | GPT-5.4 | |||||
|---|---|---|---|---|---|---|
| Source | Real | Control | Gap | Real | Control | Gap |
| gsm8k | 39/43 = 90.7% | 1/16 = 6.2% | 84.5 pp | 38/43 = 88.4% | 2/16 = 12.5% | 75.9 pp |
| deepmind_math | 47/54 = 87.0% | 1/16 = 6.2% | 80.8 pp | 44/54 = 81.5% | 1/16 = 6.2% | 75.2 pp |
| mathqa | 33/42 = 78.6% | 1/16 = 6.2% | 72.3 pp | 31/42 = 73.8% | 2/16 = 12.5% | 61.3 pp |
| numinamath_1_5 | 35/46 = 76.1% | 2/16 = 12.5% | 63.6 pp | 33/46 = 71.7% | 3/16 = 18.8% | 53.0 pp |
| math_hendrycks | 31/40 = 77.5% | 0/16 = 0.0% | 77.5 pp | 28/40 = 70.0% | 1/16 = 6.2% | 63.8 pp |
| Model condition | C3 verdict | Shift | Paraphrases Invariance |
|---|---|---|---|
| Qwen2.5-1.5B-Instruct | confirmed | 0.64 | 0.72 |
| Qwen2.5-7B-Instruct | confirmed | 0.64 | 0.84 |
| Qwen2.5-14B-Instruct | confirmed | 0.60 | 0.78 |
| Ministral-8B-Instruct | confirmed | 0.94 | 0.82 |
| Mistral-7B-Instruct-v0.3 | partial | 0.96 | 0.48 |
| DeepSeek-R1-Distill-Qwen-1.5B | confirmed | 0.68 | 0.76 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Feature space | Clusters | Purity 0.70 | Purity 0.80 | ARI |
|---|---|---|---|---|
| Reasoning text (TF-IDF/SVD) | 225 | 81.8% | 72.4% | 0.38 |
| Activations (generation-replay) | 225 | 36.9% | 29.8% | 0.10 |
| Problem (abbreviated) | Sub-skill |
|---|---|
| Randy drew 5 pictures; Peter drew 3 more; Quincy drew 20 more than Peter. Total pictures? Approach: Compute each person’s count sequentially, sum. | arithmetic_word |
| Bill soaks clothes: 4 min per grass stain and 7 min per marinara stain. 3 grass stains, 1 marinara stain. Total time? Approach: Multiply rate count for each category, then sum. | arithmetic_word |
| Jett bought a cow for 20/day on food for 40 days, and 2500. Profit? Approach: Compute each expense, sum the expenses, then subtract from revenue. | arithmetic_word |
| DeShawn made 12 free throws; Kayla made 50% more; Annieka made 4 fewer than Kayla. Annieka’s count? Approach: Compute each person’s count sequentially from the previous. | arithmetic_word |
| Kim spends 5 min on coffee, 2 min/employee on updates, and 3 min/employee on payroll. 9 employees. Total time? Approach: Compute each task’s time, then sum. | arithmetic_word |
| Problem (abbreviated) | Sub-skill |
|---|---|
| Given and with , find . Approach: Subtract equations to eliminate , substitute into Pythagorean identity, factor and solve. | precalculus |
| Trapezoid with bases differing by 100; midsegment divides area ; find where bisects the area. Approach: Express areas algebraically, solve ratio equation for base length, derive equal-area segment via quadratic relation. | geometry |
| has three distinct positive roots with ; find . Approach: Apply Vieta’s formulas, convert logarithm sum to product, substitute into product-of-roots relation, solve. | algebra |
| Two noncongruent integer-sided isosceles triangles with the same perimeter and area; base ratio ; find the minimum perimeter. Approach: Parameterize sides via ratio, equate perimeters and areas, substitute into Pythagorean height formula, solve quadratic. | geometry |
| = sum of reciprocals of nonzero digits from to ; find smallest with . Approach: Count digit occurrences, express , reduce to divisibility conditions on . | number theory |