TL;DR
NVIDIA researchers have introduced Nemotron-Math, a massive dataset of 7.5M mathematical reasoning traces designed to teach LLMs how to "think" at different depths. By combining multi-mode distillation (high, medium, and low reasoning intensity) with a novel sequential bucketed training strategy, they achieved 100% accuracy on the AIME 2024/2025 benchmarks while making long-context (128K) fine-tuning up to 3x more efficient.
What Problem Does This Paper Address?
While Large Language Models (LLMs) have made strides in mathematics, most training datasets suffer from "reasoning uniformity." They typically provide a single solution style per problem, often focusing narrowly on high-school competition math (like the AoPS dataset). This leaves a gap in two areas:
- Reasoning Diversity: Real-world math requires varying levels of depth—sometimes you need a quick heuristic, and other times a rigorous, multi-step proof with code verification.
- Computational Efficiency: Training models on ultra-long contexts (e.g., 128K tokens) is notoriously expensive because it forces the hardware into memory-intensive parallelism configurations even for short sequences.
Nemotron-Math tackles these by providing a diverse, multi-mode dataset and a staged training recipe that scales context length progressively.
Methods
The authors employed a "distillation" approach, using a powerful teacher model (gpt-oss-120b) to generate 7.5M solution traces for 347K problems.
Multi-Mode Supervision
Unlike previous datasets, Nemotron-Math generates solutions in three distinct "modes":
- High, Medium, and Low Reasoning: These control the verbosity and depth of the logical steps.
- Tool-Integrated Reasoning (TIR): Solutions are generated both with and without Python code execution, teaching the model when to offload complex calculations to a symbolic solver.
Sequential Bucketed Training
To solve the efficiency problem of long-context training, the team developed a staged approach. Instead of training on 128K context from the start, they partition the data into buckets (16K, 32K, 64K, 128K).
- Staged Parallelism: They optimize GPU parallelism (tensor, pipeline, and context parallelism) specifically for each bucket.
- Progressive Expansion: The model starts on short-context buckets and moves to longer ones. This allows the bulk of the training to happen under "cheaper" hardware configurations, reserving the most expensive 128K settings only for the final stage.
Datasets
The paper introduces the Nemotron-Math corpus, which integrates:
- AoPS Source: 85K curated competition-style problems.
- StackExchange-Math: 262K community-sourced problems from Math StackExchange and MathOverflow. This adds "real-world" flavor, including college-level and research-oriented queries.
- Evaluation Benchmarks: The models were tested on AIME 24/25, HMMT-24-25, and the text-only subset of HLE-Math (Humanity's Last Exam), a benchmark designed to be "the last exam humans will ever need to write."
Key Insights and Ideas
- Community Data Boosts Robustness: Incorporating StackExchange data significantly improved performance on the HLE-Math benchmark. This suggests that while competition math (AoPS) is great for logic, community-driven data provides the linguistic diversity needed for general-purpose mathematical reasoning.
- The Efficiency of "Bucketing": The sequential bucketed strategy isn't just a convenience; it’s a 2–3× speedup. By not forcing a 128K "parallelism tax" on 16K-length data, they saved massive amounts of compute without losing accuracy.
- Model Size vs. Supervision: Interestingly, both Qwen3-8B and Qwen3-30B-A3B converged to nearly identical final accuracies. This implies that for current reasoning tasks, the quality and diversity of the supervision data is a more significant bottleneck than the raw parameter count of the model.
Key Results
- Perfect Scores: Both the 8B and 30B models achieved 100% maj@16 accuracy on AIME 2024 and 2025 when using Python TIR in high-reasoning mode.
- State-of-the-Art Distillation: Nemotron-Math consistently outperformed the previous gold standard, OpenMathReasoning. For example, it improved AIME25 pass@1 for the 30B model by 13.1% over the baseline.
- Training Speed: The sequential bucketed strategy reduced end-to-end training costs by 2–3× while keeping accuracy within 1–3% of full-length joint training.
Limitations and Future Work
- Mode Imbalance: The authors noted that if they only trained on high-reasoning samples in the final 128K stage, the model's behavior could "collapse," losing the ability to provide concise (low-mode) answers. They had to explicitly balance the final stage with a small proportion of shorter-context data to maintain the distinction between reasoning modes.
- LLM-as-a-Judge: For the HLE-Math benchmark, evaluation relied on an LLM judge (Qwen2.5-32B-Instruct). While standard in the field, this introduces potential biases compared to purely symbolic or numeric verification.
- Future Directions: The researchers plan to release the data, code, and models to the community to support further open-source development in long-form mathematical reasoning.
Summary updated