Research map / Large language models / Reasoning and chain of thought
To Code or not to Code? Adaptive Tool Integration for Math Language Models via Expectation-Maximization
Haozhe Wang, Long Li, Chao Qu, Fengming Zhu, Weidi Xu, Wei Chu, Fangzhen Lin
Hong Kong University of Science and Technology · INFLY TECH
Read the paperPlace an idea next to itCheck your own paper ↗
10measured effects
6improved
2no clear effect
2hurt
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.
On benchmark leaderboards
- GSM8K leaderboard pass@1 89.26 · rank 28 of 62 papers
- MATH500 leaderboard pass@1 71.4 · rank 124 of 140 papers
- AIME24 leaderboard pass@1 22.6 · rank 123 of 140 papers
- OlympiadBench leaderboard pass@1 32.6 · rank 31 of 35 papers
- AMC23 leaderboard pass@1 45.18 · rank 35 of 35 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply AutoCode EM training to Qwen-2.5-Base-7B | Qwen-2.5-Base-7B · MATH500 | Pass@1 accuracy (%): 60.4 -> 71.4 | Improved |
| apply AutoCode EM training to Qwen-2.5-Base-7B | Qwen-2.5-Base-7B · AIME24 | Pass@1 accuracy (%): 13.2 -> 22.6 | Improved |
| apply AutoCode EM training to Qwen2Math-Base-7B | Qwen2Math-Base-7B · MATH500 | Pass@1 accuracy (%): 48.80 -> 61.86 | Improved |
| apply AutoCode EM training to DeepseekMath-Instruct-7B | DeepseekMath-Instruct-7B · MATH500 | Pass@1 accuracy (%): 51.00 -> 63.32 | Improved |
| apply AutoCode EM training to Qwen-2.5-Base-7B | Qwen-2.5-Base-7B · OlympiadBench | Pass@1 accuracy (%): 30.37 -> 32.6 | Improved |
| use RL directly from the base model without SFT (ablation) | Qwen-2.5-Base-7B · held-out dev set | training efficiency / code invocation rate: code invocation rate below 5% | Hurt |
| apply standard RL after SFT instead of the EM method (ablation) | Qwen-2.5-Base-7B · held-out dev set | Pass@1 accuracy | No clear effect |
| SFT alone on public data (ablation) | Qwen-2.5-Base-7B · held-out dev set | Pass@1 accuracy | No clear effect |
| let models choose code vs CoT themselves instead of explicit code prompt | DeepseekMath-Instruct-7B · AutoCode mode analysis | accuracy: -11.54% | Hurt |
| let AutoCode4Math-Qwen2.5 choose code vs CoT itself instead of explicit code prompt | AutoCode4Math-Qwen2.5 · AutoCode mode analysis | accuracy: +7% | Improved |
Open problems in efficient and adaptive thinking
How long should a reasoning model think, and when should it stop?
- It works on math. Nobody knows about the rest. · 43 papers state it
- The method needs a gold answer or an LLM judge. · 34 papers state it
- Do stopping thresholds transfer between models? · 28 papers state it
Closest papers by meaning
- Towards Effective Code-Integrated Reasoning (AAAI 2026 · similarity 0.92)
- Scaling Code-Assisted Chain-of-Thoughts and Instructions for Model Reasoning (NeurIPS 2025 · similarity 0.89)
- ReTool: Reinforcement Learning for Strategic Tool Use in LLMs (ICLR 2026 · similarity 0.89)
- R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learning (ICLR 2026 · similarity 0.89)
- THOR: Tool-Integrated Hierarchical Optimization via RL for Mathematical Reasoning (ICLR 2026 · similarity 0.88)
- Frugal LMs Trained to Invoke Symbolic Solvers Achieve Parameter-Efficient Arithmetic Reasoning (AAAI 2024 · similarity 0.88)
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.