Manuscript Offprint
arXiv:2610.24717DiffuPlan: Editable Planning State for Diffusion Language Model Agents
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Diffusion language models (dLLMs) are emerging as an alternative to autoregressive (AR) language models, yet dLLM agents largely inherit an interaction protocol designed for AR generation: once intermediate state is written, later observations can only be incorporated by appending more text. This is a poor match to a defining capability of dLLMs—reconstructing earlier text conditioned on context that appears both before and after it. We ask whether this capability can support a different agent-state paradigm in which intermediate planning state is directly revisable as evidence arrives. We introduce DIFFUPLAN, a diffusion search agent that maintains a single editable planning state and reconstructs only the affected steps when later evidence resolves an entity or changes the search route. To support variable-length revisions, we introduce Expansion-Partition Marginalization (EPM), which marginalizes over equivalent expansion paths. We further adapt diffusion trajectory RL to multi-turn search. Across four multi-hop QA benchmarks, DIFFUPLAN achieves 50.24 average F1, outperforming strong AR search agents. More importantly, under identical data and training, editable planning state improves the diffusion agent by 2.44 F1 versus only 0.47 for its AR source model. These results show that dLLMs need not imitate append-only AR agents: revising committed state is a distinct agentic advantage.
1 Introduction
Language agents act over multiple turns, continually forming and revising intermediate hypotheses, subgoals, and plans as new observations arrive. Yet the textual state of most agents is effectively append-only: once a model writes an intermediate decision, later evidence does not change that text; instead, the agent expresses the revision by generating additional text. This interaction pattern is natural for autoregressive (AR) language models, which generate a continuation conditioned on a fixed prefix. It is not obviously natural for diffusion language models (dLLMs).
dLLMs provide a different computational primitive. Rather than committing every token strictly left-to-right, masked and block-diffusion language models can reconstruct selected positions from surrounding context (Nie et al., 2025; Ye et al., 2025; Arriola et al., 2025; Bie et al., 2025). This raises a basic question for agent design: should a diffusion agent inherit the same append-only state paradigm as an AR agent, or should its intermediate state itself remain editable?
Existing dLLM agents largely follow the former design. They retain ReAct-style, append-only interaction histories (Yao et al., 2023) and use diffusion primarily to accelerate or restructure forward generation—for example, by issuing tool calls from partially denoised states or overlapping reasoning with tool execution (Zhao et al., 2026; Jünger et al., 2026). Under such an interaction, the distinctive reconstruction capability of dLLMs is not used to revise agent state across turns. In our controlled setting, this mismatch is visible empirically: with the same training data and post-training recipe, a search agent built on LLaDA2.0-mini reaches 47.80 average F1 under append-only plan revision, below 49.54 for Ling-mini-2.0 (Ling Team, 2025), the AR model from which LLaDA2.0-mini was converted (Bie et al., 2025).
Multi-hop search provides a natural testbed for studying this mismatch. During search, later evidence routinely changes state formed earlier: a retrieved passage can resolve an entity referenced by a pending subquestion, add constraints that make a query more specific, or invalidate the planned search route. Making this state explicit and revisable helps even without training: on our validation
Corresponding author.
Code is available at https://github.com/Jaasssoooonnnnn/DiffuPlan.
set, prompting the untrained LLaDA2.0-mini yields 26.53 F1 without a plan, 28.61 with an initial plan, and 29.26 when the plan is revised as evidence arrives. Existing agents can represent such changes, but typically by appending another rationale or a regenerated plan (Luo et al., 2026). Consequently, multiple versions of the same intermediate state may coexist in the interaction history. In contrast, a diffusion agent could maintain a single current state and revise the affected content where it was originally written, using later evidence as conditioning context.
We introduce DIFFUPLAN, a diffusion search agent with an editable planning state. The plan is treated not merely as another piece of historical text, but as a persistent state variable that should reflect the agent's current search strategy. When later evidence resolves an intermediate answer or changes the route, the agent requests an edit and reconstructs only the affected plan span conditioned on the preserved plan and the subsequent interaction. This turns cross-turn state revision into a native reconstruction problem for the dLLM.
Making this idea trainable raises two central technical challenges. First, one shared model must support two different computation patterns: forward action generation should remain block-causal, whereas state revision must condition on later evidence. We therefore use a block-causal Action Mode and a full-canvas Edit Mode with shared parameters. Second, revisions are often variable-length. Dynamic expansion allows an editable mask to grow, but the same target replacement may be realized by many equally valid expansion paths. We introduce Expansion-Partition Marginalization (EPM), which marginalizes over these paths and supervises the final edit rather than an arbitrary expansion trajectory. SFT teaches action generation and state reconstruction jointly, and we further optimize search decisions from end-task reward with Multi-turn Diffusion Search with Anchored Stabilization (MDSAS), which extends TraceRL (Wang et al., 2026) to multi-turn search and stabilizes training with a frozen SFT anchor.
The central empirical question is not merely whether editable plans improve QA, but whether they provide a diffusion-specific advantage. Our controlled comparison varies both backbone (diffusion vs. its AR source model) and state protocol (editable vs. append-only) under matched data and training. Editable state improves the dLLM by 2.44 F1, compared with only 0.47 F1 for the AR model, while reducing generated tokens for both. Moreover, the diffusion gain is mechanism-aligned: it is only 0.20 F1 when no edit is requested, but rises to 4.63 F1 with multiple updates and 7.12 F1 when replanning is required.
Our contributions are threefold:
• We identify a mismatch between the append-only state paradigm inherited from AR agents and the cross-context reconstruction capability of dLLMs, and formulate editable planning state as a diffusion-native alternative for multi-turn agents.
• We introduce DIFFUPLAN, which realizes cross-turn state revision with shared Action/Edit modes and learns variable-length edits with EPM, marginalizing over equivalent expansion paths.
• We show through matched backbone–protocol comparisons that editable state benefits the diffusion agent substantially more than its AR counterpart, with gains increasing as more revision is required, while DIFFUPLAN also achieves the best average F1 among the evaluated search agents.
edited plan step superseded plan version written in an earlier turn
(a) Implicit reasoning trace

