TensorX
返回文献探索

Paper · arXiv 2308.01825

Scaling Relationship on Learning Mathematical Reasoning with Large Language Models

Zheng Yuan, Hongyi Yuan, Chengpeng Li, Guanting Dong, Chuanqi Tan, Chang Zhou

23 upvotesAugust 3, 2023arXiv 预印本
AI 摘要

Rejection sampling fine-tuning enhances mathematical reasoning in large language models by generating auxiliary datasets of correct reasoning paths, leading to higher performance and better scalability compared to supervised fine-tuning.

pre-training losssupervised fine-tuningsupervised dataaugmented datamathematical reasoningrejection sampling Fine-Tuningreasoning pathsperformance scalabilityLLaMA-7B

Abstract

Mathematical reasoning is a challenging task for large language models (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% and outperforms the supervised fine-tuning (SFT) accuracy of 35.9% significantly.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Scaling Relationship on Learning Mathematical Reasoning with Large Language Models | TensorX