Skip to main content
QUICK REVIEW

[论文解读] Mutual Reasoning Makes Smaller LLMs Stronger Problem-Solvers

Zhenting Qi, Mingyuan Ma|arXiv (Cornell University)|Aug 12, 2024
Digital Rights Management and SecurityComputer Science被引用 3
一句话总结

本文提出 rStar,一种自对弈互评推理框架,可在无需微调或依赖更优模型的情况下提升小型语言模型(SLMs)的推理能力。通过使用蒙特卡洛树搜索(MCTS)和第二个 SLM 作为判别器,将推理过程解耦为自生成与互评两个阶段,rStar 在推理基准测试中达到最先进性能,将 LLaMA2-7B 在 GSM8K 上的准确率从 12.51% 提升至 63.91%,在某些情况下甚至超越微调模型。

ABSTRACT

This paper introduces rStar, a self-play mutual reasoning approach that significantly improves reasoning capabilities of small language models (SLMs) without fine-tuning or superior models. rStar decouples reasoning into a self-play mutual generation-discrimination process. First, a target SLM augments the Monte Carlo Tree Search (MCTS) with a rich set of human-like reasoning actions to construct higher quality reasoning trajectories. Next, another SLM, with capabilities similar to the target SLM, acts as a discriminator to verify each trajectory generated by the target SLM. The mutually agreed reasoning trajectories are considered mutual consistent, thus are more likely to be correct. Extensive experiments across five SLMs demonstrate rStar can effectively solve diverse reasoning problems, including GSM8K, GSM-Hard, MATH, SVAMP, and StrategyQA. Remarkably, rStar boosts GSM8K accuracy from 12.51% to 63.91% for LLaMA2-7B, from 36.46% to 81.88% for Mistral-7B, from 74.53% to 91.13% for LLaMA3-8B-Instruct. Code will be available at https://github.com/zhentingqi/rStar.

研究动机与目标

  • 在推理阶段提升小型语言模型(SLMs)的推理能力,而无需依赖微调或更优的教师模型。
  • 解决 SLM 在自我探索中面临的问题,如解空间探索不足和自我评估无效。
  • 开发一种自对弈互评机制,利用同伴一致性(互评一致性)识别高质量的推理轨迹。
  • 证明两个 SLM 之间的互评一致性可作为推理改进的稳健、无监督反馈信号。
  • 仅通过推理阶段的自对弈机制,实现与领域专用微调模型相当或更优的性能。

提出的方法

  • rStar 采用自对弈互评过程,其中目标 SLM 作为生成器,利用蒙特卡洛树搜索(MCTS)并结合一系列类人推理动作(如分解、子问题生成、重述等)进行推理。
  • 第二个 SLM(与目标 SLM 具有相似能力)作为判别器,通过补全部分推理轨迹并检查互评一致性来评估候选推理轨迹。
  • 互评一致性定义为生成器完整轨迹与判别器对部分轨迹的补全结果之间的一致性,作为正确性的代理指标。
  • MCTS 的树扩展由基于互评一致性的奖励函数引导,从而有效探索高质量推理路径。
  • 最终答案基于多次 MCTS 滚动中互评一致性得分最高的轨迹选择。
  • 该方法完全基于推理,无需微调,且生成器与判别器均仅使用相同规模的 SLM。
Figure 1: With 32 rounds of inference, rStar makes SLMs highly capable problem-solvers, matching or even surpassing the reasoning performance achieved after domain-specialized SFT.
Figure 1: With 32 rounds of inference, rStar makes SLMs highly capable problem-solvers, matching or even surpassing the reasoning performance achieved after domain-specialized SFT.

实验结果

研究问题

  • RQ1在无微调或无更优模型可用的情况下,两个 SLM 之间的互评能否显著提升推理准确率?
  • RQ2与自我评估或多数投票相比,互评一致性作为反馈机制在引导 SLM 推理方面有多高效?
  • RQ3所提出的结合增强推理动作的自对弈 MCTS 框架是否优于标准的自一致性与自我改进基线?
  • RQ4判别器模型的选择如何影响性能?较弱的 SLM 是否能有效充当判别器?
  • RQ5rStar 在多大程度上能够缩小 SLM 与微调模型在复杂推理任务上的性能差距?

主要发现

  • rStar 将 LLaMA2-7B 在 GSM8K 上的准确率从 12.51% 提升至 63.91%,Mistral-7B 从 36.46% 提升至 81.88%,LLaMA3-8B-Instruct 从 74.53% 提升至 91.13%,在某些情况下超越微调基线。
  • 在仅使用 32 次 MCTS 滚动的情况下,rStar 在 LLaMA3-8B-Instruct 上实现 85.52% 的 GSM8K 准确率,优于自一致性(84.69%)和 RAP(81.35%)在相同设置下的表现。
  • 判别器始终优于多数投票与自我验证,互评一致性即使在生成器能力较弱时也能有效降低错误率。
  • 使用 Phi3-Mini-Instruct 作为判别器时,rStar 在 GSM8K 上实现 91.13% 的准确率,接近 GPT-4 的 92.57%,表明 SLM 可有效充当判别器。
  • 消融实验表明,自我评估会损害性能,说明互评一致性比自我评估对 SLM 更为可靠。
  • rStar 的性能随滚动次数提升而增强,且避免了 RAP 中常见的性能饱和或下降现象,表明其 MCTS 探索更具效率。
Figure 2: Our self-play mutual reasoning is a generation-discrimination process: (1) a self-generator augments the target SLM to generate candidate reasoning trajectories using MCTS; (2) the discriminator uses another SLM to provide unsupervised feedback on each trajectory based on partial hints; (3
Figure 2: Our self-play mutual reasoning is a generation-discrimination process: (1) a self-generator augments the target SLM to generate candidate reasoning trajectories using MCTS; (2) the discriminator uses another SLM to provide unsupervised feedback on each trajectory based on partial hints; (3

阅读本论文

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

在 Nubint 中阅读本论文

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