(b) Appended plan versions
(c) DiffuPlan: editable state
Figure 1: Three ways to represent evolving search state. (a) An implicit reasoning trace scatters intermediate state across appended thoughts and actions. (b) An explicit planner appends a regenerated plan after each revision, so superseded versions remain in the context. (c) DIFFUPLAN maintains one planning state and reconstructs only the affected steps in place using evidence retrieved later. Green marks revised content. The reported numbers compare DIFFUPLAN with an append-only diffusion agent trained with the same data and post-training recipe (Section 5.1).
Diffusion language models and text revision. Masked and block-diffusion language models generate by iterative denoising rather than strictly token-by-token continuation (Nie et al., 2025; Ye et al., 2025; Arriola et al., 2025; Cheng et al., 2025; Bie et al., 2025). This makes reconstruction and editing natural operations. DreamOn introduces expansion and deletion states for variable-length infilling, while LLaDA2.1 revises previously committed tokens during block-diffusion generation (Wu et al., 2026; Bie et al., 2026). These works revise text within a single generation. Our setting is different: an agent first commits a state, interacts with an external environment, receives new evidence in later turns, and then revises the earlier state conditioned on that evidence. We study this cross-turn revision as an agent-state primitive.
Diffusion language models for agents and post-training. Recent work begins to adapt dLLMs to tool use and search. DLLM-Searcher combines SFT and preference optimization with P-ReAct, using partially denoised states to trigger retrieval early (Zhao et al., 2026), while SARDI forms retrieval queries from tentative denoising states (Jünger et al., 2026). TraceRL optimizes denoising trajectories with reinforcement learning (Wang et al., 2026). These methods exploit diffusion during forward response generation, but the interaction history itself remains append-only. DIFFUPLAN is complementary: its central question is whether diffusion reconstruction can be used to revise agent state that was written in an earlier turn.
3 DiffuPlan
DIFFUPLAN treats planning as a mutable state-transition process. Let denote the interaction history available at turn and let denote the agent's current planning state, represented by a single plan embedded at a fixed location in that history. Standard append-only agents leave earlier plan text unchanged and express a revision by generating another version later in the sequence. DIFFUPLAN instead maintains the invariant that is the unique current plan: later evidence may trigger a state transition that replaces only the affected span at its original position. The same dLLM implements both forward interaction and state reconstruction through two attention modes (Figure 2).
3.1 Editable Planning State
Planning state and actions. The initial plan decomposes a question into indexed subquestions #Q_i. A future step may refer to an unresolved intermediate answer through #A_i. At each turn, Action Mode generates reasoning followed by one of four terminal actions: search retrieves evidence, update binds a resolved intermediate answer into the plan, replan revises upcoming steps, and answer terminates the interaction. The two edit operations, update and replan, change the planning state rather than append a second plan.
Formally, given question q and history , Action Mode generates the next segment block by
(a) Editable planning state in search (b) Edit Mode [Question] Which 2009 film features an actor that also starred in Bad Samaritan? [Search] Bad Samaritan film cast [Evidence] Bad Samaritan stars David Tennant and Robert Sheehan , with Carlito … [Reason] The evidence names the cast. update #A_1 Turn 1 [Plan] #Q_1 Who are the main actors in Bad Samaritan? #Q_2 Which 2009 film features #A_1 ? P1 [Question] Which 2009 film features an actor that also starred in … turn 1: search · evidence · update [Search] 2009 film starring David Tennant or Robert Sheehan [Evidence] Robert Sheehan appeared with Rupert Grint in an unnamed 2009 film set in Belfast ; the text omits its title. [Reason] The title is missing. replan #Q_2 Turn 2 · after update [Plan] #Q_1 Who are the main actors in Bad Samaritan? #Q_2 Which 2009 film features David Tennant or Robert Sheehan ? P2 [Question] Which 2009 film features an actor that also starred in … turns 1–2: searches · evidence · edits [Search] 2009 film starring Robert Sheehan and Rupert Grint set in Belfast [Evidence] Cherrybomb is a 2009 British drama starring Rupert Grint and … [Answer] Cherrybomb Turn 3 · after replan [Plan] #Q_1 Who are the main actors in Bad Samaritan? #Q_2 What is the title of the 2009 film starring Robert Sheehan and Rupert Grint set in Belfast? P3 selected for editing edited evidence used Edit Mode update #A_1 Edit Mode replan #Q_2 Two attention masks noisy clean Action Mode block-causal Mact canvas Edit Mode full canvas Medit θ shared Condition on later evidence q plan search evidence masked span in the canvas Xt Fill a token or <EXPAND> one mask for #A_1 <EXPAND> → two masks David fill, expand again ⋮ David Tennant or Robert Sheehan The span grows as needed and is committed at its original position. Expansion is learned with EPM (c). (c) Post-training θ0 Joint SFT teacher traces → two record types Action record next segment, Mact Edit record masked plan span, Medit EPM y1 y2 y3 y4 y1 y2 y3 y4 y1 y2 y3 y4 average over all splits θSFT Multi-turn Diffusion Search with Anchored Stabilization (MDSAS) τ1 r1 τ2 r2 τG rG Âg answer F1, group-normalized PPO + KL on each slice commit steps → slices (s = 2) step 1 3 2 4 6 5 xg,1 xg,2 y1 y3 xg,3 y1 y2 y3 y4 decoded target masked θ commit in place commit in place Figure 2: DIFFUPLAN runtime and training. (a) Action Mode searches and requests an update or replan; Edit Mode then reconstructs the selected earlier plan span using the evidence retrieved after it and commits the revision at the same position. (b) The shared dLLM uses block-causal attention Mact for forward action generation and full-canvas attention Medit for cross-turn state reconstruction. (c) Joint SFT trains both views. Dynamic expansion supports variable-length edits, while EPM marginalizes over equivalent expansion paths. Multi-turn Diffusion Search with Anchored Stabilization (MDSAS) then optimizes multi-turn Action-Mode decisions while regularizing toward the frozen SFT policy. block under block-causal attention Mact: zt ∼ π act θ (· | q, Ht ; Mact), (at , ut) = terminal(zt), (1) where at ∈ {search, update, replan, answer} and ut is its payload. A search appends a retrieved observation to the environment history. An update or replan instead hands control to Edit Mode before the next Action-Mode segment is generated. Cross-turn state reconstruction. The key asymmetry is temporal: the plan span to be revised appears before the evidence that motivates its revision. Controller Γ maps an edit request (at , ut) to one or more editable spans in Pt . Edit Mode forms a full canvas Xt containing the original plan, subsequent actions and observations, and the triggering edit request, then masks only the selected plan content. Under full-canvas attention Medit , the masked span can condition simultaneously on preserved plan context and on evidence that arrived later. The reconstructed text is committed at the original location, yielding the new state Pt+1 while leaving unselected state and the surrounding interaction unchanged. For a replan that opens the suffix beginning at a selected step, write Pt = P keep t ⊕ P open t . Edit Mode reconstructs Pbopen t and commits Pt+1 = P keep t ⊕ Pbopen t . (2) An update is a localized special case: the selected answer marker is reconstructed with its resolved value, which is then propagated to identical 4 unresolved references in the plan. Appendix A gives the complete execution loop and Appendix B specifies localization and commit semantics.
Dynamic expansion. State revisions need not preserve length. A placeholder may expand into a multi-token entity name, and replanning may replace a short subquestion with a more specific or longer continuation. We therefore allow an editable mask either to emit a token or to emit , which replaces that mask with two masks carrying the same owner label. Repeated fill-or-expand operations support length-preserving and length-growing edits without reserving a fixed-size canvas.
3.2 Learning Variable-Length State Revision
Joint SFT teaches two complementary behaviors from the same teacher trajectories. An action record supervises the next Action-Mode segment given the current interaction history. An edit record supervises the desired replacement given a masked earlier plan, the later evidence, and the triggering edit request. The two record types share parameters but use the attention pattern of their corresponding runtime mode.
Why expansion creates ambiguous supervision. Dynamic expansion introduces a latent-path problem. Suppose two active masks must reconstruct four target tokens . The target edit is unique, but the four tokens can be allocated to the two masks as , , or . These allocations imply different immediate labels—for example, versus —even though they can lead to exactly the same final replacement. Standard single-path cross-entropy chooses one allocation as the target and therefore penalizes other valid expansion decisions.
Expansion-Partition Marginalization. EPM removes this arbitrary choice by marginalizing over all valid allocations. Let be the contiguous unresolved components of edit record . Component has target sequence of length , active masks, and , the set of positive -part compositions of . For a composition , mask is supervised with the corresponding target token when and with otherwise. Let be the full canvas at the current editing step, in which some target tokens of component may already be resolved, and let index its active masks. The edit objective is
(3)
Thus EPM supervises the replacement rather than an arbitrary expansion trajectory. Appendix D gives a complete example and an dynamic program for the marginal.
Joint SFT. The Action-Mode objective is the standard denoising loss over corrupted positions in the newly generated segment. We optimize action and edit records jointly:
where the training multiset contains action and edit records with the multiplicities given in Appendix F. SFT therefore learns how to produce executable actions and how to realize a requested state revision.
3.3 Optimizing Multi-Turn Search Decisions
SFT imitates teacher actions along teacher trajectories, but the agent must also learn when to search, update, replan, or answer under its own rollouts. We therefore further optimize these decisions with MDSAS, which adapts TraceRL (Wang et al., 2026) from single-response diffusion generation to multi-turn search. Importantly, this stage optimizes Action-Mode decisions; Edit-Mode reconstruction remains supervised by SFT.
For each question with answer aliases , we sample complete trajectories . The terminal reward is answer F1 multiplied by a format-validity gate and is normalized within each question group to obtain a trajectory-level advantage. As in TraceRL, rollout records the denoising step at which each Action-Mode token is committed. We group every few commit steps of a block into a slice , and evaluate the tokens committed in each slice given the tokens committed before it. The resulting clipped policy-gradient objective is denoted ; full details are given in Appendix C.4.
Frozen-reference stabilization. Multi-turn agent RL introduces a failure mode not addressed by a moving old-policy reference: once all rollouts
Table 1: End-to-end QA performance (%) on four multi-hop benchmarks. Each dataset reports token F1 and LLM-as-Judge accuracy (); Avg. is the unweighted mean across the four datasets. Bold marks the best score in each column.
| System | HotpotQA | 2Wiki | MuSiQue | Bamboogle | Avg. | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| F1 | F1 | F1 | F1 | F1 | ||||||
| Inference-only methods | ||||||||||
| Direct | 25.72 | 29.20 | 29.04 | 28.80 | 11.26 | 15.60 | 21.51 | 20.80 | 21.88 | 23.60 |
| CoT | 21.95 | 26.40 | 32.55 | 31.40 | 11.70 | 11.20 | 40.88 | 40.80 | 26.77 | 27.45 |
| Standard RAG | 39.30 | 46.40 | 31.96 | 30.60 | 10.60 | 11.40 | 25.06 | 29.60 | 26.73 | 29.50 |
| SuRe | 37.68 | 45.60 | 26.90 | 27.60 | 12.15 | 12.40 | 29.44 | 35.20 | 26.54 | 30.20 |
| Selective-Context | 35.38 | 42.80 | 28.82 | 28.40 | 11.15 | 11.40 | 27.09 | 32.80 | 25.61 | 28.85 |
| Iter-RetGen | 42.98 | 52.00 | 28.66 | 29.80 | 13.38 | 14.80 | 37.56 | 43.20 | 30.65 | 34.95 |
| IRCoT | 46.45 | 54.40 | 37.56 | 37.60 | 18.68 | 19.60 | 36.83 | 38.40 | 34.88 | 37.50 |
| Autoregressive agents | ||||||||||
| Search-o1 | 43.29 | 55.40 | 36.90 | 37.80 | 21.78 | 27.00 | 57.16 | 64.80 | 39.78 | 46.25 |
| Search-R1 | 47.26 | 52.40 | 27.90 | 28.40 | 18.22 | 20.60 | 47.93 | 49.60 | 35.33 | 37.75 |
| R1-Searcher | 53.94 | 62.80 | 52.50 | 52.40 | 30.88 | 32.00 | 57.53 | 63.20 | 48.71 | 52.60 |
| Diffusion agents | ||||||||||
| DLLM-Searcher | 7.18 | 48.60 | 9.68 | 36.20 | 4.91 | 18.60 | 7.25 | 43.20 | 7.25 | 36.65 |
| DIFFUPLAN | 55.34 | 65.00 | 55.03 | 56.00 | 31.72 | 34.60 | 58.86 | 65.60 | 50.24 | 55.30 |
in a group become structurally invalid, their rewards have no variance and the policy receives no signal that restores the executable action format. As in KL-regularized RL fine-tuning (Ouyang et al., 2022; Shao et al., 2024), we therefore regularize every rollout slice toward the frozen SFT policy . Let
and . The final objective is
The anchor is a training stabilization mechanism rather than the core state-revision contribution; Section 5.4 quantifies its effect.
4 Experiments
Our experiments answer four questions: RQ1: Does DIFFUPLAN provide competitive end-to-end multi-hop search performance? RQ2: Does editable planning state benefit a diffusion backbone more than an otherwise matched AR backbone? RQ3: Does the benefit increase on examples that require more state revision, as predicted by our hypothesis? RQ4: Are EPM, dynamic expansion, and the frozen SFT anchor necessary for learning and optimizing the editable-state agent?
4.1 Experimental Setup
Benchmarks. We evaluate on four open-domain multi-hop QA benchmarks in which later evidence can change earlier intermediate state: 500 sampled questions each from HotpotQA (Yang et al., 2018), 2WikiMultiHopQA (2Wiki) (Ho et al., 2020), and MuSiQue (Trivedi et al., 2022), plus all 125 Bamboogle (Press et al., 2023) questions. Teacher trajectories are collected only from the HotpotQA and 2Wiki training splits; MuSiQue and Bamboogle therefore test transfer beyond the teacher-trajectory domains.
Baselines and controlled protocol. Inference-only baselines include Direct, CoT (Kojima et al., 2022), Standard RAG (Lewis et al., 2020), SuRe (Kim et al., 2024), Selective-Context (Li et al., 2023), Iter-RetGen (Shao et al., 2023), and IRCoT (Trivedi et al., 2023), all using the unmodified LLaDA2.0-mini checkpoint. We compare against AR search agents Search-o1 (Li et al., 2025), Search-R1 (Jin et al., 2025), and R1-Searcher (Song et al., 2025), using their released systems. For DLLM-Searcher (Zhao et al., 2026), we migrate its complete post-training pipeline, including SFT and Variance-Reduced Preference Optimization (VRPO), to LLaDA2.0-mini and use its P-ReAct inference procedure. All retrieval-capable systems query the same frozen E5/Wiki18 index.
To test the central hypothesis independently of overall system differences, we additionally construct a matched comparison: {editable, append-only} planning state on {LLaDA2.0-mini, Ling-mini-2.0}. Ling-mini-2.0 (Ling Team, 2025) is the AR model from which LLaDA2.0-mini was converted (Bie et al., 2025), with the same architecture, parameter count, and tokenizer; the four agents use the same teacher trajectories, SFT schedule, MDSAS recipe, retriever, retrieval budget, and checkpoint-selection protocol. This comparison isolates whether the state protocol interacts specifically with the diffusion backbone.
Metrics. Token F1 is our primary answer metric, following R1-Searcher (Song et al., 2025). We additionally report LLM-as-Judge accuracy (ACC ) using Qwen3.5-9B (Qwen Team, 2026) to account for semantically correct answers that differ lexically from the reference. Appendix G.5 reports EM and SubEM. We also measure model-generated tokens and format validity where relevant.
Training and inference. Qwen3.6-27B generates teacher trajectories used for joint Action/Edit SFT of LLaDA2.0-mini. MDSAS starts from the epoch-one SFT checkpoint, which also provides the frozen anchor. RL checkpoints are selected on a disjoint 256-question HotpotQA–2Wiki validation set. At inference, DIFFUPLAN uses greedy decoding with at most five top-3 retrievals. Additional hyperparameters and data construction details are in Appendices E and F.
4.2 End-to-End Search Performance
Table 1 evaluates overall answer quality. Under the semantic judge, DIFFUPLAN reaches 55.30 average , exceeding R1-Searcher by 2.70 points. Token F1 gives the same ranking: DIFFUPLAN obtains the highest average F1, 50.24, exceeding R1-Searcher by 1.53 points. It achieves the best score on all four datasets under both metrics. Gains on MuSiQue and Bamboogle show that the learned behavior transfers beyond the HotpotQA and 2Wiki domains used to construct teacher trajectories.
DLLM-Searcher produces substantially more verbose answer strings, which makes token F1 unusually harsh for that system. Under SubEM, the containment-style metric used in its evaluation setting, DIFFUPLAN still leads, 48.45 versus 36.25 (Appendix G.5). These results establish that editable-state diffusion search is competitive end-to-end; the following analyses test why.
Table 2: Editable versus append-only planning state, trained with the same data and recipe. Token F1 and (%) are averaged over the four datasets, and Tokens is model-generated tokens per question.
| Planning state | F1 | Tokens | |
|---|---|---|---|
| dLLM (LLaDA2.0-mini) | |||
| Editable | 50.24 | 55.30 | 338 |
| Append | 47.80 | 52.30 | 411 |
| AR LLM (Ling-mini-2.0) | |||
| Editable | 50.01 | 53.70 | 357 |
| Append | 49.54 | 52.60 | 425 |
5 Testing the Editable-State Hypothesis
5.1 Does Editable State Specifically Benefit Diffusion?
Our central hypothesis predicts an interaction effect: keeping one current plan should reduce redundant generation for either backbone, but direct reconstruction of earlier state should provide a larger accuracy benefit to the dLLM than to the AR model. Table 2 supports this prediction. On LLaDA2.0-mini, editable state improves average F1 from 47.80 to 50.24 (+2.44) and reduces model-generated tokens from 411 to 338 (18%). On Ling-mini-2.0, the same state protocol changes F1 from 49.54 to 50.01 (+0.47), despite a comparable token reduction from 425 to 357 (16%). The corresponding gains are +3.00 for the diffusion model and +1.10 for the AR model.
This comparison is important because both editable agents ultimately maintain the same current plan. The AR agent generates replacement text left-to-right and the controller writes it into the plan; the diffusion agent reconstructs the selected earlier span directly under full-canvas conditioning. Thus the much larger dLLM gain cannot be explained by retaining a single plan or by token savings alone. It is consistent with the hypothesis that bidirectional reconstruction supplies a better inductive bias for revising previously committed state from later observations. Although Ling-mini-2.0 scores slightly higher than LLaDA2.0-mini on general benchmarks (Bie et al., 2025), DIFFUPLAN is the most accurate and least costly of the four agents. Per-dataset results are reported in Appendix F.3.
5.2 Does the Gain Track the Need for Revision?
A second prediction is that editable state should matter little when no state revision is needed and

