Learning from Failures in Multi-Attempt Reinforcement Learning

Stephen Chung, Wenyu Du, Jie Fu
3/4/2025
cs.CLcs.AIcs.LG

Official code: DualityRL/multi-attempt (19 stars, last commit 2025-03-10).

Abstract

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

View on arXivView PDF

Code Implementations(1)

192Shell, PythonFeb 26, 20251 years agoNOASSERTION

Similar Papers

Cite this paper

@article{chung2025learning,
  title  = {Learning from Failures in Multi-Attempt Reinforcement Learning},
  author = {Stephen Chung and Wenyu Du and Jie Fu},
  year   = {2025},
  eprint = {2503.04808},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.04808v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.04808.svg)](https://codeofpaper.com/paper/2503.04808)

Discussion