Learning from Failures in Multi-Attempt Reinforcement Learning
这篇论文提出了一种多尝试设置,通过让大型语言模型(LLM)在多轮对话中学习和改进其回答,显著提高了其在数学基准测试中的准确率。
更新于 2025-03-10。作者:Stephen Chung、Wenyu Du、Jie Fu。
中文摘要
近期,强化学习(RL)在大型语言模型(LLM)中的应用取得了显著进展,DeepSeek R1便是这一领域的典范。研究表明,即使是一个简单的问答任务,也能显著提升LLM的推理能力。在本研究中,我们通过将任务修改为多尝试设置来扩展这一方法。模型不是针对每个问题生成单个响应,而是给出多次尝试,并在回答错误后提供反馈。多尝试任务鼓励模型优化其之前的尝试并提高搜索效率。实验结果表明,即使是经过多尝试任务训练的小型LLM,在评估时尝试次数越多,准确率也显著提高,从数学基准测试中的1次尝试的45.6%提高到2次尝试的52.5%。相比之下,在评估时给予更多尝试的、在标准单轮任务上训练的同一LLM,其表现仅略有提升,从42.3%增加到43.2%。这些结果表明,与标准单轮任务相比,在多尝试任务上训练的LLM在数学基准测试上实现了略好的性能,同时学会了根据用户反馈更有效地优化其回答。完整代码可在https://github.com/DualityRL/multi-attempt上找到。
英文摘要
Recent advancements in reinforcement learning (RL) for large language models (LLMs), exemplified by DeepSeek R1, have shown that even a simple question-answering task can substantially improve an LLM's reasoning capabilities. In this work, we extend this approach by modifying the task into a multi-attempt setting. Instead of generating a single response per question, the model is given multiple attempts, with feedback provided after incorrect responses. The multi-attempt task encourages the model to refine its previous attempts and improve search efficiency. Experimental results show that even a small LLM trained on a multi-attempt task achieves significantly higher accuracy when evaluated with more attempts, improving from 45.6% with 1 attempt to 52.5% with 2 attempts on the math benchmark. In contrast, the same LLM trained on a standard single-turn task exhibits only a marginal improvement, increasing from 42.3% to 43.2% when given more attempts during evaluation. The results indicate that, compared to the standard single-turn task, an LLM trained on a multi-attempt task achieves slightly better performance on math benchmarks while also learning to refine its responses more effectively based on user feedback. Full code is available at https://github.com/DualityRL/multi-attempt
解读
一句话总结
这篇论文提出了一种多尝试设置,通过让大型语言模型(LLM)在多轮对话中学习和改进其回答,显著提高了其在数学基准测试中的准确率。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:现有强化学习(RL)方法通常依赖于单轮任务,这使得LLM在接收到用户反馈时缺乏学习如何响应的能力。
- 现有方案不足:单轮任务可能因为奖励稀疏而导致效率低下,且不要求LLM学习如何根据用户反馈进行响应。
- 研究目标:提出一种多尝试任务,使LLM能够在RL中通过用户反馈进行自我改进。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种多尝试任务,允许LLM在接收到错误反馈后进行多次尝试。
- 方法改进:将标准RL算法应用于多尝试任务,使模型能够在数学问题数据集上训练。
- 优势:与单轮任务相比,多尝试任务显著提高了LLM在数学基准测试中的准确率。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在数学问题数据集上对Qwen 2.5 Math 1.5B模型进行多尝试任务训练和基准测试。
- 性能提升:多尝试任务训练的LLM在增加尝试次数后,准确率从45.6%提升至52.5%。
- 对比结果:与单轮任务训练的LLM相比,多尝试任务训练的LLM在基准测试中表现更优。
问题4:这个研究的实际应用价值是什么?
- 应用场景:适用于需要自适应推理的领域,如复杂代码生成。
- 实施建议:将多尝试任务应用于实际任务,如数学教育或代码辅助。
- 局限与展望:未来研究可以探索更复杂和细致的反馈机制,以及将多尝试任务与其他任务结合以促进LLM能力的发展。
来源
机器可读索引:llms.txt