Math-Shepherd: A Label-Free Step-by-Step Verifier for LLMs in Mathematical Reasoning

2023年12月14日
大型语言模型(LLMs)已经展示了在各种任务中的非凡能力。然而,即使是最先进的开源LLMs,例如LLaMA系列模型,在准确解决复杂的多步数学问题方面仍然面临挑战。在本文中,我们提出了一种创新的面向过程的数学验证器,称为\textbf{Math-Shepherd},它为LLM在数学问题上的每个步骤分配一个奖励分数。 Math-Shepherd的训练是通过使用自动构建的过程级监督数据实现的,打破了现有工作中对手动注释的重度依赖的瓶颈。在Math-Shepherd的指导下,一系列开源LLMs展现了出色的性能。其中,DeepSeek 67B \citep {DeepSeek-llm}在没有外部增强(如工具使用)的情况下,在GSM8K数据集上实现了93.3%的准确率,在MATH数据集上实现了48.1%的准确率。我们的Math-Shepherd也优于自洽方法和其他现有的验证模型。我们相信,自动化的过程监督对于未来LLMs的发展具有重要潜力。
Large language models (LLMs) have demonstrated remarkable capabilities across a wide range of tasks. However, even the most advanced open-source LLMs, such as the LLaMA family models, still face challenges when it comes to accurately solving complex multi-step mathematical problems. In this paper, we present an innovative process-oriented math verifier called \textbf{Math-Shepherd}, which assigns a reward score to each step of the LLM's outputs on math problems. The training of Math-Shepherd is achieved using automatically constructed process-wise supervision data, breaking the bottleneck of heavy reliance on manual annotation in existing work. With the guidance of Math-Shepherd, a series of open-source LLMs demonstrate exceptional performance. Among them, DeepSeek 67B \citep{DeepSeek-llm} stands out by achieving accuracy rates of 93.3\% on the GSM8K dataset and 48.1\% on the MATH dataset, without external enhancement such as tool usage. Our Math-Shepherd also outperforms the self-consistency method and other existing verification models. We believe that automatic process supervision holds significant potential for the future evolution of LLMs.
许愿