Paper deep dive
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
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 92%
Last extracted: 10/9/2026, 7:54:34 AM
Summary
The paper introduces Plan-and-Patch, a framework using diffusion language models (dLLMs) for agentic planning and repair. Unlike autoregressive models that regenerate entire plans, dLLMs can repair specific regions of a plan while preserving the rest. Experiments on ALFWorld and TextCraft show diffusion models achieve comparable success rates to autoregressive models but with significantly lower latency (39-46% reduction). On Natural Plan without task-specific training, diffusion models nearly double the plan repair success rate compared to autoregressive models.
Entities (8)
Relation Signals (7)
Plan-and-Patch â evaluatedon â TextCraft
confidence 95% ¡ We evaluate diffusion and AR planners on ALFWorld for household task execution (Shridhar et al., 2021) and TextCraft for dependency-based crafting (Prasad et al., 2024)...
Plan-and-Patch â evaluatedon â ALFWorld
confidence 95% ¡ We evaluate diffusion and AR planners on ALFWorld for household task execution (Shridhar et al., 2021) and TextCraft for dependency-based crafting (Prasad et al., 2024)...
Plan-and-Patch â uses â Diffusion Language Model
confidence 95% ¡ 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.
DreamReasoner-8B â istype â Diffusion Language Model
confidence 90% ¡ We compare DreamReasoner-8B and Qwen3-8B as diffusion and autoregressive (AR) planners.
Qwen3-8b â istype â Autoregressive Model
confidence 90% ¡ We compare DreamReasoner-8B and Qwen3-8B as diffusion and autoregressive (AR) planners.
Diffusion Language Model â reduces â Latency
confidence 90% ¡ diffusion reduces mean plan-generation latency by 39â46% relative to AR.
Diffusion Language Model â outperforms â Autoregressive Model
confidence 85% ¡ On Natural Plan without task-specific training, diffusion (53.7%) achieves nearly twice the plan repair success rate of AR (27.0%).
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
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 regenerate the entire plan and risk 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.
Tags
Links
- Source: https://arxiv.org/abs/2610.10786v1
- Canonical: https://arxiv.org/abs/2610.10786v1
Trouble viewing inline? Open PDF directly â
Full Text
86,551 characters extracted from source content.
Expand or collapse full text
Plan-and-Patch: Diffusion Language Models for Agentic Planning Syamantak Kumar Jiang Guo Hassan Hamad22footnotemark: 2 Hideo Kobayashi22footnotemark: 2 Yi Xiang22footnotemark: 2 Yezhou Yang22footnotemark: 2 Yanjun Qi22footnotemark: 2 Daniele Bonadiman22footnotemark: 2 Jiarong Jiang22footnotemark: 2 â thanks: University of Texas at Austin. Correspondence: syamantak@utexas.edu.â thanks: Amazon. Correspondence: gujiang@amazon.com. 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%53.7\%) achieves nearly twice the plan repair success rate of AR (27.0%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 3939â46%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. Contents 1 Introduction 2 Related Work 3 Preliminaries 4 The Plan-and-Patch Framework 4.1 Plan generation and repair 4.2 Reference plans and repair examples 4.3 Joint training and decoding 5 Experiments 5.1 Experimental settings 5.2 Plan quality and latency 5.3 What limits execution and repair? 6 Conclusion and Future Work References A Supplementary Material A.1 Protocols and data A.1.1 Task splits and training examples A.1.2 Interactive evaluation populations A.2 Complete primary results A.2.1 Shared and model-exclusive failures A.2.2 Worked repair and preservation A.3 Sensitivity analyses A.3.1 Representation and executor A.3.2 Repair from execution history A.3.3 Natural Plan generation and repair A.3.4 Long-horizon generation in ScienceWorld A.4 Implementation details and prompts A.4.1 Training and decoding A.4.2 Executor behavior A.4.3 Plan representation and prompts 1 Introduction Planning helps long-horizon agents coordinate subgoals, tool use, and intermediate outcomes. Plan-and-act methods first construct a multi-step plan, then turn its steps into environment actions (Wang et al., 2023a; Sun et al., 2023; Erdogan et al., 2025). This separation can improve task success over workflows without an explicit planning stage (Prasad et al., 2024; Sun et al., 2023; Wu et al., 2026a; Peng et al., 2026; Zhang et al., 2025). Program-like representations make the planâs structure explicit through subgoals and executable steps (Singh et al., 2023a; Liang et al., 2023; Wang et al., 2024; Wang et al., 2023b; Zhang et al., 2025). Yet assumptions made during planning may be invalidated by the environment, tools may return unexpected results, or actions may fail. Such failures can arise because the planner has incomplete knowledge of the environment, misjudges action preconditions, or relies on conditions that change during execution (Wang et al., 2023b; Sun et al., 2023; Erdogan et al., 2025). Effective agents must therefore both generate plans and revise them in response to environment feedback. Planning requires reasoning about dependencies among actions and their long-term consequences for achieving the goal (Bachmann and Nagarajan, 2024). LLM planners address this challenge by anticipating future states (Hao et al., 2023) and decomposing complex tasks into simpler subgoals (Prasad et al., 2024; Singh et al., 2023a). Plan format also affects the performance of an agent significantly. Zambrano et al. (2026) compare sequential subgoals, narrative, pseudocode, and checklists, finding that web-agent performance depends on both representation and plannerâexecutor pairing. We propose a structured plan representation with explicit subgoals and executable steps to provide meaningful units for revision. A replacement must remain compatible with the preceding and subsequent plan context. Such revisions often affect only part of a plan. However, existing plan-and-act agents commonly revise globally (Prasad et al., 2024; Erdogan et al., 2025; Shinn et al., 2023). In this work, we model plan repair as an infilling problem, identifying the affected region and regenerating it conditioned on the preserved prefix and suffix. Task inputsGoalInitial observationAvailable actionsPlan generationdLLM pθp_θUnmask in parallelStructured plan Ď andexecutable stepsExecutorOne environmentaction per turnExecution historyEnvironment feedbackFailure detectorSame executor modelSelect repair regionRepair inputsRegion RRRepair feedback fRf_RPlan repair: same dLLM pθp_θprefixsuffixprefixsuffixmasked RRinfillreplacementRepaired plan Ďâ˛Ď Re-execute from the initial state Figure 1: The Plan-and-Patch framework. The same planner generates plans and infills selected regions. After an execution failure, the executor acts as the failure detector, selecting a region using execution history and environment feedback. The planner infills it conditioned on repair feedback, with the prefix and suffix fixed. Figure A.2 gives a worked example. While autoregressive (AR) models can be adapted to infilling through explicit fill-in-the-middle training objectives (Bavarian et al., 2022; Fried et al., 2023), masked diffusion language models (dLLMs) naturally learn to reconstruct masked regions conditioned on their surrounding context (Austin et al., 2021; Lou et al., 2024; Sahoo et al., 2024). Recent work demonstrates competitive code generation (Singh et al., 2023b; Gong et al., 2025) and code infilling (Wu et al., 2026b; Inception Labs et al., 2025) with diffusion language models, including higher generation throughput at comparable coding performance (Inception Labs et al., 2025). These results motivate exploring diffusion models for structured plan generation and repair. We therefore ask, Can we design an agentic planning framework that exploits diffusion language modelsâ native capabilities for parallel generation and infilling? To address this question, we introduce Plan-and-Patch (Figure 1), a plan-and-act framework that uses a single dLLM trained for both plan generation and repair. The planner generates a complete structured plan through parallel unmasking, and a separate executor translates its steps into environment actions. If execution fails, the executor also serves as the failure detector, using the current plan, execution history, and environment feedback to select a repair region and explain the required revision. The planner uses this repair feedback to infill the region while preserving the surrounding plan text. We evaluate diffusion and AR planners on ALFWorld for household task execution (Shridhar et al., 2021) and TextCraft for dependency-based crafting (Prasad et al., 2024), using task-specific training, a shared structured plan representation, and a common executor. The planners achieve similar observed performance in plan generation and repair, with a slight edge to AR, while diffusion reduces mean plan-generation latency by 3939â46%46\%. On Natural Plan for travel and scheduling (Zheng et al., 2024) without task-specific training, diffusion (53.7%53.7\%) nearly doubles the plan repair success rate of AR (27.0%27.0\%). Our main contributions are as follows. 1. We introduce Plan-and-Patch, a plan-and-act framework that jointly trains a single diffusion language model for complete-plan generation and plan repair, modeling repair as infilling conditioned on surrounding plan context and repair feedback. 2. We develop a data construction pipeline that combines synthetic repair examples, generated through structured perturbations of verified plans, with naturally occurring execution failures. Together with successful trajectories, these examples support joint training for generation and repair. 3. We present a training recipe and curriculum for joint plan generation and repair with diffusion language models, using objective-specific block-size sampling and decoding. We describe the training choices that support joint generation and repair, and analyze how plan representation, executor choice, and repair-region selection affect performance. 2 Related Work Diffusion language models and agents. Masked diffusion language models recover masked tokens from surrounding context, enabling flexible generation order and bidirectional infilling (Austin et al., 2021; Lou et al., 2024; Sahoo et al., 2024). Building on this flexibility, advances in scaling, post-training, and decoding have improved generation quality, reasoning, and inference efficiency (Nie et al., 2025; Ye et al., 2025b; Zhu et al., 2025; Zhao et al., 2025; Wang et al., 2025; Wu et al., 2025; Ma et al., 2026). Their practical efficiency depends on context length, batching, and the number of sampling steps (Kim et al., 2025). These models have also been applied to agents, both as world models that predict environment responses (Deshpande, 2026) and as ReAct-style agents that interleave action generation with environment observations (Yao et al., 2023; Zhen et al., 2026; Zhao et al., 2026; Bie et al., 2026). In these settings, Lu et al. (2026) identify two systematic failure modes, âretry loopsâ in embodied agents and âimprecise tool-call formatsâ in tool-calling agents. Agent-specific training improves reliability and efficiency (Zhao et al., 2026; Bie et al., 2026). Under matched fine-tuning, Zhen et al. (2026) also compare diffusion and AR models as agents. We study these models in a plan-and-act setting, focusing on complete-plan generation and plan repair through infilling guided by repair feedback. Plan repair and program repair. Plan-and-act agents construct multi-step plans and translate their steps into environment actions (Wang et al., 2023a; Sun et al., 2023; Erdogan et al., 2025). When execution fails, these plans can be revised using environment feedback (Prasad et al., 2024; Song et al., 2023; Shinn et al., 2023; Madaan et al., 2023; Huang et al., 2023; Wang et al., 2023b; Liu et al., 2023; Wang et al., 2024). An important choice is which part of the plan to revise. PIVOT and ContextFlow preserve a validated prefix and rewrite a suffix (Zhang et al., 2026a; Guo et al., 2026). Atomic Task Graph preserves validated graph regions and repairs the affected subgraph (Zhang et al., 2026b), while L-ICL localizes the first constraint violation and supplies a corrective example (Kumar and Cohen, 2026). To assess repair, controlled replay helps distinguish the effect of changing a plan from variation across executions (Luan et al., 2026). Our evaluation holds failed plans and repair regions fixed across diffusion and AR models, and separately assesses region selection using execution history. A similar use of feedback appears in program repair, where test failures guide fault localization and patch validation (Le Goues et al., 2019; Le Goues et al., 2012; Xia and Zhang, 2022). This setting is also captured by LiveCodeBench, which evaluates code self-repair given an incorrect program, a failing test case, and execution feedback (Jain et al., 2025). To replace part of a program while retaining the surrounding code, AR models can use fill-in-the-middle serialization or training to condition on both the prefix and suffix (Bavarian et al., 2022; Fried et al., 2023; Ahmad et al., 2025). Masked diffusion naturally supports this infilling operation and has been applied to code generation, editing, and repair (Singh et al., 2023b; Gong et al., 2025; Xue et al., 2026; Singh et al., 2025). To accommodate replacements of different lengths, diffusion methods use deletion or expansion tokens, or predict the required span length before denoising (Wu et al., 2026b; Xu et al., 2026). Plan-and-Patch applies this formulation to plan repair, where repair feedback guides infilling of selected plan regions while the surrounding text remains fixed. Diffusion models for planning. In continuous control, diffusion models generate trajectories and may replan as the environment evolves (Janner et al., 2022; Ajay et al., 2023; Zhou et al., 2023). In discrete domains, evaluations on Countdown, Sudoku, and trip planning demonstrate their ability to generate solutions with dependencies across steps (Ye et al., 2025a; Ye et al., 2025b). Studies of graph planning further show how later path tokens can guide earlier decisions (Trainin et al., 2026). A complementary approach separates planning from execution, with Latent-DARM connecting a diffusion planner to an AR executor through a latent communication interface for reasoning tasks (Berrayana et al., 2026). Our work combines plan generation and repair in interactive environments, using execution history for region selection and repair feedback for infilling. 3 Preliminaries We introduce the structured plan representation, then review masked diffusion training and the decoding procedures used by Plan-and-Patch. Definition 1 (Structured plan). A structured plan consists of a goal and an ordered hierarchy of subgoals and executable steps. Each subgoal contains an ordered list of steps or nested subgoals. Each leaf step specifies an action, its arguments, and an expected observation. The plan is serialized as a token sequence ĎâLĎ ^L, where V is the vocabulary and LâĽ1L⼠1 is its token length. Every subgoal and step has an identifier that locates its contiguous token span in Ď; we call these spans addressable. Reasoning and intent fields also have explicit delimiters. (a) Complete executable plan [PLAN_BEGIN] [GOAL] craft pink concrete powder [/GOAL] [THINK] ⌠[/THINK] [SG_BEGIN op=SEQ] sg1 [SG_INTENT] prepare all materials needed for pink concrete powder [/SG_INTENT] [SG_BEGIN op=SEQ] sg1.1 [SG_INTENT] prepare pink dye by fetching pink tulip and crafting it [/SG_INTENT] [STEP_BEGIN] sg1.1.step1 [ACTION] fetch [/ACTION] [ARGS] 1 pink tulip [/ARGS] [EXPECTED_OBS] Got 1 pink tulip [/EXPECTED_OBS] [STEP_END] [STEP_BEGIN] sg1.1.step2 [ACTION] craft [/ACTION] [ARGS] 2 pink dye using 1 pink tulip [/ARGS] [EXPECTED_OBS] Crafted 2 minecraft:pink_dye [/EXPECTED_OBS] [STEP_END] [SG_END] [SG_BEGIN op=SEQ] sg1.2 [SG_INTENT] fetch sand and gravel [/SG_INTENT] [STEP_BEGIN] sg1.2.step1 [ACTION] fetch [/ACTION] [ARGS] 4 sand [/ARGS] [EXPECTED_OBS] Got 4 sand [/EXPECTED_OBS] [STEP_END] [STEP_BEGIN] sg1.2.step2 [ACTION] fetch [/ACTION] [ARGS] 4 gravel [/ARGS] [EXPECTED_OBS] Got 4 gravel [/EXPECTED_OBS] [STEP_END] [SG_END] [SG_END] [SG_BEGIN op=SEQ] sg2 [SG_INTENT] craft pink concrete powder from pink dye, sand, and gravel [/SG_INTENT] [STEP_BEGIN] sg2.step1 [ACTION] craft [/ACTION] [ARGS] 8 pink concrete powder using 1 pink dye, 4 sand, 4 gravel [/ARGS] [EXPECTED_OBS] Crafted 8 minecraft:pink_concrete_powder [/EXPECTED_OBS] [STEP_END] [SG_END] [PLAN_END] (b) The same plan, parsed Goal craft pink concrete powder sg1 Prepare all materials sg2 Craft final item sg1.1 Prepare pink dye sg1.2 Fetch sand and gravel step1 craft 8 pink concrete powder step1 fetch 1 pink tulip step2 craft 2 pink dye step1 fetch 4 sand step2 fetch 4 gravel Arrows show containment; subgoals are shaded. Figure 2: A TextCraft plan and its ordered hierarchy. All five executable steps are shown; reasoning is elided. Arrows show containment; execution visits leaves in depth-first, left-to-right order. Masked diffusion language models. Representing structured plans as token sequences lets us formulate plan generation and infilling as conditional text generation. Let Q denote the input context, A=(A1,âŚ,AT)A=(A_1,âŚ,A_T) a target sequence of T tokens, and pθp_θ a token model with parameters θ. An AR model generates tokens from left to right, with conditional log-likelihood logâĄPθâ(AâŁQ)=âi=1TlogâĄpθâ(AiâŁA<i,Q). P_θ(A Q)= _i=1^T p_θ(A_i A_<i,Q). A masked diffusion model instead learns to reconstruct masked tokens from their surrounding context. During training, it draws a mask rate tâźUnifâĄ(0,1)t (0,1) and independently replaces each target token with [MASK] with probability t. Let A~t A_t be the corrupted sequence and MtM_t the set of masked positions. The model minimizes the masked-token objective (Sahoo et al., 2024; Lou et al., 2024) âMDM(θ)=A,Q,t,A~t[â1tâiâMtlogpθ(AiâŁA~t,Q)].L_MDM(θ)=E_A,Q,t, A_t\! [- 1t _iâ M_t p_θ(A_i A_t,Q) ]. The expectation is over training contextâtarget pairs, the mask rate, and the resulting corruption. Decoding schedules. We use DreamReasonerâs confidence-based unmasking procedure (Wu et al., 2026c), which commits sufficiently confident token predictions in parallel while keeping resolved tokens fixed. Generation decodes blocks of b positions from left to right using a fixed confidence threshold. Repair jointly infills the selected spans using DreamReasonerâs RelaxedConfidence procedure, which lowers the threshold when nearby positions are reliable. Decoding settings and forward-pass statistics appear in Section A.4.1. Each selected span is replaced by a padded sequence of masked tokens, called its canvas segment. Following deletion-token approaches (Wu et al., 2026b), we end each replacement before the first [delete] token in its segment, allowing replacements of different lengths. Section 4.1 specifies the canvas allocation. The AR baseline jointly generates all replacements in one left-to-right output sequence, using fill-in-the-middle (FIM) serialization to condition on the preserved prefix, suffix, and repair feedback. 4 The Plan-and-Patch Framework Plan-and-Patch follows a plan-and-act architecture (Sun et al., 2023; Erdogan et al., 2025), with one diffusion planner jointly trained for plan generation and repair (Figure 1). The planner generates a complete structured plan, which a separate executor translates into environment actions. After failure, the executor selects a repair region and supplies repair feedback. The planner infills this region while preserving the surrounding plan text. 4.1 Plan generation and repair Structured plan representation. The hierarchy in Definitions 1 and 2 provides explicit boundaries for selecting and replacing plan text. Step and subgoal identifiers locate spans for masking during training or repair. A repair region may include a step or an enclosing subgoal, together with associated reasoning and intent fields. This supports repair at the step or subgoal level while preserving the surrounding text. Task 1: Plan generation. Given a task goal, the initial environment observation, and the available actions, the planner generates a complete plan using the generation procedure in Section 3. The executor follows the plan strictly, carrying out its leaf steps in order. The diffusion and AR planners receive these same inputs and use the same structured plan representation. Failure detection. An execution fails if it terminates without achieving the task goal. The execution history h records ordered actions and their environment feedback, comprising observations and error messages returned by the environment. We separately prompt the executor to select steps in the failed plan Ď for revision using h, or to abstain. Selected steps and associated fields define a repair region Râ[L]R [L], where [L]=1,âŚ,L[L]=\1,âŚ,L\. The detector supplies repair feedback fRf_R, combining environment feedback with an explanation of why the selected text needs revision. Failure may be observed at a different step from the one requiring repair. This procedure requires no reference plan (Section A.3.2). For training and a separate reference-assisted evaluation, a language-model judge uses a reference plan to select repair regions and supply repair feedback. In that evaluation, both planners receive the same failed plans, selected regions, and repair feedback. Task 2: Plan repair. The planner receives the failed plan Ď, selected region R, and repair feedback fRf_R. For a contiguous region, write Ď=ĎpreââĎRââĎpostĎ= _pre\| _R\| _post, where âĽ\| denotes concatenation. Conditioned on the preserved prefix, suffix, and repair feedback, the planner generates a replacement Ď to form Ďâ˛=ĎpreââĎââĎpost.Ď = _pre\|Ď\| _post. (1) The replacement may differ in length from the selected span. For multiple spans, both planners jointly generate replacements, preserving their order and all intervening text; R indexes tokens in the original plan. The diffusion planner allocates a total of K0=2â|R|K_0=2|R| replacement positions across the selected spans, where |R||R| counts tokens in the original repair region. The planner then applies the infilling procedure in Section 3. Each span has its own padded canvas segment, and its replacement ends before the first [delete] token in that segment. The diffusion and AR planners receive the same preserved plan context and repair feedback. In our interactive evaluation, each repaired plan is executed from the taskâs initial environment state (Section A.1). Figure A.2 shows an ALFWorld example. 4.2 Reference plans and repair examples We partition each environmentâs tasks into disjoint train-gen, train-rep, dev, and test sets. The first two supply complete-plan targets and repair examples, respectively; dev determines training convergence and test is reserved for evaluation. Reference-plan construction. We replay successful action sequences, storing each action, its arguments, and observed feedback as a leaf step (Figure 3). Fixed domain rules group leaves into subgoals. An LLM rewrites only reasoning and intents; invalid rewrites revert to the original plan. A separate executor checks for positive terminal reward. Accepted train-gen plans provide generation targets; train-rep plans provide repair references (Section A.1). (a) ALFWorld(b) TextCraftGoal: put a soap bar in a cabinetGoal: craft pink concrete powder 1 goto countertop â 2 take soap bar â 3 goto cabinet â 4 put soap bar in cabinet 1 fetch tulip â 2 craft dye â 3 fetch sand â 4 fetch gravel â 5 craft concrete powder navigation + manipulationrecipe dependencies sg1: get steps 1â2 sg2: place steps 3â4 sg1: materials sg2: step 5 sg1.1: steps 1â2 sg1.2: steps 3â4 Serialized leaf: sg1.step1 Action: goto Args: countertop Expected obs.: at/facing countertop Serialized leaf: sg1.1.step1 Action: fetch Args: 1 pink tulip Expected obs.: Got 1 pink tulip LLM rewrite reasoning and intents Actions/args fixed Validate fields Valid: use rewrite Invalid: use original Executor follows the plan in the environment Terminal reward Positive: keep Otherwise: discard Figure 3: Reference-plan construction. ALFWorld groups navigationâmanipulation pairs; TextCraft groups ingredient preparation before the final craft. Numbers map actions to subgoals; leaf boxes show serialized fields. Both domains share the bottom pipeline. Actions and observations are abbreviated. Repair examples. We train generation-only DreamReasoner-8B and Qwen3-8B planners per environment on train-gen and execute them on train-rep, retaining failed plans and their execution histories. A reference-assisted judge selects defective regions and supplies repair feedback; corresponding reference text provides the replacement targets. We supplement these real failures with structured perturbations of verified training plans, changing an object, receptacle, intent, or prerequisite. The original text in the perturbed region supplies the replacement target. We reject examples with edits outside the selected region or replacements appearing verbatim in the visible context. Both model families receive the same generation and repair examples. 4.3 Joint training and decoding Retaining both capabilities. Each final planner starts from its original DreamReasoner-8B or Qwen3-8B checkpoint and is trained jointly on generation and repair for its environment (Figure 4). In preliminary experiments with both diffusion and AR planners, sequentially fine-tuning a generation-only planner on repair examples left repair performance roughly unchanged but substantially degraded complete-plan generation, primarily through invalid formatting. This finding motivated joint training on the combined generation and repair examples. Targets and block sizes. Generation conditions on the goal, initial observation, and action grammar; its target is the complete plan. Repair conditions on the failed planâs preserved context and repair feedback; only replacement targets contribute to the repair loss. For diffusion, target tokens are corrupted and supervised using the masked-token objective in Section 3. DreamReasoner trains with progressively larger blocks (Wu et al., 2026c). We adapt this block-size curriculum with separate sampling distributions for generation and repair (Figure 4). Generation assigns 61.2%61.2\% of its sampling weight to blocks of at most 1616 tokens, whereas repair assigns 49.0%49.0\% to the 4,0964,096-token block. This emphasizes short blocks for constructing plans and larger blocks for infilling supplied regions with fixed surrounding context. The AR planner learns plan generation and repair on the same examples, using FIM serialization for repair. 1. Collect training failuresTrain an initial generation-only planner;execute it on disjoint repair-training tasks.2. Train the final planner jointlyInitialize from the original checkpoint;jointly train generation and repair.RepairexamplesDiffusion block-size sampling within each objective (normalized weights, %)Block size48163264128256512102420484096GenerationRepair24.520.416.312.28.26.15.14.13.1â4.16.18.212.2â20.449.0Generation supervises the complete plan; repair supervises only replacement spans. Figure 4: Joint training with task-specific block sizes. The initial planner supplies failures for data construction; the final planner starts from the original checkpoint and learns generation and repair jointly. We adapt DreamReasonerâs block-size curriculum (Wu et al., 2026c) with separate sampling distributions for generation and repair. The lower panel shows weights normalized within each objective; dashes denote unsampled sizes. Inference uses the separate settings in Table A.11. Inference. On ALFWorld and TextCraft, diffusion generation uses left-to-right blocks of 44 tokens with confidence threshold 0.950.95. Repair uses full-canvas infilling with RelaxedConfidence, threshold floor and neighbour-support cutoff 0.70.7, and neighbourhood radius 44 (Sections 3 and A.11). Small generation blocks limit how much of the plan is resolved together; repair uses the preserved prefix and suffix throughout infilling. The AR planner jointly generates replacements for the selected spans in one left-to-right sequence. Section A.4 specifies optimization, padding, and prompts. 5 Experiments We evaluate whether the jointly trained planners generate successful plans at lower latency, how repair depends on region selection, and how performance changes with the executor and plan representation. Natural Plan provides a separate evaluation of generation and repair without task-specific training. 5.1 Experimental settings Benchmarks and data. ALFWorld (Shridhar et al., 2021) requires household navigation and manipulation; TextCraft (Prasad et al., 2024) requires dependency-constrained crafting. Task success means that executing the plan achieves the environmentâs goal. Table A.1 reports task splits and repair corpora constructed by Section 4.2. Task counts precede reference-plan execution filtering (Figure 3); Table A.2 reports candidate acceptance rates. The train-gen and train-rep partitions contain 2,665/8882,665/888 ALFWorld and 3,824/1,2683,824/1,268 TextCraft tasks, respectively. Repair corpora contain 699699 real plus 763763 synthetic examples for ALFWorld, and 267267 real plus 1,6611,661 synthetic examples for TextCraft. Models and optimization. The diffusion planner Diff-Plan is DreamReasoner-8B (Wu et al., 2026c), adapted from Qwen3-8B-Base. The AR planner AR-Plan is Qwen3-8B. Both have 88B parameters and share a tokenizer, task splits, training examples, and plan representation. We fully fine-tune each planner per environment with AdamW until development-set performance converges. Their prior training, decoding, and training compute differ. Sections 4.3 and A.11 give block sizes and optimization settings. A shared Qwen3-8B executor receives no task-specific fine-tuning. ReAct (Yao et al., 2023) uses the same Qwen3-8B model to act without a separate plan. Evaluation protocol. Generation uses 134134 ALFWorld and 100100 TextCraft test tasks, with limits of 6060 planned leaf steps and 1,0001,000 episode tokens. For repair, we pool failed plans from both planners: 148148 ALFWorld and 7171 TextCraft failures. Each example is identified by task and generating planner, so one task may contribute two failed plans. Reference-assisted region selection uses all 219219 failures. History-based selection uses the 175175 failures with step-level reference annotations (126126 ALFWorld, 4949 TextCraft), which support evaluation of the selected regions; the detector itself sees only the plan and execution history. Both planners receive the same failed plans, selected regions, and repair feedback. Each example permits one repair attempt followed by execution from the initial state. Missing regions and abstentions count as unsuccessful. Section A.1 gives the complete population definitions. 5.2 Plan quality and latency Table 1: Task success under the Qwen3-8B executor (%). Generation: 134/100134/100 tasks; reference-assisted/history-based repair: 148/71148/71 and 126/49126/49 failures (ALFWorld/TextCraft), with one attempt and restart. â -to-end provides generation-plus-repair success including recovery on each plannerâs own failures using the history-based repair. Dashes denote no repair stage. Environment Model Plan generation Reference-assisted repair History-based repair End-to-endâ ALFWorld ReAct 38.1%38.1\% â- â- â- Diff-Plan 44.0%44.0\% 28.4%28.4\% 14.3%14.3\% 59.9%59.9\% AR-Plan 45.5%45.5\% 27.7%27.7\% 17.5%17.5\% 60.6%60.6\% TextCraft ReAct 48.0%48.0\% â- â- â- Diff-Plan 63.0%63.0\% 15.5%15.5\% 24.5%24.5\% 68.7%68.7\% AR-Plan 66.0%66.0\% 18.3%18.3\% 30.6%30.6\% 72.2%72.2\% Joint training retains generation and repair. All 234234 generated plans from each final planner pass the parserâs format checks. Both planners outperform ReAct in generation, with a slight edge to AR. The planners differ by at most 33 percentage points in generation and reference-assisted repair (Table 1). These results show that the joint training recipe retains both generation and repair performance in a single checkpoint (Figure 4). Section A.2 reports paired generation outcomes and confidence intervals. Parallel decoding reduces generation latency. Diffusion reduces mean generation latency by 3939â46%46\% across the two environments (Figure 5). Latency is measured using synchronized, unbatched bf16 decoding on one A100. Repair is faster than plan generation for both planners. Diffusion therefore generates plans faster at similar observed task success. Section A.4.1 reports replacement tokens committed per forward pass. (a) Complete-plan generationMean seconds per plan; lower is better01020304050ALFWorld14.323.339% lowerTextCraft21.740.246% lower(b) Reference-assisted repairMean seconds per call; lower is better0481216ALFWorld9.57.6TextCraft9.413.8Diff-PlanAR-Plan Figure 5: Diffusion reduces mean plan-generation latency by 3939â46%46\%. Values are synchronized, unbatched calls on one A100 in bf16; prompt construction, parsing, and environment execution are excluded. Repair latency varies by environment. Repair without task-specific training. Natural Plan (Zheng et al., 2024) evaluates travel and scheduling plans using programmatic constraint validators, without an executor. Repair examples blank regions of reference plans; both planners receive the same context, repair feedback, and approximate replacement length. We use the original checkpoints; diffusion uses block size 44 for generation and 256256 for repair. AR has higher generation success, while diffusion nearly doubles repair success; both judges agree with these rankings (Table 2). Diffusionâs repair advantage is concentrated in trip planning. Its flight-graph structure favors flexible decoding, analogous to diffusionâs reverse decoding on synthetic Star-Path tasks (Trainin et al., 2026). Section A.3.3 gives domain results and uncertainty estimates. Table 2: Natural Plan without task-specific training. Acceptance rates (%) under the benchmark validator and two judges. Generation uses 1,0001,000 tasks; repair infills reference-plan regions in 2,6612,661 examples from 696696 tasks. Task Model Validator GPT-5 Sonnet 5 Generation Diff-Plan 33.0%33.0\% 20.2%20.2\% 31.8%31.8\% AR-Plan 48.6%48.6\% 34.0%34.0\% 46.1%46.1\% Repair Diff-Plan 53.7%53.7\% 72.9%72.9\% 81.6%81.6\% AR-Plan 27.0%27.0\% 42.1%42.1\% 53.4%53.4\% 5.3 What limits execution and repair? Region selection. On the same 175175 eligible failures, with repair feedback fixed, history-based selection reduces pooled repair success relative to reference-assisted selection by 1212 percentage points for diffusion and 8.68.6 for AR (Table A.9). These results show that selecting the repair region correctly is important for successful plan repair. Alternative structured representation. We compare two structured formats: delimited plans and prose plans with phase headings and numbered steps. We retrain both planners, keeping task goals, executable fields, splits, and decoding settings fixed. Under Qwen3-8B, prose plans improve generation success by 17.917.9â22.422.4 percentage points on ALFWorld and 66â1212 on TextCraft (Table A.7). Diffusionâs observed reference-assisted repair success is lower for prose than delimited plans: 21.3%21.3\% versus 28.4%28.4\% on ALFWorld and 5.0%5.0\% versus 15.5%15.5\% on TextCraft, evaluated on their respective failure sets. AR has higher prose-plan repair success than diffusion in both environments. Plan format thus affects generation and repair differently: explicit boundaries may simplify repair-region selection and support recovery. Section A.3.1 gives complete results and executor comparisons. Error analysis. Despite ARâs slight aggregate lead, its successes do not subsume diffusionâs: diffusion solves 23/13423/134 ALFWorld and 13/10013/100 TextCraft tasks that AR fails (Table 3). Cooling favors AR and cleaning favors diffusion. Among tasks failed by only one planner, failure at a leaf step is the most common stopping reason for both; invalid-action limits are also frequent in ALFWorld (Section A.2.1). Table 3: Pairwise error analysis of generated plans. Counts partition the test tasks. In each âonlyâ column, the other planner succeeds. Environment (tasks) Both succeed Both fail Only diffusion fails Only AR fails ALFWorld (134134) 3636 5050 2525 2323 TextCraft (100100) 5050 2121 1616 1313 6 Conclusion and Future Work Plan-and-Patch combines complete-plan generation with repair through infilling, preserving unselected text. On ALFWorld and TextCraft, the planners achieve similar observed generation success, while diffusion reduces mean generation latency by 3939â46%46\%. History-based repair enables recovery without reference plans, with higher pooled success for AR. Without task-specific training on Natural Plan, AR achieves higher generation success, whereas diffusion achieves higher repair success. These findings support structured plans as an interface for parallel generation and repair. Several directions remain for future work, including jointly learning repair-region selection and infilling from execution feedback, adapting repair scope and decoding effort to uncertainty, and extending the framework to longer planning horizons while maintaining consistency between local edits and global task goals. References Ahmad et al. (2025) W. U. Ahmad, S. Majumdar, and B. Ginsburg From output to evaluation: does raw instruction-tuned code LLMs output suffice for fill-in-the-middle code generation?. arXiv preprint arXiv:2505.18789. Cited by: §2. Ajay et al. (2023) A. Ajay, Y. Du, A. Gupta, J. B. Tenenbaum, T. Jaakkola, and P. Agrawal Is conditional generative modeling all you need for decision-making?. In International Conference on Learning Representations (ICLR), Note: arXiv:2211.15657 Cited by: §2. Austin et al. (2021) J. Austin, D. D. Johnson, J. Ho, D. Tarlow, and R. van den Berg Structured denoising diffusion models in discrete state-spaces. In Advances in Neural Information Processing Systems (NeurIPS), Note: arXiv:2107.03006 Cited by: §1, §2. Bachmann and Nagarajan (2024) G. Bachmann and V. Nagarajan The pitfalls of next-token prediction. In International Conference on Machine Learning (ICML), Cited by: §1. Bavarian et al. (2022) M. Bavarian, H. Jun, N. Tezak, J. Schulman, C. McLeavey, J. Tworek, and M. Chen Efficient training of language models to fill in the middle. arXiv preprint arXiv:2207.14255. Cited by: §1, §2. Berrayana et al. (2026) L. Berrayana, A. Heakl, A. Sohail, T. Hofmann, S. Khan, and W. Chen Latent-DARM: bridging discrete diffusion and autoregressive models for reasoning. arXiv preprint arXiv:2603.09184. Cited by: §2. Bie et al. (2026) T. Bie, J. Cai, M. Cao, X. Cao, B. Chen, F. Chen, K. Chen, Y. Ding, L. Du, Z. Gong, Y. Gu, K. Guan, X. Guo, K. Han, Z. Huang, Z. Huang, Z. Lan, C. Li, J. Li, Z. Li, R. Liang, X. Lin, H. Liu, L. Liu, X. Liu, X. Liu, G. Lu, Y. Lu, Y. Ma, C. Mao, X. Qi, K. Qiu, X. Shi, Y. Tian, H. Wang, Q. Wang, R. Wang, S. Wang, L. Wei, T. Wu, S. Xiao, Y. Xing, C. Xu, S. Yan, Y. Yan, J. Yang, Y. Yang, L. Zha, T. Zhang, Y. Zhang, J. Zhao, W. Zhao, D. Zheng, J. Zhong, J. Zhou, J. Zhou, T. Zhou, L. Zhu, and Y. Zhuang LLaDA2.2: enabling agentic diffusion language models via levenshtein editing. Note: Technical report, Inclusion AI / Ant Grouphttps://github.com/inclusionAI/LLaDA2.X/blob/main/LLaDA2_2_tech_report.pdf Cited by: §2. Deshpande (2026) D. Deshpande Masked diffusion language models are strong and steerable text-based world models for agentic RL. arXiv preprint arXiv:2607.16204. Cited by: §2. Erdogan et al. (2025) L. E. Erdogan, N. Lee, S. Kim, S. Moon, H. Furuta, G. Anumanchipalli, K. Keutzer, and A. Gholami Plan-and-Act: improving planning of agents for long-horizon tasks. arXiv preprint arXiv:2503.09572. Cited by: §1, §1, §2, §4. Fried et al. (2023) D. Fried, A. Aghajanyan, J. Lin, S. Wang, E. Wallace, F. Shi, R. Zhong, W. Yih, L. Zettlemoyer, and M. Lewis InCoder: a generative model for code infilling and synthesis. In International Conference on Learning Representations (ICLR), Note: arXiv:2204.05999 Cited by: §1, §2. Gong et al. (2025) S. Gong, R. Zhang, H. Zheng, J. Gu, N. Jaitly, L. Kong, and Y. Zhang DiffuCoder: understanding and improving masked diffusion models for code generation. arXiv preprint arXiv:2506.20639. Cited by: §1, §2. Guo et al. (2026) S. Guo, K. Zhang, H. Liu, X. Gao, Y. Zhang, Y. Wang, and Q. Yao ContextFlow: hierarchical task-state alignment for long-horizon embodied agents. arXiv preprint arXiv:2605.19314. Cited by: §2. Hao et al. (2023) S. Hao, Y. Gu, H. Ma, J. Hong, Z. Wang, D. Wang, and Z. Hu Reasoning with language model is planning with world model. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Cited by: §1. Huang et al. (2023) W. Huang, F. Xia, T. Xiao, H. Chan, J. Liang, P. Florence, A. Zeng, J. Tompson, I. Mordatch, Y. Chebotar, P. Sermanet, N. Brown, T. Jackson, L. Luu, S. Levine, K. Hausman, and B. Ichter Inner monologue: embodied reasoning through planning with language models. In Conference on Robot Learning (CoRL), Proceedings of Machine Learning Research, Vol. 205, p. 1769â1782. External Links: Link Cited by: §2. Inception Labs et al. (2025) Inception Labs, S. Khanna, S. Kharbanda, S. Li, H. Varma, E. Wang, S. Birnbaum, Z. Luo, Y. Miraoui, A. Palrecha, S. Ermon, A. Grover, and V. Kuleshov Mercury: ultra-fast language models based on diffusion. arXiv preprint arXiv:2506.17298. Cited by: §1. Jain et al. (2025) N. Jain, K. Han, A. Gu, W. Li, F. Yan, T. Zhang, S. I. Wang, A. Solar-Lezama, K. Sen, and I. Stoica LiveCodeBench: holistic and contamination free evaluation of large language models for code. In International Conference on Learning Representations (ICLR), Cited by: §2. Janner et al. (2022) M. Janner, Y. Du, J. B. Tenenbaum, and S. Levine Planning with diffusion for flexible behavior synthesis. In International Conference on Machine Learning (ICML), Note: arXiv:2205.09991 Cited by: §2. Kim et al. (2025) M. Kim, C. Hooper, A. Tomar, C. Xu, M. Farajtabar, M. W. Mahoney, K. Keutzer, and A. Gholami Beyond next-token prediction: a performance characterization of diffusion versus autoregressive language models. arXiv preprint arXiv:2510.04146. Cited by: §2. Kumar and Cohen (2026) A. Kumar and W. W. Cohen Localizing and correcting errors for LLM-based planners. arXiv preprint arXiv:2602.00276. Cited by: §2. Le Goues et al. (2012) C. Le Goues, T. Nguyen, S. Forrest, and W. Weimer GenProg: a generic method for automatic software repair. IEEE Transactions on Software Engineering 38 (1), p. 54â72. Cited by: §2. Le Goues et al. (2019) C. Le Goues, M. Pradel, and A. Roychoudhury Automated program repair. Communications of the ACM 62 (12), p. 56â65. Cited by: §2. Liang et al. (2023) J. Liang, W. Huang, F. Xia, P. Xu, K. Hausman, B. Ichter, P. Florence, and A. Zeng Code as policies: language model programs for embodied control. In IEEE International Conference on Robotics and Automation (ICRA), Note: arXiv:2209.07753 Cited by: §1. Liu et al. (2023) Z. Liu, A. Bahety, and S. Song REFLECT: summarizing robot experiences for failure explanation and correction. In Conference on Robot Learning (CoRL), Note: arXiv:2306.15724 Cited by: §2. Lou et al. (2024) A. Lou, C. Meng, and S. Ermon Discrete diffusion modeling by estimating the ratios of the data distribution. In International Conference on Machine Learning (ICML), Note: ICML 2024 Oral; arXiv:2310.16834 Cited by: §1, §2, §3. Lu et al. (2026) Q. Lu, L. Ding, K. Zhang, J. Zhang, and D. Tao The bitter lesson of diffusion language models for agentic workflows: a comprehensive reality check. In Proceedings of the Association for Computational Linguistics (ACL), Main Conference, Note: arXiv:2601.12979 Cited by: §2. Luan et al. (2026) Z. Luan, X. Zhang, M. Hu, Y. Yang, J. Yu, and X. Chen Repair or resample? rethinking failure debugging in LLM multi-agent systems. arXiv preprint arXiv:2608.25920. Cited by: §2. Ma et al. (2026) L. Ma, Y. Cui, K. Han, and Y. Wang Diffusion In Diffusion: reclaiming global coherence in semi-autoregressive diffusion. arXiv preprint arXiv:2601.13599. Cited by: §2. Madaan et al. (2023) A. Madaan, N. Tandon, P. Gupta, S. Hallinan, L. Gao, S. Wiegreffe, U. Alon, N. Dziri, S. Prabhumoye, Y. Yang, S. Gupta, B. P. Majumder, K. Hermann, S. Welleck, A. Yazdanbakhsh, and P. Clark Self-Refine: iterative refinement with self-feedback. In Advances in Neural Information Processing Systems (NeurIPS), Note: arXiv:2303.17651 Cited by: §2. Nie et al. (2025) S. Nie, F. Zhu, Z. You, X. Zhang, J. Ou, J. Hu, J. Zhou, Y. Lin, J. Wen, and C. Li Large language diffusion models. arXiv preprint arXiv:2502.09992. Cited by: §2. Peng et al. (2026) J. Peng, Y. Liu, R. Zhou, C. Fleming, Z. Wang, A. Garcia, and M. Hong HiPER: hierarchical planâexecute RL for multi-turn LLM agents. In Proceedings of the International Conference on Machine Learning (ICML), External Links: Link Cited by: §1. Prasad et al. (2024) A. Prasad, A. Koller, M. Hartmann, P. Clark, A. Sabharwal, M. Bansal, and T. Khot ADaPT: as-needed decomposition and planning with language models. In Findings of the Association for Computational Linguistics: NAACL 2024, Note: arXiv:2311.05772 Cited by: §1, §1, §1, §1, §2, §5.1. Sahoo et al. (2024) S. S. Sahoo, M. Arriola, Y. Schiff, A. Gokaslan, E. Marroquin, J. T. Chiu, A. Rush, and V. Kuleshov Simple and effective masked diffusion language models. In Advances in Neural Information Processing Systems (NeurIPS), Note: arXiv:2406.07524 Cited by: §1, §2, §3. Shinn et al. (2023) N. Shinn, F. Cassano, A. Gopinath, K. Narasimhan, and S. Yao Reflexion: language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §1, §2. Shridhar et al. (2021) M. Shridhar, X. Yuan, M. CĂ´tĂŠ, Y. Bisk, A. Trischler, and M. Hausknecht ALFWorld: aligning text and embodied environments for interactive learning. In International Conference on Learning Representations (ICLR), Note: arXiv:2010.03768 Cited by: §1, §5.1. Singh et al. (2023a) I. Singh, V. Blukis, A. Mousavian, A. Goyal, D. Xu, J. Tremblay, D. Fox, J. Thomason, and A. Garg ProgPrompt: generating situated robot task plans using large language models. In IEEE International Conference on Robotics and Automation (ICRA), Note: arXiv:2209.11302 Cited by: §1, §1. Singh et al. (2023b) M. Singh, J. Cambronero, S. Gulwani, V. Le, C. Negreanu, and G. Verbruggen CodeFusion: a pre-trained diffusion model for code generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (EMNLP), p. 11697â11708. External Links: Document, Link Cited by: §1, §2. Singh et al. (2025) M. Singh, G. Verbruggen, V. Le, and S. Gulwani Diffusion is a code repair operator and generator. arXiv preprint arXiv:2508.11110. Cited by: §2. Song et al. (2023) C. H. Song, J. Wu, C. Washington, B. M. Sadler, W. Chao, and Y. Su LLM-Planner: few-shot grounded planning for embodied agents with large language models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Note: arXiv:2212.04088 Cited by: §2. Sun et al. (2023) H. Sun, Y. Zhuang, L. Kong, B. Dai, and C. Zhang AdaPlanner: adaptive planning from feedback with language models. In Advances in Neural Information Processing Systems (NeurIPS), Note: arXiv:2305.16653 Cited by: §1, §2, §4. Trainin et al. (2026) I. Trainin, S. Ravfogel, O. Abend, and A. Feder Discrete diffusion models exploit asymmetry to solve lookahead planning tasks. arXiv preprint arXiv:2602.19980. Cited by: §2, §5.2. Wang et al. (2024) G. Wang, Y. Xie, Y. Jiang, A. Mandlekar, C. Xiao, Y. Zhu, L. Fan, and A. Anandkumar Voyager: an open-ended embodied agent with large language models. Transactions on Machine Learning Research (TMLR). Note: arXiv:2305.16291 Cited by: §1, §2. Wang et al. (2023a) L. Wang, W. Xu, Y. Lan, Z. Hu, Y. Lan, R. K. Lee, and E. Lim Plan-and-solve prompting: improving zero-shot chain-of-thought reasoning by large language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL), Note: arXiv:2305.04091 Cited by: §1, §2. Wang et al. (2022) R. Wang, P. Jansen, M. CĂ´tĂŠ, and P. Ammanabrolu ScienceWorld: is your agent smarter than a 5th grader?. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing (EMNLP), Note: arXiv:2203.07540 Cited by: §A.3.4. Wang et al. (2025) Y. Wang, L. Yang, B. Li, Y. Tian, K. Shen, and M. Wang Revolutionizing reinforcement learning framework for diffusion large language models. arXiv preprint arXiv:2509.06949. Cited by: §2. Wang et al. (2023b) Z. Wang, S. Cai, G. Chen, A. Liu, X. Ma, and Y. Liang Describe, explain, plan and select: interactive planning with large language models enables open-world multi-task agents. In Advances in Neural Information Processing Systems (NeurIPS), Note: arXiv:2302.01560 Cited by: §1, §2. Wu et al. (2025) C. Wu, H. Zhang, S. Xue, Z. Liu, S. Diao, L. Zhu, P. Luo, S. Han, and E. Xie Fast-dLLM: training-free acceleration of diffusion LLM by enabling KV cache and parallel decoding. arXiv preprint arXiv:2505.22618. Cited by: §2. Wu et al. (2026a) W. Wu, S. Zhu, K. Zhou, and B. Huang Planner Matters! an efficient and unbalanced multi-agent collaboration framework for long-horizon planning. arXiv preprint arXiv:2605.02168. Cited by: §1. Wu et al. (2026b) Z. Wu, L. Zheng, Z. Xie, J. Ye, J. Gao, S. Gong, Y. Feng, Z. Li, W. Bi, G. Zhou, and L. Kong DreamOn: diffusion language models for code infilling beyond fixed-size canvas. In International Conference on Learning Representations (ICLR), Note: arXiv:2602.01326 Cited by: §1, §2, §3. Wu et al. (2026c) Z. Wu, L. Zheng, J. Ye, S. Gong, X. Zhao, Y. Feng, W. Bi, and L. Kong DreamReasoner-8B: block-size curriculum learning for diffusion reasoning models. arXiv preprint arXiv:2606.19257. Cited by: §A.4.1, §3, Figure 4, Figure 4, §4.3, §5.1. Xia and Zhang (2022) C. S. Xia and L. Zhang Less training, more repairing please: revisiting automated program repair via zero-shot learning. In Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE), p. 959â971. Cited by: §2. Xu et al. (2026) H. Xu, S. Chen, Y. Bei, L. Chen, Y. Yan, D. Fu, J. He, and H. Tong Predict, donât iterate: efficient adaptive-length infilling for diffusion language models. arXiv preprint arXiv:2609.02108. Cited by: §2. Xue et al. (2026) A. Xue, L. Rout, C. Caramanis, and S. Shakkottai AnCoder: anchored code generation via discrete diffusion models. arXiv preprint arXiv:2602.17688. Cited by: §2. Yao et al. (2023) S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao ReAct: synergizing reasoning and acting in language models. In International Conference on Learning Representations (ICLR), Note: arXiv:2210.03629 Cited by: §2, §5.1. Ye et al. (2025a) J. Ye, J. Gao, S. Gong, L. Zheng, X. Jiang, Z. Li, and L. Kong Beyond autoregression: discrete diffusion for complex reasoning and planning. In International Conference on Learning Representations (ICLR), Note: arXiv:2410.14157 Cited by: §2. Ye et al. (2025b) J. Ye, Z. Xie, L. Zheng, J. Gao, Z. Wu, X. Jiang, Z. Li, and L. Kong Dream 7b: diffusion large language models. arXiv preprint arXiv:2508.15487. Cited by: §2, §2. Zambrano et al. (2026) A. Zambrano, S. V. Marjanovic, I. Kerboua, X. H. LĂš, and L. Kosseim Does the way you plan matter? an empirical study of planning representations for LLM web agents. arXiv preprint arXiv:2605.29927. Cited by: §1. Zhang et al. (2026a) T. Zhang, A. Popa, Y. Xu, R. Song, and D. Dimitriadis PIVOT: bridging planning and execution in LLM agents via trajectory refinement. arXiv preprint arXiv:2605.11225. Cited by: §2. Zhang et al. (2026b) Y. Zhang, S. Chen, Z. Huang, H. Cui, K. Ji, and Z. Wang Atomic Task Graph: a unified framework for agentic planning and execution. arXiv preprint arXiv:2607.01942. Cited by: §2. Zhang et al. (2025) Z. Zhang, T. Chen, W. Xu, A. Pentland, and J. Pei ReCAP: recursive context-aware reasoning and planning for large language model agents. In Advances in Neural Information Processing Systems (NeurIPS), Note: arXiv:2510.23822 Cited by: §1. Zhao et al. (2026) J. Zhao, S. Xu, Z. Sun, F. Zhu, J. Ou, Y. Shi, C. Li, X. Zhang, and J. Xu DLLM-Searcher: adapting diffusion large language model for search agents. arXiv preprint arXiv:2602.07035. Cited by: §2. Zhao et al. (2025) S. Zhao, D. Gupta, Q. Zheng, and A. Grover D1: scaling reasoning in diffusion large language models via reinforcement learning. In Conference on Neural Information Processing Systems (NeurIPS), Note: arXiv:2504.12216 Cited by: §2. Zhen et al. (2026) H. Zhen, W. Lin, R. Liu, K. Han, Y. Li, Y. Tian, H. Chen, X. Li, X. Li, C. Chen, X. Yu, M. Yuan, Y. Yan, P. Qin, J. Wang, Y. Wang, D. Tao, and Y. Wang DLLM agent: see farther, run faster. arXiv preprint arXiv:2602.07451. Cited by: §2. Zheng et al. (2024) H. S. Zheng, S. Mishra, H. Zhang, X. Chen, M. Chen, A. Nova, L. Hou, H. Cheng, Q. V. Le, E. H. Chi, and D. Zhou NATURAL PLAN: benchmarking llms on natural language planning. arXiv preprint arXiv:2406.04520. Cited by: §1, §5.2. Zhou et al. (2023) S. Zhou, Y. Du, S. Zhang, M. Xu, Y. Shen, W. Xiao, D. Yeung, and C. Gan Adaptive online replanning with diffusion models. In Conference on Neural Information Processing Systems (NeurIPS), Note: arXiv:2310.09629 Cited by: §2. Zhu et al. (2025) F. Zhu, R. Wang, S. Nie, X. Zhang, C. Wu, J. Hu, J. Zhou, J. Chen, Y. Lin, J. Wen, and C. Li LLaDA 1.5: variance-reduced preference optimization for large language diffusion models. arXiv preprint arXiv:2505.19223. Cited by: §2. Appendix A Supplementary Material The appendix is organized as follows. Section A.1 defines the data and evaluation populations. Section A.2 reports the complete primary results. Section A.3 collects representation, executor, region-selection, Natural Plan, and long-horizon analyses. Section A.4 records training, decoding, and prompt details. A.1 Protocols and data ALFWorld combines household navigation and manipulation; TextCraft requires dependency-constrained crafting. Natural Plan contains trip, meeting, and calendar scheduling problems with programmatic validators that check whether a completed plan satisfies the task constraints. ScienceWorld is used only for the long-horizon generation analysis in Section A.3.4. A.1.1 Task splits and training examples ALFWorld and TextCraft are partitioned by task identity into disjoint train-gen, train-rep, dev, and test sets. train-gen supplies complete-plan targets. Generation-only DreamReasoner-8B and Qwen3-8B checkpoints, trained separately per environment on that split, produce failures on train-rep. The dev split determines training convergence. Primary interactive evaluation uses test. Both model families use the same task splits and training examples. Table A.1: Task splits and repair-training examples. Task counts precede reference-plan execution filtering. Repair examples combine failed planner executions and structured perturbations of verified plans. Task split Repair-training examples Environment train-gen train-rep dev test real synthetic total ALFWorld 2,6652,665 888888 140140 134134 699699 763763 1,4621,462 TextCraft 3,8243,824 1,2681,268 5050 100100 267267 1,6611,661 1,9281,928 Dataset-specific reference construction. The benchmark task specifies the goal; the subgoal decomposition uses fixed, domain-specific rules. ALFWorld references start from expert demonstrations. We group navigation followed by manipulation into subgoals. TextCraft uses a deterministic solver that expands recipe dependencies backward from the target item; these dependencies define the subgoal hierarchy. In both environments, actions are replayed to record observations. We render each action, its arguments, and its observed environment feedback as a leaf step, then serialize these steps in execution order. This constructs the initial plan deterministically from the source sequence and replayed feedback. Claude Sonnet 5 with default model settings rewrites reasoning and intent fields from the grouped plan and its evidence while preserving actions and arguments. The returned fields are rendered and validated; an invalid rewrite falls back to the original structured plan. Claude Sonnet 5 with default model settings follows each candidate as the verification executor in the live environment. Positive terminal reward is required for acceptance (Figure 3). Table A.2: Reference-plan candidates. Train is the union of train-gen and train-rep. Counts precede execution filtering; verified train-gen candidates supply generation targets, while verified train-rep references provide repair targets for failed plans. Mean, median, and maximum refer to the number of leaf steps; success is measured by execution. Environment Split Candidates Success Mean Median Max ALFWorld train 3,5533,553 91.0%91.0\% 5.85.8 66 88 dev 140140 90.7%90.7\% 5.75.7 66 88 test 134134 91.0%91.0\% 5.65.6 66 88 all 3,8273,827 91.0%91.0\% 5.85.8 66 88 TextCraft train 5,0925,092 99.8%99.8\% 9.89.8 7.07.0 6666 dev 5050 100%100\% 9.99.9 7.07.0 9191 test 100100 99.0%99.0\% 8.08.0 6.56.5 3333 all 5,2425,242 99.8%99.8\% 9.89.8 7.07.0 9191 For repair training, we retain failed plans with their execution history and first observed failure. A reference-assisted judge identifies the smallest addressable repair region associated with the failure. The corresponding text from the verified reference plan provides the replacement target. Structured perturbations supplement these real failures. They modify fields of the parsed plan, such as an object, receptacle, intent, or prerequisite. An example is rejected if the edit changes text outside the selected region or if its replacement occurs verbatim in the remaining prompt. We query Claude Sonnet 5 (us.anthropic.claude-sonnet-5) once with default model settings as the reference-assisted judge. It receives the goal, failed plan, execution history, failure observation, and reference plan, and is instructed to return the identifiers of the smallest set of steps whose differences from the reference explain the observed failure, followed by a brief explanation. A.1.2 Interactive evaluation populations Generation is evaluated on 134134 ALFWorld and 100100 TextCraft test tasks. The resulting failures are pooled across planners, giving 148148 failed plans in ALFWorld (7575 from Diff-Plan and 7373 from AR-Plan) and 7171 in TextCraft (3737 from Diff-Plan and 3434 from AR-Plan). Each repair example is identified by its task and generating planner, so a task failed by both planners contributes two examples. All failed plans remain in the primary reference-assisted repair population, including those with no usable repair region, which count as unsuccessful. History-based region selection is evaluated on 126/148126/148 ALFWorld and 49/7149/71 TextCraft failed plans with a step labelled by the reference-assisted judge. These labels provide the step-level reference targets needed to evaluate region selection. The other 4444 failed plans (2222 from each environment) lack such a label and are excluded from this comparison. On this subset of 175175 failed plans, reference-assisted repair achieves task success with Diff-Plan (29.1%29.1\%) and AR-Plan (29.7%29.7\%), compared with Diff-Plan (24.2%24.2\%) and AR-Plan (24.7%24.7\%) on all 219219 primary failures. A stored failure-detector output is available for every included example, and abstentions remain in the denominator. Each failed plan permits one repair attempt. Both planners infill the selected region, and the repaired plan is executed from the taskâs initial environment state rather than resumed from the failure. The Qwen3-8B executor uses temperature 0.60.6 and top-p 0.950.95. Reported repair success is terminal task success after this repair-and-restart procedure. A.2 Complete primary results Table 1 reports success rates and evaluation denominators for generation and both repair protocols. Figure A.1 plots the generation and reference-assisted repair results. (a) Plan generationTerminal task success (%)020406080ALFWorld38.144.045.5TextCraft48.063.066.0(b) Reference-assisted repairTask success after repair (%)010203040ALFWorld28.427.7TextCraft15.518.3ReActDiff-PlanAR-Plan Figure A.1: Observed success in the two interactive benchmarks. (a) Task success after plan generation, on 134134 ALFWorld and 100100 TextCraft tasks. (b) Task success after reference-assisted repair, on 148148 and 7171 pooled failed plans. DiffusionâAR differences are at most three percentage points; higher is better. Table A.3: Paired outcomes. Generation compares the planners on the same test tasks. Reference-assisted repair compares them on pooled failed plans, which may include two plans from one task. Columns indicate which planners succeed. Plan generation Reference-assisted repair Environment both Diff-Plan only AR-Plan only neither both Diff-Plan only AR-Plan only neither ALFWorld 3636 2323 2525 5050 2424 1818 1717 8989 TextCraft 5050 1313 1616 2121 66 55 77 5353 A paired normal approximation based on tasks with different outcomes across planners gives 95%95\% confidence intervals of [â11.6,8.6][-11.6,8.6] and [â13.5,7.5][-13.5,7.5] percentage points for the diffusion-minus-AR generation difference on ALFWorld and TextCraft. These intervals describe held-out task variation conditional on the trained checkpoints and recorded execution outcomes. Repair examples are grouped by task, since a task may contribute a failed plan from each planner. Mean generation latency is lower for Diff-Plan (14.314.3 seconds on ALFWorld and 21.721.7 on TextCraft) than for AR-Plan (23.323.3 and 40.240.2 seconds, respectively). For reference-assisted repair, AR-Plan (7.67.6 seconds) is faster than Diff-Plan (9.59.5 seconds) on ALFWorld, while Diff-Plan (9.49.4 seconds) is faster than AR-Plan (13.813.8 seconds) on TextCraft. Measurements use synchronized, unbatched bf16 decoding on one A100 and exclude prompt construction, parsing, and environment execution. A.2.1 Shared and model-exclusive failures We compare the two generated plans on each primary test task, using the same Qwen3-8B executor and evaluation protocol as Table 1. A shared failure means both plans fail; a diffusion-only failure means the diffusion plan fails and the AR plan succeeds, and conversely for an AR-only failure. Of 134134 ALFWorld tasks, 5050 are shared failures, 2525 diffusion-only failures, and 2323 AR-only failures. The corresponding counts on 100100 TextCraft tasks are 2121, 1616, and 1313 (Table A.3). Shared difficulties and differences by task. Table A.4 breaks down ALFWorld outcomes by task family. Both planners fail on 12/1812/18 light-inspection tasks and 10/1710/17 two-object placement tasks, compared with 3/243/24 simple placement tasks. Their similar aggregate success rates also conceal differences across task families: cooling has more diffusion-only failures (99 versus 22), while cleaning has more AR-only failures (77 versus 33). These are descriptive comparisons on small task subsets, conditional on the evaluated checkpoints and executions. Table A.4: Paired ALFWorld generation failures by task family. Each task contributes to at most one failure column; tasks where both planners succeed are omitted from those columns but included in the total. Task family Tasks Both fail Only diffusion fails Only AR fails Light inspection 1818 1212 33 00 Simple placement 2424 33 22 55 Clean then place 3131 1212 33 77 Cool then place 2121 66 99 22 Heat then place 2323 77 44 66 Two-object placement 1717 1010 44 33 Total 134134 5050 2525 2323 Stopping reasons when only one planner fails. Table A.5 reports the executorâs recorded stopping reason on tasks where exactly one generated plan succeeds. Failure at a leaf step is the most frequent reason for both planners in both environments. The invalid-action limit also occurs frequently in ALFWorld (9/259/25 diffusion-only and 8/238/23 AR-only failures). Completing the plan without terminal success occurs in 4/254/25 diffusion-only ALFWorld failures and none of the 2323 AR-only failures; in TextCraft it occurs for both planners (3/163/16 and 1/131/13). Thus, these model-exclusive failed tasks mostly share stopping-reason categories. The labels describe how execution stops, and the stopping-reason breakdown covers tasks where exactly one planner succeeds. Table A.5: Stopping reasons on tasks failed by only one planner. Columns identify the failing planner; the other planner succeeds on each counted task. Counts cover every model-exclusive failure. ALFWorld TextCraft Recorded stopping reason Diffusion AR Diffusion AR Failure at a leaf step 1010 1313 1010 77 No-progress limit 22 22 22 33 Plan completed without terminal success 44 00 33 11 Invalid-action limit 99 88 11 22 Total 2525 2323 1616 1313 Failure locations across both planners. We analyze the 148148 ALFWorld and 7171 TextCraft failed executions from the primary generation evaluation. These diagnostics pool failures from both planners, so a task failed by both contributes two executions. A failing leaf step is identified in 106106 ALFWorld and 1414 TextCraft executions; the remaining 4242 and 5757 failures have no identified failing leaf step in this diagnostic. This coverage differs from the reference-assisted judgeâs repair-region annotations used in Table A.9. Table A.6: Where failed executions stop. Action and reference-comparison counts cover failures with an identified leaf step and describe the observed failure location. Diagnostic ALFWorld TextCraft All failed executions 148148 7171 Identified failing leaf step 106106 1414 Unidentified failing leaf step 4242 5757 Action at the identified failing leaf step take 8989 00 fetch 00 1212 goto 77 00 put 77 00 clean, cool, heat 11 each 00 craft 00 22 Identified failing leaf step compared with the reference Identical 103103 99 Different 22 55 Absent from the reference 11 00 Object acquisition accounts for 89/10689/106 identified failures in ALFWorld and 12/1412/14 in TextCraft. The failing leaf step matches the reference in 103/106103/106 and 9/149/14 cases. These counts describe agreement at the failing leaf step. The action distribution is conditional on identifying that step, covering 106/148106/148 ALFWorld and 14/7114/71 TextCraft failed executions. A.2.2 Worked repair and preservation Figure A.2 illustrates reference-assisted repair of an ALFWorld plan. The selected region includes a leaf step and its associated reasoning and intent fields; executable steps outside the region remain unchanged. ALFWorld: find two soapbar and put them in cabinetsg1.1 Place first soap bar in the cabinetsg1.1.step1goto countertopsg1.1.step2take soap barsg1.1.step3goto cabinetsg1.1.step4put soap bar in cabinetsg1.2 Place second soap bar in the cabinetsg1.2.step2take soap barsg1.2.step3goto cabinetsg1.2.step4put soap bar in cabinetsg1.1 Place first soap bar in the cabinetsg1.1.step1goto countertopsg1.1.step2take soap barsg1.1.step3goto cabinetsg1.1.step4put soap bar in cabinetsg1.2 Place second soap bar in the cabinetsg1.2.step2take soap barsg1.2.step3goto cabinetsg1.2.step4put soap bar in cabinetsg1.2.step1goto countertopsg1.2.step1goto toiletThe first four steps completed before the failure.All seven other leaf steps remain unmasked. (c) Execution history After placing the first soap bar, the executor revisits countertop 1. No soap bar remains. Repeated navigation returns Nothing happens. (d) Judge-selected region sg1.2.step1, plus the [THINK] block and three [SG_INTENT] fields. The judge can inspect a reference plan. Unselected text is fixed. (e) Repair outcome The executor visits toilet 1, observes soapbar 2, takes it, and puts it in cabinet 1. Terminal task success Repaired leaf step: sg1.2.step1 [ACTION] goto [/ACTION] [ARGS] toilet [/ARGS] [EXPECTED_OBS] agent is at or facing toilet [/EXPECTED_OBS] The action is regenerated identically; the location and corresponding expectation change. Figure A.2: Plan repair in ALFWorld. In this training example, a reference-assisted judge selects one leaf step, the reasoning block, and three intent fields for regeneration. Infilling changes countertop to toilet and updates the expected observation. The other seven leaf steps remain fixed. The repaired plan succeeds. We analyze 104104 ALFWorld and 3838 TextCraft failed executions with at least one completed step. Figure 3(a) reports the pooled fraction of executor tokens consumed before failure: 56%56\% on ALFWorld and 82%82\% on TextCraft. After reference-assisted repair, the fractions of diffusion and AR plans that parse and preserve every completed step unchanged are 40%40\% and 38%38\% on ALFWorld, and 55%55\% and 74%74\% on TextCraft (Figure 3(b)). These are measurements of plan-text preservation; repaired plans are executed from the initial state. The fraction of repairs that parse and preserve completed steps is higher for AR on TextCraft and similar across planners on ALFWorld. Executor tokens (%)05010056%82%ALFWorldTextCraftBoth planners (a) Executor tokens before failure. Repaired plans (%)05010040%38%55%74%ALFWorldTextCraftDiff-PlanAR-Plan (b) Preservation of completed steps. Figure A.3: Interaction before failure and preservation after repair. We analyze 104104 ALFWorld and 3838 TextCraft failed executions with at least one completed step. Plans come from both planners and use the Qwen3-8B executor. (a) Pooled fraction of executor tokens consumed before the recorded failure point. (b) Fraction of plans after reference-assisted repair that parse and preserve every completed step, shown separately for each planner. Preservation compares completed-step text before and after repair; repaired plans are executed from the initial state. A.3 Sensitivity analyses A.3.1 Representation and executor Alternative plan representation. We retrain both planners in each environment using an alternative structured plan representation with phase headings and numbered prose steps in place of structural delimiters. We refer to these two structured formats as prose and delimited plans, respectively. Task goals, executable fields, task splits, and model-specific decoding methods remain unchanged. For each representation, Qwen3-8B and Claude Sonnet 5 execute the same stored plans on the same tasks with the same budgets. Table A.7: Generation under two representations and executors. Entries are task success rates. Within each representation, both executors receive identical stored plan text. Qwen3-8B executor Sonnet 5 executor Environment Planner Delimited Prose Delimited Prose ALFWorld Diff-Plan 44.0%44.0\% 61.9%61.9\% 96.3%96.3\% 95.5%95.5\% AR-Plan 45.5%45.5\% 67.9%67.9\% 94.8%94.8\% 94.8%94.8\% TextCraft Diff-Plan 63.0%63.0\% 69.0%69.0\% 94.0%94.0\% 94.0%94.0\% AR-Plan 66.0%66.0\% 78.0%78.0\% 94.0%94.0\% 96.0%96.0\% With Qwen3-8B, prose plans improve task success in both environments (Table A.7). The increase on ALFWorld is from 44.0%44.0\% to 61.9%61.9\% for Diff-Plan and from 45.5%45.5\% to 67.9%67.9\% for AR-Plan. Holding plan text fixed, Sonnet 5 achieves higher success than Qwen3-8B for both planners and representations, showing that executor choice also affects task success. For reference-assisted repair of prose plans, we evaluate only failures for which the judge selects a usable repair region. This subset differs from the primary repair population, which retains failures without a selected region. Table A.8 reports counts before and after selection. As in the primary evaluation, a task failed by both planners contributes two distinct failed plans. Table A.8: Reference-assisted repair of prose plans. âFailuresâ gives counts from Diff-Plan and AR-Plan, in that order; âEligibleâ counts plans with a selected repair region. Both planners receive the same failed plans and regions. Repair entries report task success after repair and restart. Environment Executor Failures Eligible Diff-Plan repair AR-Plan repair ALFWorld Qwen3-8B 51+43=9451+43=94 46+43=8946+43=89 19/89â(21.3%)19/89\;(21.3\%) 49/89â(55.1%)49/89\;(55.1\%) TextCraft Qwen3-8B 31+22=5331+22=53 14+6=2014+6=20 1/20â(5.0%)1/20\;(5.0\%) 6/20â(30.0%)6/20\;(30.0\%) ALFWorld Sonnet 5 6+7=136+7=13 1313 4/13â(30.8%)4/13\;(30.8\%) 6/13â(46.2%)6/13\;(46.2\%) TextCraft Sonnet 5 6+4=106+4=10 55 2/5â(40.0%)2/5\;(40.0\%) 1/5â(20.0%)1/5\;(20.0\%) With Qwen3-8B, AR-Plan achieves higher prose-plan repair success in both environments. With Sonnet 5, the ordering differs across environments, although the TextCraft comparison includes only five failed plans. Repair outcomes depend on both representation and executor. A.3.2 Repair from execution history We prompt the Qwen3-8B executor separately to act as the history-based failure detector. It receives the goal, current plan, execution history, and environment feedback, without a reference plan. In one call, it selects one or more step identifiers and supplies repair feedback, or abstains. For this comparison, repair feedback is held fixed across selection methods. Section A.1 defines the evaluated subset. Table A.9: Repair under reference-assisted and history-based region selection. Entries are task success rates after repair. Paired columns use the same failed plans and repair feedback; abstentions remain in the history-based denominator. Diff-Plan AR-Plan Environment Reference-assisted History-based Reference-assisted History-based ALFWorld (n=126n=126) 31.7%31.7\% 14.3%14.3\% 32.5%32.5\% 17.5%17.5\% TextCraft (n=49n=49) 22.4%22.4\% 24.5%24.5\% 22.4%22.4\% 30.6%30.6\% Pooled (n=175n=175) 29.1%29.1\% 17.1%17.1\% 29.7%29.7\% 21.1%21.1\% Relative to reference-assisted selection, history-based selection lowers repair success on ALFWorld and increases it on TextCraft for both planners. A.3.3 Natural Plan generation and repair (a) Complete-plan generationAcceptance (%); 1,000 tasks020406080100Validator33.048.6GPT-5 judge20.234.0Sonnet 5 judge31.846.1(b) Plan repair (supplied regions)Acceptance (%); 2,661 repair examples020406080100Validator53.727.0GPT-5 judge72.942.1Sonnet 5 judge81.653.4Diff-PlanAR-Plan Figure A.4: Plan generation and repair on Natural Plan. Both models are evaluated without task-specific fine-tuning. Generation uses 1,0001,000 tasks; repair infills supplied regions in 2,6612,661 examples from 696696 tasks. Bars show acceptance rates under the benchmark validator and two language-model judges. Section A.3.3 gives the filtering protocol and complete results. We evaluate Dream-org/DreamReasoner-8B and Qwen/Qwen3-8B without task-specific fine-tuning. Generation uses 1,0001,000 tasks with reference plans that pass the benchmark validators, comprising 400400 trip-planning, 300300 meeting-scheduling, and 300300 calendar-scheduling tasks. Reasoning is disabled for both checkpoints; Diff-Plan uses block size 44 for generation and 256256 for repair. Each planner receives the benchmarkâs prompt_5shot field, containing the task instruction, five released demonstrations, the test task, and the final SOLUTION: prefix. For repair, we blank one or two regions of the reference plan, which follows the benchmarkâs structured natural-language format. Both planners receive the same preserved prefix, suffix, repair feedback, and approximate replacement length, and decode only the missing text. We construct five repair candidates per reference plan. Three constructions remove a single region, either a random step, a phrase within a step, or a constraint-determined value. The other two remove a pair of regions, either mutually constrained regions or regions in different parts of the plan. We exclude candidates whose target text occurs verbatim in the visible plan or prompt. Of the 5,0005,000 candidates, we retain 2,6612,661 for which restoring the reference text passes the validator and filling every blank with a fixed nonsensical string fails. This invalid-replacement control therefore has 0%0\% acceptance on the retained examples by construction. A separate do-nothing control removes all blank markers without inserting text. Its validator acceptance falls from 46.3%46.3\% on all candidates to 1.3%1.3\% on the retained examples. All repair results below use the retained population. The benchmark validator checks each completed plan directly, without an executor. Two LLM judges also assess completed plans, receiving only the task and candidate plan, without the reference plan or validator output (Section A.4.3). For repair, we additionally report exact replacement recovery, which requires all replacements to match the reference text after Unicode normalization, whitespace collapse, and removal of leading and trailing punctuation. Table 2 reports validator and judge acceptance. Exact replacement recovery is 22.7%22.7\% for Diff-Plan and 5.0%5.0\% for AR-Plan. Table A.10: Natural Plan repair by domain and construction. Entries are validator acceptance rates on the 2,6612,661 retained examples. Calendar references contain only a few words specifying a meeting day and time; no calendar candidates pass the repair filters, so this domain is evaluated only for generation. Domain n Diff-Plan AR-Plan Trip planning 1,2611,261 93.3%93.3\% 35.7%35.7\% Meeting scheduling 1,4001,400 18.1%18.1\% 19.2%19.2\% Calendar scheduling 00 â â Construction n Diff-Plan AR-Plan Random step 545545 52.7%52.7\% 40.7%40.7\% Random word span 491491 65.0%65.0\% 28.5%28.5\% Constraint assignment 482482 69.5%69.5\% 47.9%47.9\% Causally linked regions 541541 34.2%34.2\% 0.7%0.7\% Compound nonlocal regions 602602 50.5%50.5\% 20.3%20.3\% The validator and judges agree on the model ordering within each operation, despite their different acceptance criteria and absolute success rates. The aggregate repair advantage is concentrated in trip planning, while Diff-Plan has higher validator acceptance under each of the five constructions. A percentile bootstrap with 50,00050,000 resamples clustered by the 696696 retained source tasks gives a 95%95\% interval of [23.8,29.6][23.8,29.6] percentage points for the aggregate Diff-Plan-minus-AR-Plan difference. Each resample draws source tasks with replacement and includes all their repair examples. Natural Plan: reconstruct one constraint-determined phrase Task. Visit 4 European cities in 17 days on direct flights: Stockholm 2 days (conference days 1â2), Dubrovnik 7 days, Vienna 5 days, Mykonos 6 days (friends there days 12â17). Direct flights: DubrovnikâVienna, StockholmâVienna, ViennaâMykonos, StockholmâDubrovnik. Repair feedback. A short phrase inside one step states a value that the taskâs constraints do not permit. Plan supplied to both planners. One region is blanked; the remainder is stated correct. Day 1-2: Arriving in Stockholm and visit Stockholm for 2 days. Day 2: Fly from Stockholm to Dubrovnik. Day 2-8: Visit Dubrovnik for 7 days. Day 8: Fly from Dubrovnik to Vienna. Day 8-12: Visit Vienna for 5 days. Mykonos. (about 30 characters, 6 words) Day 12-17: Visit Mykonos for 6 days. Diff-Plan: exact replacement Day 12: Fly from Vienna to The inserted phrase joins the preserved word Mykonos. to form the required flight. AR-Plan: incorrect replacement Day 12-17: Visit Mykonos for 6 days. The inserted phrase repeats the following line and leaves an extra Mykonos. Figure A.5: An example of plan repair on Natural Plan. Both planners receive the same task, repair feedback, preserved prefix and suffix, and approximate replacement length. The blank is the prefix of a line, so its replacement must join the preserved suffix. The diffusion output restores the reference phrase; the AR output repeats the following line. This example illustrates the within-task comparison in Figure A.4. A.3.4 Long-horizon generation in ScienceWorld The ScienceWorld checkpoints are trained separately on simulator-provided reference plans (Wang et al., 2022). These references average 27.127.1 leaf steps, compared with 5.85.8 for ALFWorld and 9.89.8 for TextCraft. We evaluate 825825 held-out generations per planner and group them by reference-plan length. 25%50%75%100%parser acceptance2â78â1112â1516â2021â2728â4546+reference-plan length (leaf steps)Diff-PlanAR-Plan Figure A.6: ScienceWorld parser acceptance by reference-plan length. Rates are computed over 825825 held-out generations per planner. Acceptance for Diff-Plan falls from 74.7%74.7\% in the shortest bin to 77â9%9\% at 2828 or more reference steps, with pooled parser acceptance of 34.3%34.3\% for Diff-Plan and 73.8%73.8\% for AR-Plan. Of 758758 rejected generations across both planners, 754754 reach the generation limit without closing the plan hierarchy; the remaining four omit a subgoal body. Rejected outputs also contain repeated actions, with a median duplicated actionâargument fraction of 93.3%93.3\% for Diff-Plan and 40.0%40.0\% for AR-Plan. Among parser-rejected plans, the dominant failure is incomplete serialization, accompanied by extensive repetition, especially for diffusion. For a nonempty plan with H leaf steps, let (uâ,aâ)(u_ ,a_ ) denote the actionâargument pair at step ââ[H] â[H] after flattening the hierarchy. The duplicated fraction is |ââ[H]:âkâ[H]ââ,(uk,ak)=(uâ,aâ)|H. | \ â[H]:\ â kâ[H] \ \,\ (u_k,a_k)=(u_ ,a_ ) \ |H. This counts every occurrence of a repeated pair, including its first occurrence. A.4 Implementation details and prompts A.4.1 Training and decoding On ALFWorld and TextCraft, we fully fine-tune the checkpoints specified in Section 5.1 with AdamW and bf16 weights. Each environment-specific checkpoint is trained jointly on generation and repair, with both objectives present in a single run. An epoch visits each generation and repair example once. We use one training seed (4242); reported evaluation uncertainty does not include variation across training seeds. Activation checkpointing and Fully Sharded Data Parallel (FSDP) with full sharding and CPU parameter offloading support full fine-tuning. The planners share task splits, training examples, and evaluation interfaces (Table A.11). Native reasoning mode is disabled for both planners. The planâs [THINK] field remains part of the supervised structured output. For diffusion decoding, Ρ is the base confidence threshold. Repair uses DreamReasonerâs RelaxedConfidence procedure (Wu et al., 2026c), with threshold floor Ρmin _ , neighbour-support cutoff Îş, and neighbourhood radius r. Table A.11: ALFWorld and TextCraft training and decoding settings. Block weights follow the listed block-size order. Setting Plan generation Plan repair Training endpoint Convergence of development-set performance Learning rate 10â510^-5 10â510^-5 Batch Ă gradient accumulation 1Ă161Ă 16 1Ă161Ă 16 Learning-rate warmup 5%5\% of optimization steps Maximum sequence length 4,0964,096 tokens at training and inference Diff-Plan block sizes 4,8,16,32,64,4,8,16,32,64, 128,256,512,1024128,256,512,1024 32,64,128,256,2048,409632,64,128,256,2048,4096 Diff-Plan block weights (24,20,16,12,8,6,5,4,3)(24,20,16,12,8,6,5,4,3) (2,3,4,6,10,24)(2,3,4,6,10,24) Diff-Plan inference Block-wise denoising, b=4b=4, Ρ=0.95Ρ=0.95 Full-canvas infilling, Ρ=0.95Ρ=0.95, Ρmin=Îş=0.7 _ =Îş=0.7, r=4r=4 AR-Plan inference Left-to-right with keyâvalue cache Left-to-right replacement generation using FIM serialization Executor Qwen3-8B, temperature 0.60.6, top-p 0.950.95, one environment action per call Diffusion repair allocates 2â|R|2|R| positions in total across the selected spans. Each span has its own padding, and its replacement ends before the first [delete] token in its canvas segment. Across environment-specific settings, a diffusion repair forward pass commits 7.77.7â18.318.3 tokens; the AR decoder generates one token per forward pass using a keyâvalue cache. A.4.2 Executor behavior The primary executor is Qwen3-8B without task-specific fine-tuning. Each execution call receives the goal, current observation, complete plan, execution history, and action grammar, and generates one environment action. The executor strictly follows the planned actions and arguments in leaf-step order. Execution stops on success, environment failure, an invalid-action or no-progress limit, 6060 planned leaf steps, or 1,0001,000 episode tokens. Parser rejection and execution ending without task success count as failure. The executor comparison uses Claude Sonnet 5 (us.anthropic.claude-sonnet-5) with the same inputs and budgets and default model settings. A.4.3 Plan representation and prompts The following templates use the structured plan representation in Definition 1. Environment-specific system instructions define the available actions and required fields, delimiters, and nesting. The trained planners receive no demonstrations. Repair feedback and region selection follow Section 4.1. Generation. System: Return one complete hierarchical plan for <environment> in the supplied schema. Each leaf contains an action, arguments, and expected observation. User: Goal: <task goal> Initial observation: <observation> Available actions: <action grammar> Return only the structured plan. Repair. The plan below failed for the same goal. Selected region: <identifier>; Reason: <failure-detector explanation> Expected: <plan prediction>; Observed: <environment observation> Plan: <prefix> <editable region> <suffix> Return only corrected content for the editable region; preserve all other text. History-based failure detector. In this prompt, âexecution traceâ denotes execution history, and âFailure feedbackâ denotes environment feedback. System: Given a goal, structured plan, and execution trace, select the smallest set of exact step identifiers inconsistent with the observed feedback. Do not repair; abstain if the trace identifies no defective step. User: Goal: <task goal>; Current plan: <structured plan with step identifiers> Execution history: <ordered actions, expected observations, and observed outcomes>; Failure feedback: <latest environment observation> Return exactly: REPLAN_NEEDED: <yes or no>; STEP_IDS: <comma-separated step identifiers; empty if no>; REASON: <brief explanation grounded only in the execution trace>. Natural Plan judges. We query GPT-5 (gpt-5) with medium reasoning effort and Claude Sonnet 5 (us.anthropic.claude-sonnet-5) with default model settings, once per candidate, using the following prompt. System: Check the candidate plan against every task requirement step by step. Return accurate only if it is feasible and satisfies all constraints. Do not use or infer a reference answer. User: TASK: <task requirements>; CANDIDATE PLAN: <completed plan> Return exactly: REASON: <brief explanation>; ACCURATE: <0 or 1>.