REPOT: Recoverable Program-of-Thought via Checkpoint Repair
Abstract
RePoT improves upon one-shot Program-of-Thought by enabling deterministic verified replay and recovery through environment interaction, achieving higher success rates across multiple models and benchmarks.
One-shot Program-of-Thought (PoT) emits a Python program that prints a primitive-action plan; a single invalid action silently invalidates the trajectory. We introduce RePoT (Recoverable PoT): a deterministic verified replay that walks the plan through the environment to its first invalid transition, then one LLM call that resumes from the verified prefix. RePoT costs at most one extra LLM call on the ~14% of problems where PoT fails. RePoT beats PoT by +3 to +11pp across four closed-model configurations on PuzzleZoo-775 and peaks at 96.9% vs 86.3% on gpt-5.4-mini-medium; against the matched-budget PoT-retry baseline, RePoT wins decisively on Gemini (+3.8pp, 95% CI [+2.2,+5.4]), is within sampling noise on GPT-medium and Claude, and loses on GPT-mini -- a capability-scaling pattern we begin to address with Adaptive RePoT, a rule-based dispatcher that routes between suffix repair and a fresh PoT retry based on verified-prefix length (preliminary). We replicate on PlanBench Blocksworld (+1.1 to +11.4pp) and on four open-weights models (+3.3 to +20.0pp on three of four). On Derail-550, our controlled recovery benchmark, every condition with access to checkpoint information clears >=30% on GPT-medium and >=70% on Gemini, vs <=3.1% for error-only feedback -- showing that checkpoint information, not the specific verified-prefix tail, is the load-bearing recovery signal.
Community
TL;DR ā Large reasoning models that write a Python program to solve a multi-step puzzle silently invalidate the entire plan when one primitive step is wrong ā even if 29 of 30 steps were right. RePoT treats the program as a checkpoint, not a final answer: it runs the emitted plan through a deterministic verifier, stops at the first invalid transition, and asks the model for one repair call from the verified prefix. No fine-tuning, no rollout-time search.
Results on PuzzleZoo-775
- Average about +3 to +11 pp over vanilla Program-of-Thought across four closed-model configurations (gpt-5.4-mini ± reasoning, gemini-3.5-flash, claude-sonnet-4.6), peaking at 96.9% vs 86.3% on
gpt-5.4-mini-medium. - Replicates on PlanBench Blocksworld and on four open-weights models (Qwen3.6-35B-A3B, Gemma-4-26B-A4B-it, gpt-oss-20b, Nemotron-3-Nano-30B-A3B).
- Costs at most one extra LLM call on the ~14% of problems where PoT fails.
We also release Derail-550 ā the first benchmark to fix the failure point across recovery methods, so cross-method comparisons become causal rather than correlational. Finding: it's the trusted checkpoint state that does the recovery work, not any specific prefix tail.
š¤ Dataset: https://huggingface.co/datasets/parsa-mz/puzzlezoo
š» Code: https://github.com/parsa-mz/RePot
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Push Your Agent: Measuring and Enforcing Quantitative Goal Persistence in Long-Horizon LLM Agents (2026)
- RubricRefine: Improving Tool-Use Agent Reliability with Training-Free Pre-Execution Refinement (2026)
- SPEAR: Code-Augmented Agentic Prompt Optimization (2026)
- ReFlect: An Effective Harness System for Complex Long-Horizon LLM Reasoning (2026)
- The Detection-Extraction Gap: Models Know the Answer Before They Can Say It (2026)
- Peak-Then-Collapse and the Four Interface Channels of Knowledge-Graph Tool Use (2026)
- Verifier-Guided Code Translation via Meta-Step Decoding (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2605.30052 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 1
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper