TL;DR
Researchers have introduced MMIQC, a new dataset and augmentation framework that pushes open-source Large Language Models (LLMs) to new heights in mathematical reasoning. By using a novel Iterative Question Composing (IQC) method to generate increasingly complex problems, their fine-tuned Qwen-72B model achieved a 45.0% accuracy on the challenging MATH benchmark, outperforming the original version of GPT-4.
What Problem Does This Paper Address?
While LLMs have become remarkably proficient at natural language tasks, competition-level mathematical reasoning remains a "final boss" for the field. Open-source models, in particular, lag significantly behind proprietary giants like GPT-4 and Gemini Ultra when solving multi-step problems in algebra, geometry, and calculus.
Existing approaches usually fall into two camps: continual pre-training on massive web-scraped math corpora or Supervised Fine-Tuning (SFT) on high-quality synthetic instruction data. However, simply adding more data often hits a point of diminishing returns. The authors identify a need for data that is not just plentiful, but diverse and structurally complex enough to teach models the "logical leaps" required for high-level math.
Methods
The authors bridge the gap between pre-training and SFT by creating the MMIQC dataset. Their approach relies on three key pillars:
- Iterative Question Composing (IQC): This is the paper's core innovation. Instead of just rephrasing existing problems, IQC takes a "seed" problem and asks a teacher model (GPT-4) to iteratively compose a new, more complex question that contains the original as a sub-problem. This adds reasoning steps while maintaining a logical, organic structure.
- Rejection Sampling: To ensure the quality of synthetic data, the authors use a two-model system. GPT-4 generates the new problems and solutions, while a second model (GPT-3.5-Turbo) attempts to solve them. If the answers don't match, the sample is rejected.
- Hybrid Data Sourcing: They combine high-quality web data (specifically filtered from Mathematics Stack Exchange) with multiple synthetic streams, including question bootstrapping and augmented similar problems.
Datasets
- MMIQC (New): A massive collection of ~1.2 million question-response pairs. It includes 1.2M samples from Mathematics Stack Exchange and several synthetic subsets (IQC, MetaMathQA subset, and augmented similar problems).
- MATH Benchmark: The primary evaluation set consisting of 5,000 competition-level problems.
- 2023 Hungarian National High School Mathematics Finals: Used as a "held-out" test to ensure the models aren't just memorizing the MATH benchmark but are actually learning to reason.
Key Insights and Ideas
- Complexity over Volume: The authors found that a filtered subset of the popular MetaMathQA dataset (roughly half the original size) performed nearly as well as the full set, suggesting significant redundancy in existing synthetic math datasets.
- The Power of IQC: IQC provided a 3.1% boost in accuracy with only 55K samples. By forcing the model to solve "problems within problems," it effectively trains the model to handle longer reasoning chains.
- Reusing Pre-training Data in SFT: One of the most effective components was including raw Mathematics Stack Exchange data in the SFT phase. This suggests that the high-quality discussions found on such forums are underutilized in standard instruction tuning.
- Generalization is Real: The models didn't just "overfit" to the MATH benchmark; they showed strong performance on the 2023 Hungarian math finals, a completely different exam format.
Key Results
The results across various model sizes were consistently superior to previous open-source state-of-the-art (SOTA) models:
- Qwen-72B-MMIQC reached 45.0% on MATH, surpassing the initial GPT-4 (42.5%) and setting a new open-source record.
- DeepSeek-67B-MMIQC achieved 41.0%, a significant jump over its base version.
- Mistral-7B-MMIQC hit 36.0%, which is particularly impressive for a model of its size, beating many models ten times larger.
Limitations and Future Work
Despite the success, the authors note a few hurdles:
- Correctness: Manual checks showed that about 15% of IQC-generated problems still contain errors, despite rejection sampling.
- Computational Cost: Generating high-quality synthetic data with GPT-4 is expensive and slow.
- Self-Evolution: A major future goal is to enable open-source models to perform IQC on themselves (self-evolution) without needing a proprietary "teacher" model like GPT-4.
- Inference-time Verification: The authors are interested in integrating verification systems (like Reward Models) directly into the IQC process to further boost data quality.
Summary updated