OpenMathInstruct-1: A 1.8 Million Math Instruction Tuning Dataset

Shubham Toshniwal, Ivan Moshkov, Sean Narenthiran, Daria Gitman, Fei Jia +1 more
2/15/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: NVIDIA-NeMo/Skills (1,014 stars, Apache-2.0, last commit 2026-05-03).

Abstract

Recent work has shown the immense potential of synthetically generated datasets for training large language models (LLMs), especially for acquiring targeted skills. Current large-scale math instruction tuning datasets such as MetaMathQA (Yu et al., 2024) and MAmmoTH (Yue et al., 2024) are constructed using outputs from closed-source LLMs with commercially restrictive licenses. A key reason limiting the use of open-source LLMs in these data generation pipelines has been the wide gap between the mathematical skills of the best closed-source LLMs, such as GPT-4, and the best open-source LLMs. Building on the recent progress in open-source LLMs, our proposed prompting novelty, and some brute-force scaling, we construct OpenMathInstruct-1, a math instruction tuning dataset with 1.8M problem-solution pairs. The dataset is constructed by synthesizing code-interpreter solutions for GSM8K and MATH, two popular math reasoning benchmarks, using the recently released and permissively licensed Mixtral model. Our best model, OpenMath-CodeLlama-70B, trained on a subset of OpenMathInstruct-1, achieves a score of 84.6% on GSM8K and 50.7% on MATH, which is competitive with the best gpt-distilled models. We release our code, models, and the OpenMathInstruct-1 dataset under a commercially permissive license.

View on arXivView PDF

Code Implementations(1)

NVIDIA-NeMo/SkillsCommunity100%
Apache-2.0

A project to improve skills of large language models

1,014193C, ShellFeb 11, 20245 months agoApache-2.0

Similar Papers

Cite this paper

@article{toshniwal2024openmathinstruct,
  title  = {OpenMathInstruct-1: A 1.8 Million Math Instruction Tuning Dataset},
  author = {Shubham Toshniwal and Ivan Moshkov and Sean Narenthiran and Daria Gitman and Fei Jia and Igor Gitman},
  year   = {2024},
  eprint = {2402.10176},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2402.10176},
  url    = {http://arxiv.org/abs/2402.10176v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.10176.svg)](https://codeofpaper.com/paper/2402.10176)

Discussion