Manuscript Offprint

arXiv:2610.10786

Plan-and-Patch: Diffusion Language Models for Agentic Planning

Syamantak Kumar, Jiang Guo, Hassan Hamad, Hideo Kobayashi, Yi Xiang, Yezhou Yang, Yanjun Qi, Daniele Bonadiman, Jiarong Jiang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Planning is increasingly important for long-horizon agents, where successful execution requires coordinating subgoals, tool use, and intermediate outcomes over many steps. Yet assumptions made during planning may be invalidated by the environment, tools may return unexpected results, or actions may fail. Effective agents must therefore not only generate plans, but also revise them. Such revisions often affect only part of a plan, leaving the preceding and subsequent structure intact. Rather than regenerating the entire plan and risking unnecessary changes, repair can regenerate the affected region conditioned on the preserved prefix and suffix. We introduce PLAN-AND-PATCH, a plan-and-act framework in which a diffusion language model (dLLM) generates a structured, program-like plan through parallel unmasking and repairs it by filling in selected regions while keeping the surrounding steps fixed. We compare DreamReasoner-8B and Qwen3-8B as diffusion and autoregressive (AR) planners. On Natural Plan without task-specific training, diffusion (53.7%) achieves nearly twice the plan repair success rate of AR (27.0%). After task-specific training on agentic benchmarks ALFWorld and TextCraft, the planners achieve similar observed success in plan generation, while diffusion reduces mean plan-generation latency by 39–46% relative to AR. Our results show that PLAN-AND-PATCH provides a framework for faster plan generation and effective plan repair in long-horizon agents.

*University of Texas at Austin. Correspondence: syamantak@utexas.edu.

†^{\dagger}Amazon. Correspondence: gujiang@amazon.com.

Contents

1 Introduction 1
2 Related Work 2
3 Preliminaries 4
4 The PLAN-AND-PATCH Framework 5
4.1 Plan generation and repair 5
4.2 Reference plans and repair examples 6
4.3 Joint training and decoding 7
5 Experiments 8
5.1 Experimental settings 8
5.2 Plan quality and latency 9
5.3 What limits execution and repair? 10
6 Conclusion and Future Work 11
A Supplementary Material 18
A.1 Protocols and data 18
A.1.1 Task splits and training examples 18
A.1.2 Interactive evaluation populations 19
A.2 Complete primary results 20
A.2.1 Shared and model-exclusive failures 21
A.2.2 Worked repair and preservation 23
A.3 Sensitivity analyses 24
A.3.1 Representation and executor 24
A.3.2 Repair from execution history 25
A.3.3 Natural Plan generation and repair 25
A.3.4 Long-horizon generation in ScienceWorld 27
A.4 Implementation details and prompts 28
A.4.1 Training and decoding 28
A.4.2 Executor behavior 29
A.4.3 Plan representation and prompts 29

References (65)