Learning from Failures in Multi-Attempt Reinforcement Learning

Stephen Chung, Wenyu Du, Jie FuarXiv 2025

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.

Introduction

Most current reasoning-focused LLMs are trained using reinforcement learning on single-turn tasks. In this paradigm, a model receives a query, generates a single response, and is rewarded based on the correctness of that specific output. While effective for basic tasks, this approach suffers from sparse rewards—where difficult problems provide negative signals without guidance on correction—and a lack of interactivity. Single-turn training fails to explicitly teach a model how to respond to user feedback or self-correct during a multi-turn dialogue.

While "Aha Moments"—where a model realizes a mistake mid-generation—have been observed as emergent properties in single-turn RL, this research aims to make self-correction a core, explicitly trained capability. By rewarding models for correcting their answers after receiving feedback, we can significantly boost the reasoning and self-refinement capabilities of even small-scale models.

Methodology

We propose a multi-attempt question-answer framework. Unlike the traditional one-and-done interaction, the training environment operates in a loop. A model is presented with a question and a randomly sampled number of allowed attempts ($N$). If the initial answer is incorrect and attempts remain, the system provides a simple feedback prompt: "Your previous answer is wrong. Try alternatives and refine your answer."

Comparison between standard single-turn RL and the proposed multi-attempt RL framework.

To encourage exploration without penalizing the model for requiring a second attempt, we utilize a specific reward function:

  • Success Reward: A reward of +1 is granted if the model provides the correct answer in any of its allowed attempts.
  • Format Penalty: To ensure structural integrity, the model receives -0.5 for a wrong answer in the correct format and -1 for failing to follow formatting rules entirely.

The training utilized standard Proximal Policy Optimization (PPO) to fine-tune a Qwen 2.5 Math 1.5B model. This small model size was selected to demonstrate that multi-attempt training can enable smaller models to achieve performance levels typically reserved for much larger architectures.

Experimental Results

The "Second Chance" Dividend

The most striking result is the disparity in how models handle a second attempt. A model trained on a standard single-turn task barely improves when given a second try, moving from 42.3% to 43.2% accuracy. In contrast, the multi-attempt model thrives, jumping from 45.6% to 52.5% with just one extra attempt.

Evaluation accuracy across multiple attempts for the multi-attempt model versus the baseline.

Scaling with Attempts

As shown in the evaluation accuracy plot, the multi-attempt model demonstrates a clear scaling law relative to the number of attempts. On combined math benchmarks (including AIME 2024, MATH 500, and AMC 2023), the model's accuracy peaks at approximately 54% with 4 attempts. Notably, the multi-attempt model outperformed the baseline even on the first attempt (45.4% vs 43.5% average accuracy), suggesting that multi-turn training provides a richer learning signal that improves base reasoning by forcing the model to explore a wider variety of solution paths during the RL process.

Discussion and Future Work

While the results are promising, several areas remain for further exploration. Currently, the feedback signal is a simple binary "you are wrong" message. Providing more nuanced, detailed feedback—such as identifying specific calculation errors—could foster even more sophisticated reasoning. Additionally, while this study focused on mathematics, future research should investigate how well this "learning from failure" approach translates to subjective domains like creative writing or complex coding tasks where correctness is harder to verify automatically.

Finally, while the 1.5B model is efficient, multi-turn training naturally increases the number of tokens generated during RL, which may increase compute requirements when scaling to larger model architectures. Nevertheless, the ability to explicitly train for self-correction represents a significant step forward in creating more robust and interactive reasoning agents.

Summary updated

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