DeepMath: A lightweight math reasoning Agent with smolagents
DeepMath: A lightweight math reasoning Agent with smolagents DeepMath: A lightweight math reasoning Agent with smolagents Published December 4, 2025 Update on GitHub Upvote 42 Daniel Fleischer danf Intel Moshe Berchansky mber Intel Moshe Wasserblat moshew Intel By Intel AI Software Group DeepMath is an aligned math reasoning agent built on Qwen3-4B Thinking and fine-tuned with GRPO (Group Relative Policy Optimization) . Instead of verbose text, the model emits tiny Python snippets for intermediate steps, runs them in a secure sandbox, and folds the results back into its reasoning, reducing errors and output length.
This Research is relevant to the technology intelligence record because it involves GitHub, Intel, DeepSeek, Qwen. The source article should remain the factual reference for follow-up coverage.
- DeepMath: A lightweight math reasoning Agent with smolagents Published December 4, 2025 Update on GitHub Upvote 42 Daniel Fleischer danf Intel Moshe Berchansky mber Intel Moshe Wasserblat moshew Intel By Intel AI Software Group DeepMath is an aligned math reasoning agent built on Qwen3-4B Thinking and fine-tuned with GRPO (Group Relative Policy Optimization) .
- Instead of verbose text, the model emits tiny Python snippets for intermediate steps, runs them in a secure sandbox, and folds the results back into its reasoning, reducing errors and output length.
- The agent is implemented using the smolagents library .
- We evaluate DeepMath on four math datasets: MATH500 , AIME , HMMT , and HLE , and show that: 🤖 The math agent alone reduces output lengths by up to 66%, while often improving accuracy.
- ⚡ GRPO training improves the agent performance even further, in almost all benchmarks.
- 👉 Code and evaluation scripts: https://github.com/IntelLabs/DeepMath 👉 Model: https://huggingface.co/Intel/deepmath-v1 Why DeepMath?