arXiv:2610.21018cs.AIOct 2026

Manuscript Offprint

arXiv:2610.21018

Failure Is the Mother of Success: Recovering Supervision with Grounding Hindsight

Sheldon Yu, Tong Yu, Nikki Lijing Kuang, Zhendong Chu, Zhenwei Tang, Sungchul Kim, Lina Yao, Julian McAuley, Junda Wu

ABSTRACT

Large language models solve reasoning problems by generating long chains of steps, where a single mistake made in the middle steps can negatively impact the final answer. Reinforcement learning with verifiable rewards trains on the final answer alone: when every attempt at a problem fails there is no successful attempt to imitate and no spread between attempts to score, so GRPO learns nothing from exactly the problems it most needs to learn. The failed reasoning can nevertheless suggest what to try next. Prior work either reveals the reference answer when it retries, trusts self-written guidance without testing it, or re-scores the failed attempt instead of sampling a new one. We propose Replay-Selected Hindsight Distillation (RSHD), which enables reasoning explorations from the failure itself. Rather than resampling blindly or revealing the answer, the policy reasons over its own note on what went wrong, and explores from notes that beat the group become supervision during GRPO training. The policy writes a corrective note about each failed attempt without seeing a reference answer or solution, then re-solves the problem with the note in context. A note written without the answer cannot be checked for truth, only for effect: after screening for notes that state the answer, it is admitted only if its exploration replays succeed more often than the original group did, and an admitted replay is distilled into the plain-prompt policy. Because admission turns on fresh successes rather than on the failed rollout, supervision is recovered from groups in which every attempt failed, and from mixed-group failures alike. Only the policy is trained, the only judge is the outcome verifier, and deployment requires no notes or extra inference. Across model families and sizes and two training domains, RSHD consistently improves over GRPO on in-domain benchmarks, and the gains carry over to out-of-domain evaluation sets.

1 INTRODUCTION

Group-relative policy optimization (GRPO) trains reasoning models by comparing verifier rewards across completions of the same problem (Shao et al., 2024; DeepSeek-AI et al., 2025; Surana et al., 2026b). When every completion fails, all group-relative advantages are zero. These all-fail groups provide no task-reward gradient even though their trajectories may reveal recognizable mistakes and unproductive strategies (Yu et al., 2025b; Wei et al., 2026), which potentially can guide the policy on reasoning explorations. This is common precisely on hard problems: if a problem is solved with probability 0.1, an eight-sample group is all-fail more than 40% of the time, and in our math training run roughly half of the groups at the hardest MATH level carry no gradient in Figure 1. GRPO therefore tends to improve problems the policy already sometimes solves while leaving many failures at the capability frontier unused.

Figure

Figure 1: Groups that GRPO have no learning signal. On the hardest level, half the groups carry no gradient at all.

Turning these failures into supervision is difficult. Conditioning retries on the reference answer introduces information unavailable at test time (Yang et al., 2026), while trusting self-generated feedback without verification can reinforce incorrect diagnoses. In addition, simply re-scoring a failed rollout can increase the probability of the same mistaken tokens. Useful supervision from failure should instead comes from reasoning explorations, which can reveal a better behavior, verify that it helps, and transfer that behavior back to the plain-prompt policy.

We propose Replay-Selected Hindsight Distillation (RSHD), a failure-conditioned exploration and distillation procedure, which enalbes the reasoning explorations in GRPO. After the verifier scores a group, the same policy summarizes what went wrong in each failed attempt without access to the reference answer, and then re-solves the problem with this note in context. A note is retained only when its fresh exploration replays outperform the original group, and successful replays are distilled into the plain-prompt policy. Thus, even an all-fail group can yield verified supervision despite having zero GRPO advantage. Unlike increasing temperature or nucleus width, which only diversifies retries, RSHD conditions exploration on a diagnosis of the specific failed reasoning. The procedure requires no auxiliary model and adds no inference-time guidance.

Prior work also recovers all-fail signals and internalizes guided retries (Xia et al., 2026b; Shi et al., 2026; Chen et al., 2026; Xia et al., 2026a; Sleiman, 2026). In RSHD the note test is not optional. Across our math run one note in nine states the answer outright and three in five fail the replay test (Table 4). The test is affordable because the group GRPO has already sampled supplies the baseline to beat, so the structure that creates the all-fail problem also pays for its remedy. Section 2 details the differences from these methods and from re-scoring the failed attempt (Wu et al., 2026a).

We evaluate RSHD against GRPO across model families and sizes and two training domains, competition mathematics and free-form science questions, on in-domain and out-of-domain benchmarks. RSHD improves over GRPO consistently, with the largest gains on the hardest problems, and the gains carry over out of domain. A sizeable share of the admitted notes come from all-fail groups, where the original reward signal is zero, and the trained models solve problems in fewer tokens and run out of budget less often. The extra cost is training-time generation only, roughly double the tokens sampled per step, and nothing changes at inference. We summarize our contributions as follows:

• Reasoning explorations from failed reasoning. We develop a failure-conditioned exploration and distillation procedure that can discover successful outcomes without a successful exemplar in the initial group. The note writer never sees the reference answer, and a note is used only after its replays beat the group.

• Replay-selected transfer alongside GRPO. RSHD transfers what this exploration finds into the plain-prompt policy alongside GRPO, keeping replay selection and imitation separate from GRPO’s reward normalization. We characterize the selected-target distribution and the auxiliary signal available when all original advantages vanish.

• An empirical study of the resulting training recipe. We report improved reasoning performance and analyze the notes and replays that supply supervision, including those recovered from all-fail groups, without adding deployment-time guidance.

References (67)