Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Common 7B Language Models Already Possess Strong Math Capabilities

About

Mathematical capabilities were previously believed to emerge in common language models only at a very large scale or require extensive math-related pre-training. This paper shows that the LLaMA-2 7B model with common pre-training already exhibits strong mathematical abilities, as evidenced by its impressive accuracy of 97.7% and 72.0% on the GSM8K and MATH benchmarks, respectively, when selecting the best response from 256 random generations. The primary issue with the current base model is the difficulty in consistently eliciting its inherent mathematical capabilities. Notably, the accuracy for the first answer drops to 49.5% and 7.9% on the GSM8K and MATH benchmarks, respectively. We find that simply scaling up the SFT data can significantly enhance the reliability of generating correct answers. However, the potential for extensive scaling is constrained by the scarcity of publicly available math questions. To overcome this limitation, we employ synthetic data, which proves to be nearly as effective as real data and shows no clear saturation when scaled up to approximately one million samples. This straightforward approach achieves an accuracy of 82.6% on GSM8K and 40.6% on MATH using LLaMA-2 7B models, surpassing previous models by 14.2% and 20.8%, respectively. We also provide insights into scaling behaviors across different reasoning complexities and error types.

Chen Li, Weiqi Wang, Jingcheng Hu, Yixuan Wei, Nanning Zheng, Han Hu, Zheng Zhang, Houwen Peng• 2024

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningGSM8K (test)
Accuracy90.2
770
Mathematical ReasoningGSM8K
Accuracy87.6
499
Mathematical ReasoningMATH (test)
Overall Accuracy52.5
433
Mathematical ReasoningMATH
Accuracy75.97
338
Mathematical ReasoningTabMWP
Accuracy95.67
188
Commonsense ReasoningCSQA
CSQA Accuracy76.4
126
Mathematical ReasoningCollegeMath (test)
Accuracy33.1
89
Natural Language InferenceaNLI
Accuracy64.45
65
Mathematical ReasoningOlympiadBench Math (test)
Accuracy16.3
59
Question AnsweringARC-C
Accuracy89.64
54
Showing 10 of 17 rows

Other info

Follow for update