Skip to main content
QUICK REVIEW

[论文解读] Orca-Math: Unlocking the potential of SLMs in Grade School Math

Arindam Mitra, Hamed Khanpour|arXiv (Cornell University)|Feb 16, 2024
Cognitive and developmental aspects of mathematical skillsMathematics被引用 7
一句话总结

Orca-Math 显示一个 7B 参数的 SLM,在用 200K 合成数学题训练后,在不使用外部工具或集成的情况下,通过迭代偏好学习和高质量的代理生成数据集,达到 86.81% GSM8K pass@1。

ABSTRACT

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).

研究动机与目标

  • 旨在提升小型语言模型(SLMs)在小学数学应用题上的推理能力。
  • 提出高质量的合成数据管线与迭代学习以增强 SLM 的推理能力。
  • 证明在极少数据、无外部工具的情况下,较小模型也能在 GSM8K 上超越更大模型 。

提出的方法

  • 通过代理生成数据管线创建 Orca-Math 数据集,包含 200K 道数学题,配套 GPT-4-Turbo 解决方案。
  • 使用一个迭代学习循环:监督微调、学生题解、对解答的教师反馈。
  • 使用正/负解信号和偏好微调(DPO 和 KTO)来对齐模型,无需外部验证工具。
  • 使用基于 GPT-4 的提取进行接近精确匹配的评测(GPT4-based-Exact-Match)在 GSM8K 及其他基准上进行评估。
  • 与更大模型(如 LLama-2-70B、WizardMath-70B、Gemini-Pro、GPT-3.5)进行对比,显示在显著更少的数据下的竞争力。
  • 给出消融研究以展示模型生成的正向样本和负向样本的重要性。

实验结果

研究问题

  • RQ1一个 7B 的 SLM 是否可以在不进行集成或外部工具的情况下达到 GSM8K pass@1 高于 80%?
  • RQ2迭代偏好学习(包含正向/负向信号)与标准监督微调在数学推理方面对 SLM 的影响有何不同?
  • RQ3代理生成的高质量合成数据对小模型的数学推理表现有何影响?
  • RQ4模型生成的正向样本和合成负样本对训练效果是否有显著贡献?

主要发现

  • 仅使用监督微调时,Orca-Math 的 GSM8K pass@1 为 81.50%。
  • 迭代偏好学习在不使用验证器或外部工具的情况下将 GSM8K pass@1 提升到 86.81%。
  • Orca-Math(7B,Mistral)在本报道的设置下超越了更大模型,如 LLama-2-70B、WizardMath-70B、Gemini-Pro 和 GPT-3.5 在 GSM8K 上的表现。
  • 200K 的合成数据集在数据量级远小于多数基线的情况下达到具竞争性的表现。
  • 消融结果显示仅使用教师生成的正样本会降低性能;模型生成的正向样本和负向信号是有益的。
  • Orca-Math 在非 GSM8K 的数学基准(AddSub、ASDiv、MultiArith、SingleOp、SinglEq、Svamp 结构化任务)上也显示出基于 GPT-4 的精确匹配的强结果。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。