arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.01825cs.CL
收藏

大语言模型学习数学推理的缩放关系

Scaling Relationship on Learning Mathematical Reasoning with Large Language Models

Alibaba DAMO Academy(阿里巴巴达摩院)

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

AI总结:

本文研究大语言模型数学推理能力的缩放关系,发现预训练损失是比参数量更好的性能指标,并提出拒绝采样微调(RFT)方法,通过收集正确推理路径增强数据,显著提升了模型在GSM8K等任务上的表现。

摘要:

数学推理对大语言模型(LLMs)是一项具有挑战性的任务,而其与LLM能力之间的缩放关系尚未得到充分探索。本文研究了预训练损失、监督数据量和增强数据量如何影响监督LLM的推理性能。我们发现,预训练损失是比模型参数量更好的模型性能指标。我们应用了监督微调(SFT),使用不同数量的监督数据,并经验性地发现数据量与模型性能之间存在对数线性关系,同时发现更好的模型在扩大的监督数据集上提升较小。为了在无需任何人工努力的情况下增强更多数据样本以提升模型性能,我们提出应用拒绝采样微调(RFT)。RFT利用监督模型生成并收集正确的推理路径,作为增强的微调数据集。我们发现,随着增强样本包含更多不同的推理路径,RFT对LLMs的数学推理性能提升更大。我们还发现RFT为性能较差的LLMs带来了更大的提升。此外,我们结合了来自多个模型的拒绝样本,将LLaMA-7B在GSM8K上的准确率提升至49.3%,显著优于监督微调(SFT)35.9%的准确率。

英文摘要:

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\% on GSM8K which outperforms the supervised fine-tuning (SFT) accuracy of 35.9\% significantly.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