ScaleDiff: Scaling Difficult Problems for Advanced Mathematical Reasoning

Qizhi Pei, Zhuoshi Pan, Honglin Lin, Xin Gao, Yu Li, Zinan Tang, Conghui He, Rui Yan, Lijun Wu · DOI

Abstract

The development of Large Reasoning Models (LRMs) has highlighted a critical bottleneck: the scarcity of high-quality, competition-level mathematical problems required for training complex multi-step reasoning. We present ScaleDiff, a novel pipeline designed to mass-produce high-difficulty mathematical problems efficiently. By leveraging an "adaptive thinking" model to identify difficult problems via a single-token proxy and a specialized generator to scale them, we curated the ScaleDiff-Math dataset. Our results demonstrate that fine-tuning on this dataset yields an 11.3% relative performance improvement, outperforming several state-of-the-art reasoning models on elite benchmarks such as AIME and HMMT.

1. Introduction

To replicate human-like reasoning in artificial intelligence—exemplified by models like OpenAI’s o1 or DeepSeek-R1—researchers require training data that pushes the boundaries of logic and computation. However, high-level mathematical problems, particularly those at the Olympiad or competition level, are a finite and expensive resource.

Existing data generation methods face several challenges. Human expertise is slow and costly. Relying on massive proprietary models for problem evolution is prohibitively expensive at scale. Furthermore, automated generators often suffer from "difficulty dilution," producing a high volume of trivial problems that do not challenge a model's reasoning capabilities. Finally, traditional methods for assessing problem difficulty, such as measuring failure rates across multiple inference passes, are computationally inefficient. ScaleDiff addresses these issues by introducing a "difficulty-hiking" pipeline that is both computationally lean and capable of generating a virtually unlimited supply of challenging mathematical content.

2. The ScaleDiff Pipeline

The ScaleDiff methodology is structured into four distinct stages designed to identify, generate, and verify high-difficulty reasoning tasks.

2.1 Efficient Identification via AdaptThink

A core innovation of ScaleDiff is the AdaptThink model. Rather than solving a problem multiple times to determine its difficulty, AdaptThink is trained to choose between a "NoThinking" mode for simple tasks and a "Thinking" mode for complex ones. By inspecting only the first generated token, the system can determine if the model perceives the problem as difficult. This approach requires only a single forward pass, making the identification of "hard" problems significantly faster than traditional sampling-based metrics.

2.2 Specialized Generation with DiffGen-8B

Once a set of difficult problems is identified, they are used to train DiffGen-8B, a dedicated 8B-parameter problem generator. Unlike general-purpose models that require complex prompting to "evolve" problems, DiffGen-8B learns the underlying distribution of difficult mathematical tasks. This allows it to synthesize new, high-difficulty problems directly, ensuring the output remains within the desired complexity range.

2.3 Cost-Effective Distillation

To provide high-quality reasoning traces for the newly synthesized problems, the pipeline employs Qwen3-8B in its "Thinking" mode. This stage demonstrates that relatively small, efficient models can serve as effective "teachers" for reasoning tasks. By distilling the thinking process of an 8B model into a student model, the pipeline avoids the massive computational overhead associated with 300B+ parameter proprietary models.

2.4 Two-Stage Filtration

To ensure the integrity of the final dataset, a two-stage filtering process is applied:

  1. Rule-based Filtering: Removes solutions characterized by excessive repetition, poor formatting, or logical inconsistencies.
  2. Model-based Filtering: Discards problems that the base student model can already solve with ease. This ensures that the final training set is composed exclusively of "high-value" challenges that provide a meaningful learning signal.

3. ScaleDiff-Math Dataset

The pipeline was used to augment an initial curated dataset ($\mathcal{D}$) of 558,000 instances derived from sources like DeepMath and NuminaMath. The resulting ScaleDiff-Math dataset contains 1.7 million problem-solution pairs, including 1.15 million newly generated "hard" instances.

Evaluation was conducted across a suite of elite mathematical benchmarks, including:

  • AIME ’24 & ’25 (American Invitational Mathematics Examination)
  • HMMT-Feb ’25 (Harvard-MIT Mathematics Tournament)
  • BRUMO ’25 (British University Mathematics Olympiad)
  • MATH500 (A subset of the MATH benchmark)

4. Key Insights and Results

4.1 Performance Gains

Fine-tuning a Qwen2.5-Math-7B model on the ScaleDiff-Math dataset resulted in a 65.9% average accuracy across the five difficult benchmarks. This represents an 11.3% relative performance gain over the baseline and allows the 7B student model to nearly close the gap with its 8B teacher model (68.9%). ScaleDiff-Math outperformed several strong competitors, including OpenThinker3 and AceReason-Nemotron-7B.

4.2 The "First Token" Proxy and Difficulty Scaling

The success of the "first token" proxy confirms that a model's internal decision to engage in extended "thinking" is a reliable and efficient indicator of perceived difficulty. Furthermore, the study observed a clear scaling law: as the volume of difficult problems in the training set increases, performance on benchmarks like AIME continues to improve without evidence of saturation.

4.3 Quality over Quantity

A critical finding of the research is that training on a smaller subset of difficult problems (192K) yields better reasoning performance than training on a much larger set of simple problems (366K). This reinforces the principle of "difficulty hiking"—the idea that models benefit more from seeking out harder content than from simply distilling existing teacher outputs.

5. Conclusion and Future Work

ScaleDiff provides a scalable, efficient framework for generating the high-difficulty data necessary to train the next generation of reasoning models. While the current implementation is focused on mathematics, the "difficulty-hiking" philosophy has potential applications in other complex domains such as coding, law, and medicine.

Future research will focus on improving solvability verification, as synthetic generators can occasionally produce mathematically unsound problems. Ensuring verifiable correctness in synthetic data remains a key challenge for the field. Additionally, exploring the transferability of the AdaptThink proxy to non-mathematical reasoning domains will be a priority.

Summary updated

BibTeX
@misc{pei2025scalediff,
  author = {Qizhi Pei and Zhuoshi Pan and Honglin Lin and Xin Gao and Yu Li and Zinan Tang and Conghui He and Rui Yan and Lijun Wu},
  title = {{ScaleDiff: Scaling Difficult Problems for Advanced Mathematical Reasoning}},
  year = {2025},
  eprint = {2509.21070},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.21070},
}
Figure