Figure 3: Editable versus append-only planning state on the 1,625 test questions, grouped by the append agent's edit requests (the last two groups are subsets of the second). The F1 gain grows with the number of state edits, and the editable agent generates fewer tokens in every group. Full numbers are in Table 10.
matter increasingly as revision becomes more substantial. Figure 3 groups all 1,625 test questions by the append agent's own edit requests, so the grouping is independent of DIFFUPLAN. The pattern is monotonic: editable state changes F1 by only +0.20 on questions with no edit request, by +2.79 when at least one edit is requested, by +4.63 when at least two updates are requested, and by +7.12 when replanning is requested. The editable agent also generates 5–30% fewer tokens in every group. Overall, DIFFUPLAN edits its state on 83% of test questions (Appendix F.4).
The accuracy trend is more informative than the efficiency gain alone. If the improvement came mainly from shorter outputs or from maintaining an explicit plan, we would not expect it to increase so sharply with the amount of required revision. Instead, the gain is concentrated precisely where later evidence most strongly changes earlier planning state.
5.3 Are EPM and Expansion Necessary?
Marginalizing equivalent expansion paths. Figure 4(a) compares EPM with single-path cross-entropy while keeping dynamic expansion fixed. EPM improves validation EM from 31.64 to 42.19, F1 from 43.46 to 53.12, and format validity from 73.83% to 93.75%. The large gap supports the motivation for EPM: supervision should identify the desired replacement, not an arbitrary latent allocation of that replacement to expandable masks.
Allocating edit capacity dynamically. Figure 4(b) compares dynamic expansion with a fixed 96-token edit canvas. Dynamic expansion raises F1 from 49.08 to 53.12 while preserving comparable format validity. This is not a rare corner
(a) EPM

