TL;DR
This paper tackles the challenge of improving complex reasoning in Large Language Models (LLMs) by allowing them multiple attempts to solve a problem, guided by hard feedback. They introduce CAL-GRPO, a novel reinforcement learning approach that intelligently weights the learning signal from each attempt, leading to more accurate and efficient reasoning compared to existing methods.
What Problem Does This Paper Address?
Modern LLMs are increasingly capable of tackling complex problems using "chain-of-thought" (CoT) prompting, where they generate a sequence of intermediate reasoning steps. However, for very difficult problems, a single CoT trace might not be enough. This paper explores a "multi-attempt" setting where an LLM can make up to K attempts to solve a problem, receiving binary (pass/fail) feedback after each attempt. This feedback allows the model to learn from its mistakes and correct its approach. The core challenge lies in effectively using this per-attempt feedback to train the LLM. Standard reinforcement learning (RL) methods often struggle with sparse rewards or can assign credit incorrectly, leading to biased learning signals. Specifically, simply rewarding each attempt based on its pass/fail status can lead to biased gradients, making it hard for the model to learn optimal correction strategies.
Methods
The authors propose Calibrated Attempt-Level GRPO (CAL-GRPO), an RL algorithm designed for this multi-attempt setting. It builds upon existing Group-wise Policy Optimization (GRPO) methods but introduces a novel way to assign learning signals to individual attempts.
Here's a breakdown of their approach:
- Attempt-Level Credit Assignment: Instead of treating the entire multi-attempt sequence as a single trajectory (Trajectory-Level, TL), CAL-GRPO assigns credit to each individual attempt. This allows for finer-grained learning signals.
- Naive Attempt-Level (NAL) GRPO: As a baseline, they consider a naive approach where attempts are weighted by their pass/fail outcome. However, they theoretically show this leads to biased gradients, over-emphasizing early attempts.
- Calibrated Attempt-Level (CAL) GRPO: This is their main contribution. CAL-GRPO introduces a "future-only" weighting strategy. It estimates the probability that all subsequent attempts will fail and uses this to reweight the current attempt's learning signal. This ensures that learning updates are focused on attempts that have the most marginal contribution to the final Verification@K success, preventing over-optimization of early attempts when later attempts are more critical for correction.
- Theoretical Guarantees: They provide theoretical analysis showing that CAL-GRPO yields unbiased gradients and, under certain assumptions, lower variance compared to TL-GRPO.
Datasets
The authors evaluate their methods on a variety of tasks:
- Synthetic Markov Chain Task: A custom benchmark designed to isolate multi-attempt credit assignment under a deterministic verifier. They also introduce a "trap variant" to test robustness.
- MATH Dataset: A standard benchmark for mathematical reasoning problems.
- Maze Navigation Task: A text-based maze navigation task, used to evaluate planning and sequential decision-making capabilities.
Key Insights and Ideas
- The "Early Attempt Bias": Naively weighting attempts by their pass/fail status (NAL-GRPO) leads to a bias where the model prioritizes improving early attempts, even if later attempts are more crucial for overall success. This is because later attempts are only reached on a shrinking subset of failure cases.
- Calibration is Key: The "future-only" weighting in CAL-GRPO is crucial. By estimating the probability of future failures, CAL-GRPO intelligently shifts learning focus to later attempts when they are most impactful, leading to better overall performance.
- Accuracy vs. Efficiency Trade-off: While NAL-GRPO might minimize the number of attempts (acting like a discounted objective), CAL-GRPO achieves higher Ver@K accuracy by allowing for more strategic retries, demonstrating a tunable trade-off between accuracy and compute.
- Attempt-Dependent Normalization Matters: The variance of rewards differs across attempts, making a single trajectory-level normalization insufficient. CAL-GRPO's attempt-wise approach, combined with GRPO's standard deviation normalization, improves sample efficiency.
Key Results
- Improved Ver@K Accuracy: CAL-GRPO consistently outperforms TL-GRPO and NAL-GRPO on MATH and Maze tasks, achieving higher Verification@K accuracy. For example, on MATH Ver@2, CAL-GRPO achieves the best Ver@2 accuracy over training.
- Stronger Correction: CAL-GRPO significantly improves second-attempt correction capabilities, as shown in Figures 2b and 4b.
- Reduced Variance: Theoretical analysis and empirical results (Figure 13) demonstrate that CAL-GRPO achieves lower variance in gradient estimation compared to TL-GRPO.
- Competitive Performance on Markov Chain: While NAL-GRPO underperforms on the Markov Chain task, CAL-GRPO shows robust performance, breaking through plateaus and achieving higher accuracies.
Limitations and Future Work
- Noisy Verifiers: The current theoretical guarantees and empirical evaluations primarily focus on hard, deterministic verifiers. The authors acknowledge that extending the framework to noisy or learned verifiers is a natural next step.
- Fixed Number of Attempts (K): The current setup uses a fixed K. Future work could explore adaptive compute allocation, where the number of attempts K itself is dynamically adjusted.
- Scalability: While the paper demonstrates effectiveness, scaling to even larger K values and more complex reasoning tasks would be valuable.
- Understanding the "Why": Further research could delve deeper into why CAL-GRPO's calibration works so well, perhaps by analyzing the learned internal representations or attention patterns.
Summary updated