[Paper Review] Orca-Math: Unlocking the potential of SLMs in Grade School Math
Orca-Math shows a 7B-parameter SLM trained on 200K synthetic math problems can reach 86.81% GSM8K pass@1 without external tools or ensembling, via iterative preference learning and a high-quality agent-generated dataset.
Mathematical word problem-solving has long been recognized as a complex task for small language models (SLMs). A recent study hypothesized that the smallest model size, needed to achieve over 80% accuracy on the GSM8K benchmark, is 34 billion parameters. To reach this level of performance with smaller models, researcher often train SLMs to generate Python code or use tools to help avoid calculation errors. Additionally, they employ ensembling, where outputs of up to 100 model runs are combined to arrive at a more accurate result. Result selection is done using consensus, majority vote or a separate a verifier model used in conjunction with the SLM. Ensembling provides a substantial boost in accuracy but at a significant cost increase with multiple calls to the model (e.g., Phi-GSM uses top-48 to boost the performance from 68.2 to 81.5). In this work, we present Orca-Math, a 7-billion-parameter SLM based on the Mistral-7B, which achieves 86.81% on GSM8k without the need for multiple model calls or the use of verifiers, code execution or any other external tools. Our approach has the following key elements: (1) A high quality synthetic dataset of 200K math problems created using a multi-agent setup where agents collaborate to create the data, (2) An iterative learning techniques that enables the SLM to practice solving problems, receive feedback on its solutions and learn from preference pairs incorporating the SLM solutions and the feedback. When trained with Supervised Fine-Tuning alone, Orca-Math achieves 81.50% on GSM8k pass@1 metric. With iterative preference learning, Orca-Math achieves 86.81% pass@1. Orca-Math surpasses the performance of significantly larger models such as LLAMA-2-70B, WizardMath-70B, Gemini-Pro, ChatGPT-3.5. It also significantly outperforms other smaller models while using much smaller data (hundreds of thousands vs. millions of problems).
Motivation & Objective
- Motivate improving mathematical reasoning in small language models (SLMs) for grade-school word problems.
- Propose a high-quality synthetic data pipeline and iterative learning to enhance SLM reasoning.
- Demonstrate that a small model can surpass larger models on GSM8K with minimal data and no external tools.
Proposed method
- Create Orca-Math-dataset of 200K math problems with GPT-4-Turbo solutions via an agent-based data generation pipeline.
- Employ an iterative learning loop: supervised fine-tuning, student problem solving, and teacher feedback on solutions.
- Use positive/negative solution signals and preference-based fine-tuning (DPO and KTO) to align the model, without external verification tools.
- Evaluate using exact-match-like prompting with GPT-4-based extraction (GPT4-based-Exact-Match) on GSM8K and other benchmarks.
- Compare against larger models (e.g., LLama-2-70B, WizardMath-70B, Gemini-Pro, GPT-3.5) to show competitiveness with far less data.
- Report ablations to show the importance of model-generated positives and negative samples.
Experimental results
Research questions
- RQ1Can a 7B SLM achieve GSM8K pass@1 above 80% without ensembling or external tools?
- RQ2How does iterative preference learning (with positive/negative signals) compare to standard supervised fine-tuning for math reasoning in SLMs?
- RQ3What is the effect of agent-generated, high-quality synthetic data on small-model math reasoning performance?
- RQ4Do model-generated positives and synthetic negatives contribute significantly to training efficacy?
Key findings
- With supervised fine-tuning alone, Orca-Math achieves 81.50% GSM8K pass@1.
- Iterative preference learning raises GSM8K pass@1 to 86.81% without verifiers or external tools.
- Orca-Math (7B, Mistral) outperforms larger models such as LLama-2-70B, WizardMath-70B, Gemini-Pro, and GPT-3.5 on GSM8K under the reported setup.
- The 200K synthetic dataset achieves competitive performance with orders of magnitude less data than many baselines.
- Ablation shows using only teacher-generated positives degrades performance; model-generated positives and negative signals are beneficial.
- Orca-Math also shows strong results on non-GSM8K math benchmarks (AddSub, ASDiv, MultiArith, SingleOp, SinglEq, Svamp structured) using GPT4-based exact-match.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.