SHAPE of Thinking: Mathematical Heuristics for Analyzing and Improving LLM Reasoning
cs.AI
Submitted: 2026-06-28
Updated: 2026-10-14
Comments: accepted to The 3rd AI for Math Workshop at ICML 2026
Code: https://github.com/holi-lab/SHAPE-of-CoT
License: http://creativecommons.org/licenses/by/4.0/
The gist: Large language models (LLMs) achieve strong performance on mathematical reasoning benchmarks, yet the mathematically meaningful skills underlying their reasoning remain underexplored.
Terminology
Abstract
Large language models (LLMs) achieve strong performance on mathematical reasoning benchmarks, yet the mathematically meaningful skills underlying their reasoning remain underexplored. We introduce SHAPE, a framework that analyzes Chain-of-Thought (CoT) trajectories through two lenses developed in mathematics education: (1) semantic spaces: the model's evolving mathematical interpretations of a problem (e.g., algebraic, geometric), and (2) heuristics: the specific mathematical actions taken within those spaces (e.g., simplifying the problem, working backward). We first use SHAPE to analyze the reasoning patterns of various models. Our findings reveal that the mathematical heuristics employed by a model better explain final answer correctness than traditional CoT features. Furthermore, models are likely to reach correct solutions by concentrating their reasoning effort within a few semantic spaces rather than exploring many disparate ones -- a pattern consistent with human behavior. Next, we utilize the SHAPE lens to evaluate whether post-training truly enhances mathematical proficiency. We find that reinforcement learning induces mode-seeking in heuristic usage. Lastly, we post-train LLMs by promoting diverse heuristics and demonstrate its effectiveness in improving accuracy. Overall, SHAPE provides a theoretically-grounded diagnostic framework for decoding LLM reasoning and offers a new path toward post-training LLMs for math reasoning. The code for our model is available at https://github.com/holi-lab/SHAPE-of-CoT
Sources
- Chain-of-Thought Reasoning In The Wild Is Not Always Faithful
- Thought Anchors: Which LLM Reasoning Steps Matter?
- Omni-MATH: A Universal Olympiad Level Mathematic Benchmark For Large Language Models
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- Measuring Mathematical Problem Solving With the MATH Dataset
- MATH-Perturb: Benchmarking LLMs' Math Reasoning Abilities against Hard Perturbations
- OpenAI o1 System Card
- Tulu 3: Pushing Frontiers in Open Language Model Post-Training
- Measuring Faithfulness in Chain-of-Thought Reasoning
- Schoenfeld's Anatomy of Mathematical Reasoning by Language Models
- RL Squeezes, SFT Expands: A Comparative Study of Reasoning LLMs
- Olmo 3
- DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
- Between Underthinking and Overthinking: An Empirical Study of Reasoning Length and correctness in LLMs
- On the Hardness of Faithful Chain-of-Thought Reasoning in Large Language Models
- Nemotron-Cascade: Scaling Cascaded Reinforcement Learning for General-Purpose Reasoning Models
- The Invisible Leash: Why RLVR May or May Not Escape Its Origin
- When More is Less: Understanding Chain-of-Thought Length in LLMs
- Qwen3 Technical Report
- Dynamic Early Exit in Reasoning Models
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems