MathScale: Scaling Instruction Tuning for Mathematical Reasoning

Zhengyang Tang, Xingxing Zhang, Benyou Wang, Furu Wei

arXiv:2403.02884 · 2026-07-27 공개 · arXiv · PDF

mathematical-reasoning instruction-tuning llm-finetuning dataset-generation llama-2 mistral math-education mathscaleqa

Abstract

Large language models (LLMs) have demonstrated remarkable capabilities in problem-solving. However, their proficiency in solving mathematical problems remains inadequate. We propose MathScale, a simple and scalable method to create high-quality mathematical reasoning data using frontier LLMs (e.g., {\tt GPT-3.5}). Inspired by the cognitive mechanism in human mathematical learning, it first extracts topics and knowledge points from seed math questions and then build a concept graph, which is subsequently used to generate new math questions. MathScale exhibits effective scalability along the size axis of the math dataset that we generate. As a result, we create a mathematical reasoning dataset (MathScaleQA) containing two million math question-answer pairs. To evaluate mathematical reasoning abilities of LLMs comprehensively, we construct {\sc MwpBench}, a benchmark of Math Word Problems, which is a collection of ten datasets (including GSM8K and MATH) covering K-12, college, and competition level math problems. We apply MathScaleQA to fine-tune open-source LLMs (e.g., LLaMA-2 and Mistral), resulting in significantly improved capabilities in mathematical reasoning. Evaluated on {\sc MwpBench}, MathScale-7B achieves state-of-the-art performance across all datasets, surpassing its best peers of equivalent size by 42.9\% in micro average accuracy and 43.7\% in macro average accuracy, respectively.

한국어 요약

한 줄 요약

MathScale은 GPT-3.5를 활용해 수학적 추론 데이터를 확장하고, MwpBench 벤치마크에서 42.9%의 micro average 정확도 개선을 달성한 수학 학습 모델 훈련 방법이다.

핵심 기여도

핵심 아이디어

기존 수학 문제 증강 방법은 원본 문제와 유사한 문제만 생성해 확장성이 제한적이었다. MathScale은 인간의 수학 학습 과정을 모방한 두 단계 접근법을 도입한다. 첫째, GPT-3.5를 사용해 시드 문제에서 주제와 지식 포인트를 추출(Concept Compression). 둘째, 추출된 개념을 연결한 개념 그래프를 생성(Concept Graph Construction)하고, 이를 기반으로 새로운 문제를 생성한다. 이 방식은 기존 문제에 의존하지 않고, 다양한 개념 조합을 통해 더 많은 문제를 생성할 수 있다. 인간의 수학 학습에서 개념 압축과 연결 형성이 핵심이라는 인지 메커니즘을 반영한 점이 차별점이다.

기술적 접근법

주요 결과

의의 및 한계

MathScale은 수학 문제 생성의 확장성을 획기적으로 높였으며, MwpBench는 K-12부터 대학, 경시 수준까지 포괄하는 종합적 수학 추론 평가 기준을 제공한다. 특히, open-source 모델의 수학 능력을 향상시키는 데 기여하며, LLaMA-2와 Mistral 모델의 수학 성능을 대폭 개선한 점이 주목할 만하다. 다만, GPT-3.5로 생성된 데이터의 일부가 오류를 포함할 수 있으나, 이는 fine-tuning 과정에서 오히려 모델이 GPT-3.5의 분포를 학습하는 데 도움이 된다는 점에서 긍정적으로 평가된다. 한계로는 LLaMA-2 70B 모델의 실험은 아직 수행되지 않았다.

실용적 활용

MathScale은 수학 교육 콘텐츠 자동 생성, 수학 능력 평가 시스템 개발, open-source LLM의 수학 추론 능력 향상을 위한 fine-tuning 데이터셋으로 활용 가능하다. 특히, 교육 기관이나 AI 기반 학습 플랫폼에서 대규모 맞춤형 수학 문제 생성에 유용하게 사용될 수 있다.