Research map / Large language models / Reasoning and chain of thought
Mechanistic Interpretability of Large-Scale Counting in LLMs through a System-2 Strategy
Hosein Hasani, Mohammadali Banayeeanzade, Ali Nafisi, Sadegh Mohammadian, Fatemeh Askari, Mobin Bagherian, Amirmohammad Izadi, Mahdieh Soleymani Baghshah
Sharif University of Technology
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| partition input with separators and add intermediate step-wise counts | Qwen2.5-7B · counting, 11-20 items | accuracy: 0.38 -> 0.95 | Improved |
| partition input with separators and add intermediate step-wise counts | Qwen2.5-7B · counting, 41-50 items | accuracy: 0.00 -> 0.24 | Improved |
| partition input and add intermediate step-wise counts | GPT-4o · counting, 91-100 items | accuracy: 0.24 -> 0.86 | Improved |
| partition input and add intermediate step-wise counts | Gemini-2.5-Pro · counting, 91-100 items | accuracy: 0.20 -> 0.91 | Improved |
| add CoT steps without partitioning (ablation) | Qwen2.5-7B · counting, 21-30 items | accuracy: 0.13 -> 0.11 | No clear effect |
| partition input without intermediate steps (ablation) | Llama3-8B · counting, 11-20 items | accuracy: 0.80 -> 0.08 | Hurt |
| add intermediate steps to structured input (ablation) | Gemma3-27B · counting, 41-50 items | accuracy: 0.17 -> 0.50 | Improved |
| zero-ablate final item and separator tokens of each partition (ablation) | Qwen2.5-7B · partition-level count generation | probability of correct count | Hurt |
| swap activations of intermediate count tokens between two contexts (layers 18-24) (ablation) | Qwen2.5-7B · final total | predicted total sum: 19 -> 21 and 14 -> 12 (example) | Mixed |
| structured input with intermediate steps (math-specialized model) (ablation) | Qwen2.5-Math-7B · counting, 41-50 items | accuracy: 0.75 -> 0.52 (w/o steps -> w/ steps) | Hurt |
| use structure B (slashes, space-separated) instead of structure A (ablation) | Qwen2.5-7B · counting, 11-20 items, structured w/ steps | accuracy: 1.00 -> 0.74 | Hurt |
Open problems in search and self-correction in reasoning
Do search and self-correction methods for reasoning work beyond math and multiple choice, on closed models and at larger scale?
- Experiments stop at small or mid-size models, so larger ones are untested. · 16 papers state it
- Training data or scoring depends on a strong teacher or judge LLM. · 14 papers state it
- Extra sampling, passes or search make training and inference costly. · 13 papers state it
Closest papers by meaning
- Language Models Need Inductive Biases to Count Inductively (ICLR 2025 · similarity 0.89)
- Interpreting and Improving Large Language Models in Arithmetic Calculation (ICML 2024 · similarity 0.89)
- Understanding Counting Mechanisms in Large Language and Vision-Language Models (CVPR 2026 · similarity 0.89)
- Counting in Small Transformers: The Delicate Interplay between Attention and Feed-Forward Layers (ICML 2025 · similarity 0.87)
- CogMath: Assessing LLMs' Authentic Mathematical Ability from a Human Cognitive Perspective (ICML 2025 · similarity 0.87)
- Number Cookbook: Number Understanding of Language Models and How to Improve It (ICLR 2025 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.