English

Exploring Mathematical Extrapolation of Large Language Models with Synthetic Data

Computation and Language 2024-06-05 v1

Abstract

Large Language Models (LLMs) have shown excellent performance in language understanding, text generation, code synthesis, and many other tasks, while they still struggle in complex multi-step reasoning problems, such as mathematical reasoning. In this paper, through a newly proposed arithmetical puzzle problem, we show that the model can perform well on multi-step reasoning tasks via fine-tuning on high-quality synthetic data. Experimental results with the open-llama-3B model on three different test datasets show that not only the model can reach a zero-shot pass@1 at 0.44 on the in-domain dataset, it also demonstrates certain generalization capabilities on the out-of-domain datasets. Specifically, this paper has designed two out-of-domain datasets in the form of extending the numerical range and the composing components of the arithmetical puzzle problem separately. The fine-tuned models have shown encouraging performance on these two far more difficult tasks with the zero-shot pass@1 at 0.33 and 0.35, respectively.

Keywords

Cite

@article{arxiv.2406.02100,
  title  = {Exploring Mathematical Extrapolation of Large Language Models with Synthetic Data},
  author = {Haolong Li and Yu Ma and Yinqi Zhang and Chen Ye and Jie Chen},
  journal= {arXiv preprint arXiv:2406.02100},
  year   = {2024}
}

Comments

Accept by Findings of ACL 2024

R2 v1 2026-06-28T16:52:37.076Z