TL;DR
ReGRPO introduces a framework to train tool-using vision-language models (VLMs) to self-correct when tool executions fail. By combining a structured reflection data engine with group relative policy optimization (GRPO), it teaches agents to diagnose errors and execute fixes efficiently without needing expensive external verifiers at test time.
What Problem Does This Paper Address?
Tool-augmented VLMs can solve complex, multi-step tasks by calling external APIs (like web search, OCR, or code execution), but they are notoriously fragile in practice. If a single intermediate step goes wrong—such as a slightly misaligned bounding box resulting in an empty OCR readout—the model typically cascades into a total failure.
Current training paradigms struggle to fix this:
- Supervised Fine-Tuning (SFT) datasets are predominantly built on successful trajectories, meaning the model never learns how to recover from an error state.
- Standard Reinforcement Learning (RL) relies on sparse, trajectory-level rewards (e.g., a binary success/failure at the very end), which fails to provide a clear signal on which specific step failed or how to repair it.
Methods
ReGRPO addresses these gaps through a three-part training and deployment pipeline:
- Structured Reflective Data Engine: To teach the model how to handle failures, the authors intentionally induce "near-miss" errors by perturbing successful tool actions (e.g., shifting a crop region or picking an incorrect tool argument). A teacher model (GPT-4o) then generates a structured Reflection-of-Thought (RoT) triplet consisting of an
ErrorType,Evidence(grounded in the tool output), and aFixPlan. This data is used for a warm-start SFT phase.
- Reflection-Augmented GRPO: Rather than treating reflection as a test-time prompt heuristic, ReGRPO integrates reflection tokens directly into the RL trajectory as a learnable variable. Using Group Relative Policy Optimization, the policy jointly optimizes both the diagnostic reflection and the subsequent corrective action. It also introduces a reflection-cost penalty to prevent the model from becoming overly verbose or entering infinite loops.
- Zero-Verifier Inference Stage: At test time, the model operates on a lightweight, single-path execution route. A deterministic gate triggers the reflection-correction block only if a hard tool error occurs, an empty observation is returned, or the token-level policy confidence drops below an adaptive online threshold. This eliminates the need for slow, expensive external LLM verifiers during deployment.
Datasets
The framework was trained and evaluated on two prominent multimodal tool-use benchmarks:
- GTA (General Tool Agents): 229 tasks paired with 252 images, requiring 2–8 tool steps evaluating visual perception and short reasoning chains.
- GAIA (General AI Assistants): A document-centric benchmark containing 446 tasks across 109 complex files (PDF, PPTX, XLSX) spanning three difficulty levels.
For the warm-start SFT phase, the authors synthesized an offline RoT corpus containing 16,552 records categorized into four distinct error types: ArgInvalid (45.4%), ToolMismatch (24.7%), InfoInsufficient (19.7%), and GroundingDrift (10.1%).
Key Insights and Ideas
- Internalizing Reflection into Weights: Instead of relying on inference-time trial-and-error prompting, ReGRPO forces the model to internalize error diagnostics directly into its parameters during RL training.
- The Power of Schema Constraints: Restricting the model's reflection to a strict
(ErrorType, Evidence, FixPlan)schema prevents it from hallucinating vague excuses and forces it to ground its reasoning in actual visual or textual tool outputs. - Balancing Accuracy and Token Cost: By penalizing the token length of reflections during RL, the agent learns a critical trade-off: only reflect when a failure is highly probable, maintaining high execution efficiency.
Key Results
Using a Qwen2-VL-7B backbone, ReGRPO achieved the strongest results among compared open-source controllers on both benchmarks:
- On GTA: ReGRPO achieved 67.66% answer accuracy (AnsAcc) and 76.35% tool accuracy, outperforming the strong self-exploration baseline SPORT by +7.40% in answer accuracy.
- On GAIA: It reached an overall 23.35% answer accuracy, outperforming SPORT by +2.74%, showing notable strength in document-centric multi-step reasoning.
- Capability Preservation: Evaluating the trained model on MMBench showed that the reflection-augmented RL process preserves the base model's general visual question-answering (VQA) competence (changing by a negligible 0.75 points).
Limitations and Future Work
The authors note that the inference stage is currently limited to at most one reflection-correction block per step, meaning the agent cannot iteratively debug a single step if the first correction also fails. Additionally, the data engine still relies on an offline proprietary teacher (GPT-4o) to bootstrap the initial failure-recovery triplets, and the taxonomy of errors is confined to four predefined categories. Expanding to open-ended, multi-turn error debugging remains an open direction.
Summary updated