Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Scaling Relationship on Learning Mathematical Reasoning with Large Language Models (2308.01825v2)

Published 3 Aug 2023 in cs.CL
Scaling Relationship on Learning Mathematical Reasoning with Large Language Models

Abstract: Mathematical reasoning is a challenging task for LLMs, while the scaling relationship of it with respect to LLM capacity is under-explored. In this paper, we investigate how the pre-training loss, supervised data amount, and augmented data amount influence the reasoning performances of a supervised LLM. We find that pre-training loss is a better indicator of the model's performance than the model's parameter count. We apply supervised fine-tuning (SFT) with different amounts of supervised data and empirically find a log-linear relation between data amount and model performance, and we find better models improve less with enlarged supervised datasets. To augment more data samples for improving model performances without any human effort, we propose to apply Rejection sampling Fine-Tuning (RFT). RFT uses supervised models to generate and collect correct reasoning paths as augmented fine-tuning datasets. We find with augmented samples containing more distinct reasoning paths, RFT improves mathematical reasoning performance more for LLMs. We also find RFT brings more improvement for less performant LLMs. Furthermore, we combine rejection samples from multiple models which push LLaMA-7B to an accuracy of 49.3\% on GSM8K which outperforms the supervised fine-tuning (SFT) accuracy of 35.9\% significantly.

Introduction to the Scaling Relationship in Mathematical Reasoning

LLMs have become increasingly adept at tackling mathematical reasoning problems, a development of particular interest for both theoretical and applied AI research. The extent to which different factors influence an LLM's capacity for mathematical reasoning is a question of paramount importance for optimizing their training and deployment.

Pre-Training Loss as Performance Indicator

A crucial finding of the analyzed paper is that pre-training loss is a better indicator of an LLM's mathematical reasoning ability than just the model's parameter count. This suggests that focusing on lower pre-training loss could be more effective for improving an LLM's performance than increasing its size. Supervised fine-tuning (SFT) with various amounts of supervised data reveals a log-linear relationship, with diminishing gains for larger, better-pre-trained models.

Rejection Sampling Fine-Tuning (RFT) Strategy

To achieve superior model performances without manual data generation, the researchers propose Rejection sampling Fine-Tuning (RFT). The strategy involves generating correct reasoning paths with a supervised model, which are then used as an augmented dataset for fine-tuning. RFT results vary depending on the distinct reasoning path amount, which can be adjusted by modifying the number of samples or combining samples from multiple models. Notably, this method is not only computationally cheaper than extensive pre-training but also brings marked improvements for less performant LLMs.

Enhanced Performance with Combined Rejection Samples

Applying RFT and combining rejection samples from multiple models significantly improves LLM capabilities, pushing the performance of models like LLaMA-7B by over 13 percentage points compared to SFT. This finding indicates that model performance could potentially benefit from diverse reasoning paths, leading to better generalization while reasoning.

Implications and Future Directions

The paper’s insights into the factors influencing LLMs' mathematical reasoning abilities—specifically the impact of pre-training losses, the quantity of supervised data, and the amount of augmented reasoning paths—are poised to inform future LLM training strategies. Moreover, the relative ease and efficiency of RFT compared to extended pre-training underscore its potential as a key approach for enhancing LLM performance on mathematical reasoning tasks.

In conclusion, while the pursuit of more efficient and effective LLMs continues, it has become clear that optimizing pre-training processes and utilizing innovative fine-tuning approaches like RFT hold significant promise for improving LLM reasoning skills in mathematical domains.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (8)
  1. Zheng Yuan (117 papers)
  2. Hongyi Yuan (23 papers)
  3. Chengpeng Li (10 papers)
  4. Guanting Dong (46 papers)
  5. Chuanqi Tan (56 papers)
  6. Chang Zhou (105 papers)
  7. Keming Lu (35 papers)
  8. Jingren Zhou (198 papers)
Citations (122)
X Twitter Logo Streamline Icon: https://streamlinehq.com
Youtube Logo Streamline Icon: https://streamlinehq.com