arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.04808cs.CLcs.AIcs.LG
收藏

多尝试强化学习中的从失败中学习

Learning from Failures in Multi-Attempt Reinforcement Learning

DualityRL;Shanghai AI Lab(上海人工智能实验室)

Stephen Chung, Wenyu Du, Jie Fu

AI总结:

本文提出多尝试强化学习设置,使模型在错误回复后获得反馈并多次尝试,实验证明该训练方法能显著提升小型LLM在数学基准上的准确率及根据反馈完善回复的能力。

摘要:

以 DeepSeek R1 为代表的大语言模型(LLM)强化学习(RL)的最新进展表明,即使是简单的问答任务也能显著提升 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

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

↑