PromptCoT: Synthesizing Olympiad-level Problems for Mathematical Reasoning in Large Language Models

Xueliang Zhao, Wei Wu, Jian Guan, Lingpeng Kong · DOI · OpenReview

Abstract

The ability of large language models to solve complex mathematical problems has progressed significantly, particularly for tasks requiring advanced reasoning. However, the scarcity of sufficiently challenging problems, particularly at the Olympiad level, hinders further advancements. In this work, we introduce PromptCoT, a novel approach for automatically generating high-quality Olympiad-level math problems. The proposed method synthesizes complex problems based on mathematical concepts and the rationale behind problem construction, emulating the thought processes of experienced problem designers. We provide a theoretical analysis demonstrating that an optimal rationale should maximize both the likelihood of rationale generation given the associated concepts and the likelihood of problem generation conditioned on both the rationale and the concepts. Our method is evaluated on standard benchmarks including GSM8K, MATH-500, and AIME2024, where it consistently outperforms existing problem generation methods. Furthermore, we demonstrate that PromptCoT exhibits superior data scalability, consistently maintaining high performance as the dataset size increases, outperforming the baselines. The implementation is available at https://github.com/zhaoxlpku/PromptCoT.

Introduction: The Data Wall in Mathematical Reasoning

While Large Language Models (LLMs) like OpenAI’s o1 and DeepSeek-R1 have demonstrated remarkable proficiency in mathematical reasoning, they are increasingly hitting a "data wall." High-quality, Olympiad-level mathematical problems are a finite resource. Existing synthetic data generation techniques, such as "evolutionary" methods, often produce problems that are either too simplistic for high-level training or suffer from logical inconsistencies and awkward phrasing that make them unsolvable.

The core issue identified in this research is the absence of a design rationale. When human experts create competition-level problems, they do not simply select a topic; they follow a specific logic to weave disparate mathematical concepts—such as modular arithmetic and prime factorization—into a cohesive and challenging puzzle. PromptCoT addresses this gap by treating problem synthesis as a "Chain-of-Thought" (CoT) task for the problem designer.

The PromptCoT Framework

PromptCoT (Prompt-based Chain-of-Thought) emulates the expert design process through a three-stage pipeline:

  1. Concept Extraction: Using seed problems from the Art of Problem Solving (AoPS) platform, the framework utilizes an LLM to identify core mathematical concepts (e.g., "Properties of Exponents," "Congruence Theorems").
  2. Rationale Generation: This is the framework's primary innovation. Instead of generating a problem directly from concepts, the model is prompted to "reverse-engineer" the thinking process. This rationale explains how the chosen concepts should intersect to create a problem of specific difficulty.
  3. Model Training and Rejection Sampling: A base model (Llama-3.1-8B) is fine-tuned on these concept-rationale-problem triples. To maintain high data integrity, the framework employs an iterative rejection sampling phase. Two independent LLM evaluators must provide a unanimous "perfect" rating for a generated problem before it is admitted into the final training set.

Theoretical Foundation

The authors provide a theoretical justification for this approach using the Evidence Lower Bound (ELBO). They demonstrate that an optimal rationale should maximize two specific probabilities: the likelihood of the rationale given the starting concepts, and the likelihood of the final problem given both the rationale and the concepts. This formalizes the rationale as a necessary bridge in the generative process.

Experimental Results

PromptCoT was evaluated across several benchmarks, including GSM8K (grade school), MATH-500 (high school competition), and AIME2024 (Olympiad level). The results indicate that PromptCoT allows smaller models to significantly outperform much larger counterparts.

AIME2024 Breakthroughs

The PROMPTCOT-DS-7B model, distilled from DeepSeek-R1, achieved a 60.0% accuracy on AIME2024. This performance is particularly notable as it surpasses significantly larger models, such as QwQ-32B (50.0%) and S1-32B (56.7%). Even at the 1.5B parameter scale, PROMPTCOT-Qwen-1.5B outperformed all baselines, reaching 26.7% on AIME2024, whereas competing methods like Evol-Instruct struggled to exceed 17%.

Data Scalability and Reasoning Depth

Unlike previous synthetic data methods (e.g., OpenMathInstruct) that tend to plateau as dataset size increases, PromptCoT demonstrates superior scalability. Performance consistently improved as the dataset grew from 200k to 800k problems, suggesting that the rationale-guided approach provides a more diverse and high-fidelity training signal.

Furthermore, the problems generated by PromptCoT are demonstrably more complex. When DeepSeek-R1 was tasked with solving these problems, it required an average of 6,502 reasoning tokens—significantly higher than the reasoning depth required for problems in other synthetic datasets.

Conclusion and Future Directions

PromptCoT successfully demonstrates that the "rationale" is a critical component for synthesizing high-level mathematical challenges. By training models to think like problem designers, the framework produces data that pushes the boundaries of LLM reasoning capabilities.

Future work will focus on expanding this methodology to even more rigorous levels, such as the International Mathematical Olympiad (IMO), and exploring the application of rationale-guided synthesis in other complex domains like physics and computer science. While current models are limited by their base capacity (e.g., Llama-3.1-8B), scaling both the model size and the diversity of the synthetic sets remains a promising frontier for achieving human-level reasoning in AI.

Summary updated

BibTeX
@inproceedings{zhao2025promptcot,
  author = {Xueliang Zhao and Wei Wu and Jian Guan and Lingpeng Kong},
  title = {{PromptCoT: Synthesizing Olympiad-level Problems for Mathematical Reasoning in Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=66DS2n730V},
}
Figure