(b) Expansion
Figure 4: (a) EPM versus single-path cross-entropy (CE) and (b) dynamic expansion versus a fixed 96-token canvas, at SFT epoch 1 on the 256 validation questions under the same interaction budget. Valid. is format validity.
case: 90.7% of executed edits on the test set invoke expansion (Appendix F.4). Variable-length state revision is therefore central to the practical protocol rather than an occasional fallback.
5.4 Optimizing the Agent without Losing the Protocol
With its frozen SFT anchor, MDSAS improves the SFT initialization from 53.12 to 58.98 validation F1. The anchor is essential for stable optimization: without it, hard-invalid rollouts rise to 99.8% by step 50 and validation F1 collapses to 2.08; with it, the hard-invalid fraction stays below 10% over the same interval (Appendix F.2). The best unanchored checkpoint reaches 55.81 F1, so the anchor improves not only late-stage stability but also the selected policy.
These results clarify the roles of the training components. SFT learns the editable-state protocol and the reconstruction operation; EPM makes variable-length revision learnable; and MDSAS improves multi-turn action selection, while its frozen SFT anchor keeps RL from destroying the executable protocol.
6 Conclusion
Current dLLM agents largely inherit an append-only interaction paradigm from autoregressive models, even though dLLMs can reconstruct earlier text from later context. DIFFUPLAN turns this unused capability into an agent-state primitive by maintaining one editable planning state and revising selected earlier spans as new evidence arrives. A shared Action/Edit model realizes forward acting and cross-turn reconstruction, while EPM learns variable-length edits without committing supervision to an arbitrary expansion path. Controlled experiments show that editable state improves the diffusion agent far more than its AR counterpart and that the gain increases with the amount of revision required. Together with strong end-to-end QA performance, these results suggest a broader design principle: diffusion agents need not simply reproduce AR-style interaction; they can exploit reconstruction to maintain state that remains revisable throughout interaction.
Limitations
Our study uses one diffusion backbone, LLaDA2.0-mini, and its AR source model, Ling-mini-2.0. Multi-turn RL over denoising trajectories requires repeated rollouts with retrieval at every turn, which limited the scale of our experiments; whether the advantage of editable state holds for larger dLLMs or other diffusion families remains untested. We evaluate only multi-hop open-domain QA over a fixed Wikipedia corpus, where plans are short and structured as indexed subquestions. Longer-horizon agents, such as coding agents or research agents with live web search, hold less structured state, and our marker-based controller would need to generalize to it. MDSAS optimizes when to edit but not the reconstruction itself, which stays as learned in SFT. Finally, SFT relies on trajectories from a larger teacher, Qwen3.6-27B, on two training domains, so the protocol it learns depends on the teacher's search and revision behavior.
References
Marianne Arriola, Aaron Gokaslan, Justin T. Chiu, Zhihan Yang, Zhixuan Qi, Jiaqi Han, Subham Sekhar Sahoo, and Volodymyr Kuleshov. 2025. Block diffusion: Interpolating between autoregressive and diffusion language models. arXiv preprint arXiv:2503.09573.
Tiwei Bie, Maosong Cao, Xiang Cao, Bingsen Chen, Fuyuan Chen, Kun Chen, Lun Du, Daozhuo Feng, Haibo Feng, Mingliang Gong, Zhuocheng Gong, Yanmei Gu, Jian Guan, Kaiyuan Guan, Hongliang He, Zenan Huang, Juyong Jiang, Zhonghui Jiang, Zhenzhong Lan, and 31 others. 2026. LLaDA2.1: Speeding up text diffusion via token editing. arXiv preprint arXiv:2602.08676.
Tiwei Bie, Maosong Cao, Kun Chen, Lun Du, Mingliang Gong, Zhuochen Gong, Yanmei Gu, Jiaqi Hu, Zenan Huang, Zhenzhong Lan, Chengxi Li, Chongxuan Li, Jianguo Li, Zehuan Li, Huabin Liu, Lin Liu,
Guoshan Lu, Xiaocheng Lu, Yuxin Ma, and 12 others. 2025. LLaDA2.0: Scaling up diffusion language models to 100b. arXiv preprint arXiv:2512.15745.
Shuang Cheng, Yihan Bian, Dawei Liu, Linfeng Zhang, Qian Yao, Zhongbo Tian, Wenhai Wang, Qipeng Guo, Kai Chen, Biqing Qi, and Bowen Zhou. 2025. SDAR: A synergistic diffusion-AutoRegression paradigm for scalable sequence generation. arXiv preprint arXiv:2510.06303.
Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, Meng Wang, and Haofen Wang. 2023. Retrieval-augmented generation for large language models: A survey. arXiv preprint arXiv:2312.10997.
Xanh Ho, Anh-Khoa Duong Nguyen, Saku Sugawara, and Akiko Aizawa. 2020. Constructing a multi-hop QA dataset for comprehensive evaluation of reasoning steps. In Proceedings of the 28th International Conference on Computational Linguistics, pages 6609–6625. International Committee on Computational Linguistics.
Bowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Sercan Arik, Dong Wang, Hamed Zamani, and Jiawei Han. 2025. Search-R1: Training LLMs to reason and leverage search engines with reinforcement learning. arXiv preprint arXiv:2503.09516.
Paul Jünger, Justin Lovelace, Linxi Zhao, Dongyoung Go, and Kilian Q. Weinberger. 2026. Self-augmenting retrieval for diffusion language models. arXiv preprint arXiv:2606.06474.
Jaehyung Kim, Jaehyun Nam, Sangwoo Mo, Jongjin Park, Sang-Woo Lee, Minjoon Seo, Jung-Woo Ha, and Jinwoo Shin. 2024. SuRe: Summarizing retrievals using answer candidates for open-domain QA of LLMs. In International Conference on Learning Representations.
Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. In Advances in Neural Information Processing Systems, volume 35.
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. 2020. Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems, volume 33, pages 9459–9474.
Xiaoxi Li, Guanting Dong, Jiajie Jin, Yuyao Zhang, Yujia Zhou, Yutao Zhu, Peitian Zhang, and Zhicheng Dou. 2025. Search-o1: Agentic search-enhanced large reasoning models. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 5420–5438. Association for Computational Linguistics.
Yucheng Li, Bo Dong, Frank Guerin, and Chenghua Lin. 2023. Compressing context to enhance inference efficiency of large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 6342–6353. Association for Computational Linguistics.
Ling Team. 2025. Every activation boosted: Scaling general reasoner to 1 trillion open language foundation. arXiv preprint arXiv:2510.22115.
Ning Liu. 2026. Track, rank, crack: Epistemic working memory scales multi-hop reasoning in language agents. arXiv preprint arXiv:2607.12267.
Kangcheng Luo, Tinglang Wu, and Yansong Feng. 2026. Plan: Dual-agent dynamic global planning for complex retrieval-augmented reasoning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4722–4754. Association for Computational Linguistics.
Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Ji-Rong Wen, and Chongxuan Li. 2025. Large language diffusion models. arXiv preprint arXiv:2502.09992.
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems, volume 35.
Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah Smith, and Mike Lewis. 2023. Measuring and narrowing the compositionality gap in language models. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5687–5711. Association for Computational Linguistics.
Qwen Team. 2026. Qwen3.5: Towards native multimodal agents. https://qwen.ai/blog?id=qwen3.5.
Zhihong Shao, Yeyun Gong, Yelong Shen, Minlie Huang, Nan Duan, and Weizhu Chen. 2023. Enhancing retrieval-augmented large language models with iterative retrieval-generation synergy. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 9248–9274. Association for Computational Linguistics.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300.
Huatong Song, Jinhao Jiang, Yingqian Min, Jie Chen, Zhipeng Chen, Wayne Xin Zhao, Lei Fang, and Ji-Rong Wen. 2025. R1-Searcher: Incentivizing the search capability in LLMs via reinforcement learning. arXiv preprint arXiv:2503.05592.
Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. 2022. MuSiQue: Multi-hop questions via single-hop question composition. Transactions of the Association for Computational Linguistics, 10:539–554.
Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. 2023. Interleaving retrieval with chain-of-thought reasoning for knowledge-intensive multi-step questions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10014–10037. Association for Computational Linguistics.
Prakhar Verma, Sukruta Prakash Midigeshi, Gaurav Sinha, Arno Solin, Nagarajan Natarajan, and Amit Sharma. 2024. Plan*RAG: Efficient test-time planning for retrieval augmented generation. arXiv preprint arXiv:2410.20753.
Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, and Furu Wei. 2022. Text embeddings by weakly-supervised contrastive pre-training. arXiv preprint arXiv:2212.03533.
Yinjie Wang, Ling Yang, Bowen Li, Ye Tian, Ke Shen, and Mengdi Wang. 2026. Revolutionizing reinforcement learning framework for diffusion large language models. In International Conference on Learning Representations.
Zirui Wu, Lin Zheng, Zhihui Xie, Jiacheng Ye, Jiahui Gao, Shansan Gong, Yansong Feng, Zhenguo Li, Wei Bi, Guorui Zhou, and Lingpeng Kong. 2026. DreamOn: Diffusion language models for code infilling beyond fixed-size canvas. arXiv preprint arXiv:2602.01326.
Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. 2018. HotpotQA: A dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2369–2380. Association for Computational Linguistics.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. ReAct: Synergizing reasoning and acting in language models. In International Conference on Learning Representations.
Jiacheng Ye, Zhihui Xie, Lin Zheng, Jiahui Gao, Zirui Wu, Xin Jiang, Zhenguo Li, and Lingpeng Kong. 2025. Dream 7b: Diffusion large language models. arXiv preprint arXiv:2508.15487.
Jiahao Zhao, Shaoxuan Xu, Zhongxiang Sun, Fengqi Zhu, Jingyang Ou, Yuling Shi, Chongxuan Li, Xiao Zhang, and Jun Xu. 2026. DLLM-Searcher: Adapting diffusion large language model for search agents. arXiv preprint arXiv:2602.07035.
A Detailed Runtime
Algorithm 1 gives the complete execution loop, including the edit handoff between two Action-Mode segments. Each interaction produces one Action-Mode segment under the following grammar:
Listing 1: Action grammar. The environment, never the policy, emits <information>.
initial_segment ::= <plan> plan_steps </plan> later_segment later_segment ::= <think> rationale </think> terminal_action terminal_action ::= <search> query </search> | <update> answer_markers </update> | <replan> step_markers </replan> | <answer> short_answer </answer> answer_markers ::= #A_i ("," #A_j)* step_markers ::= #Q_i ("," #Q_j)*
The grammar places a plan only in the initial segment and one terminal action after a non-empty think. Terminal answers must be concise. The runtime executes the first complete terminal action and requests a direct answer if none is available or an interaction budget is exhausted.
B Controller Implementation
B.1 Localize
The policy selects edit targets through markers; the controller localizes them without inferring which steps are solved. An update selects the first occurrence of each requested #A_i present in the plan. A replan with one matching #Q_i selects the suffix starting at that step; with multiple matching markers, it selects only the listed step spans. Unselected text is preserved.
B.2 Commit and history semantics
For an update, each selected answer marker is replaced by one logical mask. For a replan, all tokens overlapping the selected step spans are masked. The editor reconstructs these positions from the full interaction canvas, including subsequent actions and retrieved evidence. Commit propagates each decoded update value to all identical unresolved references and writes the revised plan back at its original position in the history.
The shared denoiser reconstructs the masked spans of canvas . The complete transition formalizes span selection, reconstruction, and commit as
(7)
Here is the candidate plan before reference propagation. The map contains each selected update marker's decoded value and is empty for replan. The commit closure collects the spans changed by direct editing or reference propagation. It equals the selected replan spans; for an update, it additionally includes every identical marker occurrence reached by propagation. Commit preserves all other plan content. The denoiser returns status . Missing plans or requests with no matching spans leave the history unchanged.
Each editable mask carries an owner label . Expansion replaces it with two masks bearing the same label, keeping new positions attached to the originating span. Commit preserves all unselected plan content in order, including when expansion shifts subsequent token positions.
C Action/Edit Serialization
Action Mode and Edit Mode are two views of one shared checkpoint. For Action Mode, define the history tokens , target tokens , and clean sequence , where is the complete segment from Equation 1. The first target contains plan+think+search; later targets contain think followed by one terminal action. Left truncation preserves .
C.1 Edit Mode full canvas
The edit input is not an isolated plan. The triggering update/replan action has already been appended, and the original plan appears earlier in the same canvas:
Listing 2: Full-canvas Edit-Mode template.
X_t = <role>SYSTEM</role> ... <|role_end|> <role>HUMAN</role> ... Question: {q} <|role_end|> <role>ASSISTANT</role> <plan> {plan_left}{editable_span}{plan_right} </plan> {subsequent actions and <information> observations} <think>{edit rationale}</think> <update|replan>{selected markers} </update|replan>
Algorithm 1 Closed-loop search with committed plan editing
Require: question q, controller , retriever , turn budget , retrieval budget
1: ;
2: for do
3:
4:
5: if no complete terminal action exists then
6: return DIRECTANSWER(q, H)
7: end if
8:
9: if then
10: return
11: else if then
12: if then
13: return DIRECTANSWER(q, H)
14: end if
15:
16: else
17: ;
18: Form the full canvas from q and H, including evidence after , and mask the spans
19: Reconstruct the masked spans under by filling or expanding their masks
20: if then
21: propagate each decoded value to all identical unresolved plan references
22: end if
23: Replace by at its original position in H, preserving the surrounding history
24: end if
25: end for
26: return DIRECTANSWER(q, H)
For the latest plan span , let be its ordered replacement groups. Each group renders as
The full-canvas serialization is
Here are group 's resolved target-token bounds and is its controller owner. An unresolved group whose target length is one is labelled with that token; a longer group is labelled with and trained with EPM. SFT constructs partially resolved canvases from the known replacement, whereas a runtime update begins with one logical mask per selected answer marker. They share full-canvas conditioning and expansion semantics, but need not start from the identical corruption state.
C.2 Attention masks
For Action-Mode SFT, let mask only positions in the new target segment. The trainer receives the length-2N sequence , where is the sampled corruption rate, and both lanes reuse position IDs. Let denote the noisy or clean lane and , where is the single-lane sequence length and is the diffusion block length. Ignoring padding,
Table 3 shows the resulting block visibility pattern.
For Edit-Mode SFT, the nominal 2N layout is . If indicates a real non-padding key in the first half,
(11)
Every real full-canvas token is mutually visible in the first half. The dummy half carries no clean target and retains only a numerical-safety diagonal.
Table 3: Block-level Action mask; 1 marks a visible key block.
| Query \ key | ||||||
|---|---|---|---|---|---|---|
| 1 | . | . | . | . | . | |
| . | 1 | . | 1 | . | . | |
| . | . | 1 | 1 | 1 | . | |
| . | . | . | 1 | . | . | |
| . | . | . | 1 | 1 | . | |
| . | . | . | 1 | 1 | 1 |
C.3 Loss support and parameter sharing
Table 4 lists the prediction targets of the two runtime views and of RL. The MDSAS loss covers generated plan and reasoning tokens, tags, search queries, edit requests, and answers. The preceding SFT stage supplies supervision for both action generation and edit reconstruction. The RL stage updates the shared parameters with the trajectory loss and frozen-reference anchor in Equation 6.
C.4 Commit-trajectory likelihood
Full trajectory objective. For trajectory , the format gate equals 1, 0.5, or 0 for clean, soft-invalid, or hard-invalid outputs. The group reward mean and sample standard deviation are and , with stabilizer . Let contain positions committed in reconstructed slice , and index the Action-Mode loss targets from nonzero-variance trajectory groups. The reward, advantage, likelihood ratio, and clipped objective are
Here is the pre-update policy, is the PPO clip radius, and weights the nonnegative Monte Carlo KL estimator. Zero-variance trajectory groups are omitted from this trajectory loss. Retrieved observations and the token-fixed prefix provide conditioning context, and all Edit-Mode positions are excluded from the loss.
Reconstructing rollout slices. During rollout, we record the commit-step index for each Action-Mode token . These annotations reconstruct each slice in the two-lane layout of Action-Mode SFT: earlier commitments are visible, positions in are prediction targets, and later positions remain masked. Current and old likelihoods in Equation 12 are evaluated on this same slice. The prefix and earlier commitments provide conditioning context. The frozen SFT reference is evaluated on slices from all rollout groups, including zero-variance groups, with the same response-length normalization as the trajectory loss.
D Dynamic Expansion and EPM
D.1 Partitions and a minimal example
This section expands the EPM objective in Equation 3. For component , set , , and , with . A latent allocation is a composition
Thus the main-text notation is . For compactness, write for the label probability at active mask in component of edit record . A singleton chunk labels its mask with the target token; a longer chunk labels it with . For , Table 5 lists all three valid partitions and their immediate mask labels.
The implementation therefore minimizes the uniformly normalized marginal
Resolved anchors divide a canvas into independent contiguous unresolved groups; EPM is evaluated within each group and the group losses are summed.
D.2 Dynamic program for partition marginalization
Let be the unnormalized log-marginal score for assigning the prefix to the first masks. Define , with the empty log-sum equal to . The boundary conditions are and
Table 4: Prediction targets for the two runtime views and MDSAS.
| Stage | Serialization | Direct loss positions | Conditioning only |
|---|---|---|---|
| Action-Mode SFT | Corrupted tokens in the newly generated Action-Mode segment | Prompt, history, information, uncorrupted target tokens, clean lane, padding | |
| Edit-Mode SFT | Controller-owned unresolved masks, using EPM | All other canvas tokens, resolved edit tokens, non-owned plan spans, dummy half | |
| MDSAS | Generated Action-Mode tokens committed in slice | Prefix, observations, clean helper blocks, padding |
Table 5: All EPM partitions for two masks and four target tokens.
| Partition | Chunk assignment | Immediate mask labels |
|---|---|---|
. For ,
The first branch assigns a singleton ending at ; the second assigns a chunk of length at least two. Maintaining the inner log-sum-exp as a prefix accumulator gives time and space.
Equation 3 and the training implementation both use the uniform prior over paths. For each unresolved group, the implementation evaluates the unnormalized log-sum from Equation 15 and returns
thereby retaining the parameter-independent partition normalizer in the objective.
D.3 Expansion runtime
An <EXPAND> prediction replaces one controller-owned mask by two masks with the same owner, increasing the canvas by one token. Each edit invocation permits at most expansion events. The operator supports length-preserving and length-growing replacements; deletion and contraction are outside its scope.
Denoising stops when all owned masks are filled or the step limit is reached, where is the pre-edit plan length
Table 6: Canonical teacher trajectories and derived SFT records.
| Record family | Count | Breakdown |
|---|---|---|
| Teacher trajectories | 6,486 | — |
| Action records | 26,539 | 12,722 search; 6,769 update; 6,486 answer; 562 replan |
| Edit records | 83,519 | 70,031 update states; 13,488 replan states |
in tokens. Expansion is confined to controller-owned Edit-Mode positions.
E Teacher Data Construction
E.1 Teacher and sampling setup
Qwen3.6-27B generates trajectories with an indexed plan, retrieval, answer bindings, and replanning. Each retrieval returns three passages truncated to 500 whitespace-delimited words. Collection allows at most six searches, one replan, and two format-repair attempts; a second pass resamples first-pass rejections. The teacher decodes with temperature 0.5, top-p 0.8, top-k 20, and at most 1,024 output tokens.
E.2 Rejection sampling and canonicalization
We retain trajectories with token-level answer F1 above 0.65, at least one retrieval, and a valid plan-action structure. The converter maps each teacher trajectory into the two student views. Teacher answer bindings and rewritten questions become update Action records plus full-canvas Edit targets; teacher replacement suffixes become marker-only replan actions plus their corresponding Edit targets. Retrieved information remains conditioning context. Retrieval-limit records teach the agent to answer rather than issue another search.
Table 6 counts the canonical trajectories and derived records. Each canonical environment-facing decision yields one Action record. Each update
Table 7: Optimization configuration.
| Setting | SFT | MDSAS |
|---|---|---|
| Initialization | LLaDA2.0-miniMoE merged checkpoint | SFT epoch 1 |
| Optimizer | AdamW | AdamW |
| Weight decay | 0.1 | 0.01 |
| Learning rate | peak | constant |
| Schedule | 3% linear warmup, cosine decay to | no warmup or scheduler |
| Gradient clipping | 5.0 | 1.0 |
or replan handoff yields multiple deduplicated DreamOn-style full-canvas corruption states (up to 12 per update and 24 per replan), explaining why Edit records outnumber both actions and trajectories.
F Full Training Details
F.1 Optimization configuration
We run SFT for two epochs and use the epoch-one checkpoint as the reported SFT policy and RL initialization. The training multiset assigns multiplicity 1 to search, answer, and edit records, multiplicity 1.5 to updates, and multiplicity 3 to replans and search-limit recovery records. The joint SFT objective is
Table 7 summarizes optimization.
Maximum sequence length is 4,096 and diffusion block size is 32. For an Action-Mode target ,
and only target-segment tokens are eligible for corruption. If none is selected, one target position is forced to mask. Edit records receive no additional random corruption: controller ownership defines their EPM support.
F.2 MDSAS schedule and sampling
Training runs for 80 on-policy outer steps, sampling eight trajectories per question. PPO uses a clip of 0.15 and an old-policy KL coefficient of 0.02. The fixed SFT anchor has coefficient . Each step makes one pass over the newly sampled Action-Mode rows. MDSAS uses a representation with 32-token blocks and shrink factor 8, which combines every eight distinct commit steps within a block into one training state. Table 11 lists the Action-Mode sampling parameters.
The RL training set consists of 4,030 examples sampled from the same training dataset used by R1-Searcher.
F.3 Backbone and protocol comparison
Section 5.1 trains the editable and append protocols on LLaDA2.0-mini and on Ling-mini-2.0. All four agents use the same Qwen3.6-27B teacher trajectories and record multiplicities, two SFT epochs with the epoch-one checkpoint, and the MDSAS schedule above, with RL checkpoints selected on the same 256-question validation set. Under the append protocol, teacher update and replan actions are serialized with the complete revised plan, and at inference the controller adds the generated plan to the history after the request without modifying the earlier plan. Under the editable protocol on Ling-mini-2.0, these actions carry the replacement text for the affected steps, written left to right, and the controller commits it into the planning state as for DIFFUPLAN, so the training histories of the two editable agents match token for token. Ling-mini-2.0 agents are served with vLLM, and all agents share the retriever and retrieval budget of Section 4.1. Table 8 reports the four agents on each dataset.
F.4 Edit usage at inference
Table 9 reports how often DIFFUPLAN edits its plan on the 1,625 test questions and how often the executed edits invoke expansion. Edit requests whose markers match no plan span leave the history unchanged and are not counted as executed edits. Table 10 pairs DIFFUPLAN with the LLaDA2.0-mini append agent of Table 2 on the same multihop questions, grouped by the append agent's own edit requests.
G Evaluation Details
G.1 Retriever and corpus
All retrieval-based methods use intfloat/e5-base-v2 (Wang et al., 2022) with mean pooling over the Wiki18 corpus and FAISS inner-product search. Queries are truncated to 256 encoder tokens.

