Skip to main content
QUICK REVIEW

[论文解读] V-STaR: Training Verifiers for Self-Taught Reasoners

Arian Hosseini, Xingdi Yuan|arXiv (Cornell University)|Feb 9, 2024
Semantic Web and OntologiesComputer Science被引用 3
一句话总结

V-STaR 提出了一种数据高效的自我改进框架,该框架在迭代式大语言模型训练过程中,同时利用正确和错误的解法,通过 DPO 联合微调推理模型和验证模型。通过在推理阶段使用验证模型对候选解法进行排序,V-STaR 在使用 LLaMA2 模型的数学和代码推理基准测试中,相较于以往的自我改进和验证方法,实现了 4% 至 17% 的绝对准确率提升。

ABSTRACT

Common self-improvement approaches for large language models (LLMs), such as STaR, iteratively fine-tune LLMs on self-generated solutions to improve their problem-solving ability. However, these approaches discard the large amounts of incorrect solutions generated during this process, potentially neglecting valuable information in such solutions. To address this shortcoming, we propose V-STaR that utilizes both the correct and incorrect solutions generated during the self-improvement process to train a verifier using DPO that judges correctness of model-generated solutions. This verifier is used at inference time to select one solution among many candidate solutions. Running V-STaR for multiple iterations results in progressively better reasoners and verifiers, delivering a 4% to 17% test accuracy improvement over existing self-improvement and verification approaches on common code generation and math reasoning benchmarks with LLaMA2 models.

研究动机与目标

  • 解决现有自我改进方法在训练过程中丢弃错误解法所导致的数据效率低下问题。
  • 通过同时利用正确和错误的模型自生成解法,联合训练生成器和验证器,以提升推理性能。
  • 评估 DPO 在训练验证器方面相较于标准监督微调方法的有效性。
  • 通过训练好的验证器实现在推理阶段的解法排序,通过候选选择提升最终准确率。
  • 证明在迭代优化中使用所有生成的解法可训练出更强的推理模型和验证器。

提出的方法

  • 在自生成的正确解法上迭代训练生成器,逐步将新生成的正确输出加入训练数据。
  • 收集所有生成的解法——包括正确和错误的——并为其标注正确性以用于验证器训练。
  • 使用 DPO(直接偏好优化)训练验证器,使其偏好来自同一生成批次的正确解法而非错误解法。
  • 在推理阶段使用训练好的验证器对生成器产生的多个候选解法进行排序,并选择排名最高的解法。
  • 在多个迭代中重复该过程,逐步提升生成器和验证器的性能。
  • 引入一种新指标 Verifier@k,以在推理阶段解法排序的设定下可靠评估验证器性能。
Figure 1 : Generator and verifier training with V-STaR . Left: In each training iteration, the generator $G^{t}$ is fine-tuned (from a pretrained LLM) on the current buffer of problem instances and correct solutions ${\cal D}_{\text{GEN}}$ . Generated solutions that yielded a correct answer are adde
Figure 1 : Generator and verifier training with V-STaR . Left: In each training iteration, the generator $G^{t}$ is fine-tuned (from a pretrained LLM) on the current buffer of problem instances and correct solutions ${\cal D}_{\text{GEN}}$ . Generated solutions that yielded a correct answer are adde

实验结果

研究问题

  • RQ1利用正确和错误的自生成解法是否能提升大语言模型推理模型和验证器的性能?
  • RQ2与标准监督微调方法相比,DPO 在基于合成解法数据训练验证器时是否更有效?
  • RQ3使用所有生成解法进行迭代优化是否能带来比丢弃错误解法的方法更高的最终准确率?
  • RQ4在推理阶段,基于自生成数据训练的验证器能在多大程度上提升解法选择的性能?
  • RQ5V-STaR 是否能仅使用 7B 参数的生成器,实现与更大模型相当的性能?

主要发现

  • 在数学推理基准测试(如 GSM8K 和 MATH)上,V-STaR 相较于最先进的自我改进和基于验证的方法,实现了 6% 至 17% 的绝对准确率提升。
  • 在代码生成任务(MBPP 和 HumanEval)上,V-STaR 相较于现有方法,准确率提升了 4% 至 12%。
  • 7B 参数的 V-STaR 模型在 GSM8K 上的表现超过了基础 LLaMA2 70B 模型的 8-shot 性能,展现出强大的数据效率。
  • 7B 参数的 V-STaR 模型在 HumanEval 上的性能几乎与 CodeLLaMA 34B 模型的零样本性能相当,凸显其有效性。
  • 基于 DPO 的验证器训练优于 Cobbe 等人(2021)的标准方法,展现出更高的样本效率,并在更少的训练步数下取得更优性能。
  • Verifier@64 的准确率随着训练显著提升,而生成质量保持稳定,验证了 DPO 训练目标的鲁棒性。
V-STaR: Training Verifiers for Self-Taught Reasoners

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。