Figure 5: MDSAS and its unanchored variant. (a) Unsmoothed 2Wiki validation F1 and (b) hard-invalid rollout rates over the first 50 training steps.
Table 8: Per-dataset results for the backbone and protocol comparison of Table 2. Each dataset reports token F1 and ; Avg. averages the four datasets. Tokens is model-generated tokens per question. Bold marks the best value in each column.
| Planning state | HotpotQA | 2Wiki | MuSiQue | Bamboogle | Avg. | Tokens | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| F1 | F1 | F1 | F1 | F1 | |||||||
| LLaDA2.0-mini | |||||||||||
| Editable | 55.34 | 65.00 | 55.03 | 56.00 | 31.72 | 34.60 | 58.86 | 65.60 | 50.24 | 55.30 | 338 |
| Append | 54.25 | 64.00 | 51.82 | 53.40 | 28.73 | 34.20 | 56.40 | 57.60 | 47.80 | 52.30 | 411 |
| Ling-mini-2.0 | |||||||||||
| Editable | 55.99 | 65.20 | 54.30 | 54.80 | 33.59 | 35.60 | 56.16 | 59.20 | 50.01 | 53.70 | 357 |
| Append | 57.48 | 65.80 | 53.70 | 54.40 | 33.50 | 35.80 | 53.50 | 54.40 | 49.54 | 52.60 | 425 |
Table 9: Edit usage of DIFFUPLAN on the test set. Update and Replan are the percentages of questions with at least one such edit; Upd./q and Rep./q are edits per question; Exp. is the percentage of executed edits that invoke expansion.
| Dataset | Update | Replan | Upd./q | Rep./q | Exp. |
|---|---|---|---|---|---|
| HotpotQA | 71.2 | 9.6 | 1.04 | 0.10 | 88.3 |
| 2Wiki | 83.2 | 16.4 | 1.52 | 0.16 | 92.9 |
| MuSiQue | 81.8 | 18.8 | 1.20 | 0.19 | 90.4 |
| Bamboogle | 91.2 | 4.8 | 0.98 | 0.05 | 89.1 |
| All | 79.7 | 14.2 | 1.23 | 0.14 | 90.7 |
G.2 Prompts, answer extraction, and scoring
Direct, CoT, and Standard RAG use concise answer-tag prompts; other systems use their released or paper-specified workflows and native answer markers. A method-specific parser extracts the terminal answer. The common scorer lower-cases text, removes punctuation and English articles, collapses whitespace, and takes the maximum score over reference aliases. EM compares normalized strings, token F1 measures token overlap, and SubEM tests whether a normalized reference appears in the prediction.
G.3 LLM-as-Judge
Lexical metrics penalize correct answers phrased differently from the references and reward responses that contain a reference without committing to it. We therefore also score every extracted answer with LLM-as-Judge, using Qwen3.5-9B (Qwen Team, 2026) as the judge model with thinking disabled and greedy decoding. The judge model receives the question, the reference aliases, and the extracted answer, truncated to 300 words, and returns a binary verdict. Its instructions treat aliases, abbreviations, name order, formatting differences, and additional correct detail as equivalent, and mark as incorrect an answer that is vaguer than every reference, names a different entity, lists several candidates, declares the answer unknown, contradicts a reference, or is empty; yes/no questions are compared by polarity only. Pooled over the twelve systems and 1,625 questions, the verdicts agree with EM on of answers, with SubEM on , and with nonzero F1 on . Table 1 reports LLM-as-Judge accuracy beside F1 for every dataset, and Table 8 for the backbone and protocol comparison.
Table 10: Paired F1 (%) and model-generated tokens per question on the 1,625 test questions, grouped by the edit requests of the LLaDA2.0-mini append agent. The last two groups are subsets of the second.
| Append-agent requests | n | % | F1 | Tokens | ||||
|---|---|---|---|---|---|---|---|---|
| Editable | Append | Δ | Editable | Append | ||||
| No edit request | 223 | 13.7 | 39.40 | 39.20 | +0.20 | 359 | 379 | |
| ≥1 edit request | 1,402 | 86.3 | 49.65 | 46.87 | +2.79 | 335 | 416 | |
| ≥2 updates | 433 | 26.6 | 55.38 | 50.75 | +4.63 | 383 | 546 | |
| ≥1 replan | 272 | 16.7 | 30.18 | 23.06 | +7.12 | 433 | 585 | |
Table 11: Action-Mode sampling parameters.
| Training rollout | Checkpoint selection | |
|---|---|---|
| Block size / denoising steps | 32 / 32 | 32 / 32 |
| Temperature | 0.8 | 0 |
| Top-p / top-k | 0.95 / 0 | 1.0 / 0 |
| Confidence threshold | 0.90 | 0.95 |
| Max new tokens per segment | 256 | 256 |
G.4 Format validity and reward gating
Format validity measures the fraction of trajectories with correct output structure, independently of answer correctness. The checks require an initial plan, balanced control tags, well-formed closing tags, a non-empty terminal answer without control markup, and valid reasoning–search transitions. Empty searches, duplicate answer blocks, and model-generated information blocks are invalid. Both SFT diagnostics in Figure 4(a,b) use this same definition.
For the RL reward gate in Equation 12, malformed control structures and missing or malformed terminal answers are hard-invalid. Edit-marker payloads are also checked for valid target syntax. Recoverable deviations, including an empty search or a missing reasoning transition between searches, are soft-invalid. The hard-invalid rollout rate in Figure 5 uses these training-time checks.
G.5 Answer-output metrics
EM and SubEM complement token F1 by measuring exact answers and the presence of a reference answer within the response; LLM-as-Judge (Appendix G.3) scores semantic correctness (Table 12).
H Qualitative Examples
The following traces retain every model action. Each Controller commit block shows a snapshot of the same plan after it has been edited in place. Only the retrieved passages inside <information> are abridged.
Table 12: Answer metrics averaged over the four datasets (%).
| System | EM | F1 | SubEM | |
|---|---|---|---|---|
| Search-o1 | 29.45 | 39.78 | 39.50 | 46.25 |
| Search-R1 | 27.50 | 35.33 | 33.90 | 37.75 |
| R1-Searcher | 38.40 | 48.71 | 46.55 | 52.60 |
| DLLM-Searcher | 0.05 | 7.25 | 36.25 | 36.65 |
| DIFFUPLAN | 38.15 | 50.24 | 48.45 | 55.30 |
H.1 Successful update
For the question “Who wrote the 1897 novel about a vampire which was later turned into a 1931 film featuring Béla Ferenc Dezsó Blaskó?”, the agent performs two successive updates:
Question: Who wrote the 1897 novel about a vampire which was later turned into a 1931 film featuring Bela Ferenc Dezso Blasko? Student: <plan> #Q_1: Who is Bela Ferenc Dezso Blasko? #Q_2: What 1931 film featuring #A_1 was based on an 1897 vampire novel? #Q_3: Who wrote the 1897 novel #A_2? </plan> <think>I need to identify the actor Bela Ferenc Dezso Blasko to find the 1931 film he was in.</think>
<search>Bela Ferenc Dezso Blasko actor</search> Environment (abridged): <information>Bela Ferenc Dezso Blasko is better known as Bela Lugosi, the actor famous for portraying Count Dracula in the 1931 film.</information> Student: <think>The retrieved evidence states that Bela Ferenc Dezso Blasko is better known as Bela Lugosi.</think> <update>#A_1</update> Controller commit: <plan> #Q_1: Who is Bela Ferenc Dezso Blasko? #Q_2: What 1931 film featuring Bela Lugosi was based on an 1897 vampire novel? #Q_3: Who wrote the 1897 novel #A_2? </plan> Student: <think>I need to identify the 1931 film featuring Bela Lugosi that was based on an 1897 vampire novel.</think> <search>1931 film featuring Bela Lugosi based on 1897 vampire novel</search> Environment (abridged): <information>Dracula is a 1931 vampire film starring Bela Lugosi and based on the novel Dracula by Bram Stoker.</information> Student:<think>The retrieved information confirms that the 1931 film Dracula is based on the novel Dracula by Bram Stoker.</think> <update>#A_2</update> Controller commit: <plan> #Q_1: Who is Bela Ferenc Dezso Blasko? #Q_2: What 1931 film featuring Bela Lugosi was based on an 1897 vampire novel? #Q_3: Who wrote the 1897 novel Dracula? </plan> Student: <think>I need to find the author of the 1897 novel Dracula.</think>
<search>author of 1897 novel Dracula</search> Environment (abridged): <information>Dracula is an 1897 Gothic horror novel by Irish author Bram Stoker.</information> Student: <think>The search results confirm that Bram Stoker is the author of the 1897 novel Dracula.</think> <answer>Bram Stoker</answer>The first commit binds the actor’s stage name into #Q_2; the second binds the film title into #Q_3. The final answer matches the reference, Bram Stoker.
H.2 Successful replan
For the question “Which 2009 film features an actor that also starred in Bad Samaritan?”, the agent first updates the cast binding and then replans after an incomplete retrieval:
Question: Which 2009 film features an actor that also starred in Bad Samaritan? Student: <plan> #Q_1: Who are the main actors in Bad Samaritan? #Q_2: Which 2009 film features #A_1? </plan> <think>I need to identify the cast of the film Bad Samaritan to find the actor in question.</think>
<search>Bad Samaritan film cast</search> Environment (abridged): <information>Bad Samaritan stars David Tennant and Robert Sheehan, with Carlito Olivero, Kerry Condon, and Jacqueline Byers.</information> Student: <think>The observation provides the evidence needed for the current step.</think> <update>#A_1</update> Controller commit: <plan> #Q_1: Who are the main actors in Bad Samaritan? #Q_2: Which 2009 film features David Tennant or Robert Sheehan? </plan> Student: <think>I will search for a 2009 film featuring either of these actors to find the answer.</think> <search>2009 film starring David Tennant or Robert Sheehan</search> Environment (abridged): <information>Robert Sheehan appeared with Rupert Grint in an unnamed 2009 film set in Belfast; the retrieved text omits its title.</information> Student: <think>The observation provides the plot and co-star (Rupert Grint) for Robert Sheehan's 2009 film but does not explicitly state the title. I will replan to search for the title using these constraints.</think> <replan>#Q_2</replan> Controller commit: <plan> #Q_1: Who are the main actors in Bad Samaritan?#Q_2: What is the title of the 2009 film starring Robert Sheehan and Rupert Grint set in Belfast? </plan> Student: <think>I will search for the title of the 2009 film starring Robert Sheehan and Rupert Grint.</think>
<search>2009 film starring Robert Sheehan and Rupert Grint set in Belfast</search> Environment (abridged): <information>Cherrybomb is a 2009 British drama starring Rupert Grint and Robert Sheehan and filmed in Belfast.</information> Student: <think>The observation provides the evidence needed for the current step.</think> <answer>Cherrybomb</answer>The replan preserves the resolved cast step and rewrites only #Q_2. The final answer matches the reference, Cherrybomb.