Paper · Agents and tools · Version v1
Multi-Hop Attention Graph Sampling for Masked Diffusion LLMs
First published: arXiv, . Original
Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.
This page holds the text of the paper, converted to HTML; figures may be left out.
Masked Diffusion LLMs can accelerate language generation through parallel decoding, but unmasking incompatible token combinations can degrade quality. Recent attention-based dependency-aware samplers construct a graph where the masked positions are nodes and the edges correspond to direct attention map weights. Though achieving impressive acceleration, these consider only direct or single-hop relations in the graph, disregarding multi-hop connectivity. We introduce GRID -- Graph Resistance Independent Decoding -- a training-free sampler that replaces the direct-edge coupling score with effective resistance, a parameter-free connectivity measure that aggregates both direct and indirect routes between masked positions. To analyze how samplers perform on complex multi-hop graph structures, we introduce Dep-Bench, a controlled benchmark with five datasets spanning four graph structures and known dependencies at varying depths. On Dep-Bench, GRID's advantage over direct-edge methods grows consistently with depth. On ParallelBench, a public benchmark focused on parallel decoding, GRID achieves up to 2x decoding-step speedup over the fastest competing sampler, for a given quality threshold of 95% of the category-level top-1 score. Finally, across 16 leading model and LLM reasoning benchmark combinations, GRID achieves 3-10x speedup over top-1 decoding and 7-11% improvement over the fastest competing sampler, at comparable accuracy. The combined results validate that multi-hop connectivity is a valuable and underutilized signal for dependency-aware parallel decoding.
Abstract
Masked Diffusion LLMs can accelerate language generation through parallel decoding, but unmasking incompatible token combinations can degrade quality. Recent attention-based dependency-aware samplers construct a graph where the masked positions are nodes and the edges correspond to direct attention map weights. Though achieving impressive acceleration, these consider only direct or single-hop relations in the graph, disregarding multi-hop connectivity. We introduce GRID – Graph Resistance Independent Decoding – a training-free sampler that replaces the direct-edge coupling score with effective resistance, a parameter-free connectivity measure that aggregates both direct and indirect routes between masked positions. To analyze how samplers perform on complex multi-hop graph structures, we introduce Dep-Bench, a controlled benchmark with five datasets spanning four graph structures and known dependencies at varying depths. On Dep-Bench, GRID’s advantage over direct-edge methods grows consistently with depth. On ParallelBench, a public benchmark focused on parallel decoding, GRID achieves up to decoding-step speedup over the fastest competing sampler, for a given quality threshold of of the category-level top-1 score. Finally, across 16 leading model and LLM reasoning benchmark combinations, GRID achieves speedup over top-1 decoding and % improvement over the fastest competing sampler, at comparable accuracy. The combined results validate that multi-hop connectivity is a valuable and underutilized signal for dependency-aware parallel decoding.
1 Introduction
Masked diffusion models (MDMs) (Austin et al., 2021a; Lou et al., 2023; Sahoo et al., 2024; Shi et al., 2024; Ou et al., 2025) such as LLaDA (Nie et al., 2026; Bie et al., 2025) and Dream (Ye et al., 2025) retain language modeling quality competitive with auto-regressive (AR) models, while offering high speedup potential through parallel decoding. In contrast to AR models that predict the next-token distribution, MDMs provide a conditional marginal distribution for each masked token at a given denoising step. Decoding multiple masked tokens in parallel implicitly approximates their joint conditional distribution by a factorized product of these per-token marginals. When the selected tokens are coupled, this approximation can lead to joint-marginal mismatch (Kim et al., 2026a; Luo et al., 2026): each token may be plausible given the partially masked context, but the unmasked combination is misaligned. For instance, the response of [m_{1},m_{2}]=[\textit{Rome},\textit{France}] to “ is the capital of ” is independently plausible but jointly incorrect. Identifying independent tokens to unmask in parallel thus becomes the main lever for speedup in diffusion-based samplers.
Training-free diffusion samplers mostly utilize individual token signals (Wu et al., 2025; Ben-Hamu et al., 2026; Kim et al., 2026b; Zhang et al., 2026; Luxembourg et al., 2025), such as confidence and entropy, to determine which tokens to simultaneously unmask. While providing increased speedup, these methods fail to model the pairwise relations between masked tokens, leading to degraded quality due to the joint-marginal mismatch. Subsequent dependency-aware samplers (Azangulov et al., 2026; Ringel et al., 2026) estimate the pairwise coupling between masked tokens using different proxies, one of them being the model’s self-attention. Attention-derived methods, such as DAWN (Luo et al., 2026) and DAPD (Kim et al., 2026a), construct a graph where the nodes and edges correspond to masked tokens and their pairwise attention map values respectively. Weak direct edges suggest weaker coupling between the corresponding masked tokens, making those candidates for parallel decoding. Although improving quality over individual-token techniques, such dependency-aware samplers consider mostly direct single-hop relations in the graph, while disregarding complex multi-hop routes as shown in Figure 1 (a)–(b).
We suggest that multi-hop paths in the attention-derived graph carry relevant information about complex dependencies that direct edges lack (see Figure 1*(b)*), motivating a better proxy that captures broader graph connectivity. Effective resistance (ER), a parameter-free classical measure in graph theory (Klein & Randić, 1993), models the graph as an electrical circuit where nodes that have multiple paths between them benefit from better electrical flow and lower effective resistance, and vice versa. We thus introduce GRID—Graph Resistance Independent Decoding—a training-free sampler that utilizes the normalized inverse ER on the attention-derived graph as a generalized multi-hop pairwise coupling score. Building on DAWN’s confidence-guided selection procedure (Luo et al., 2026), GRID uses its ER-based coupling score rather than direct attention edges to mitigate conflicts, then greedily selects a confidence-ordered independent set of masked tokens for parallel decoding. The complete procedure is given in Algorithm 1.
Figure 1: GRID – intuition and results highlights. In the sentence above: the baker and cake nodes have a low direct-attention coupling score, as shown in (a), but looking at the dependency graph reveals additional strong multi-hop relations through intermediate edges. Our proposed sampler, GRID (Graph Resistance Independent Decoding), offers a richer connectivity measure, considering both direct/single-hop and multi-hop relations in the graph. In (c), our training-free dependency-aware sampler, evaluated over 16 combinations of models and benchmarks, provides a considerable decoding speedup versus the fastest competitor at comparable accuracy.
We first motivate inverse ER as a multi-hop connectivity proxy through its exact expansion into direct and multi-hop connectivity contributions (Section 3). We then introduce Dep-Bench, a controlled benchmark with five datasets and four task-dependency structures whose dependencies are known by construction, enabling a controlled analysis as a function of dependency hop distance and structure (Section 5.1). On Dep-Bench, GRID’s advantage over direct-edge attention increases with dependency hop distance. We next evaluate on ParallelBench (Kang et al., 2026), a public benchmark for speed–quality trade-offs in parallel decoding. At a common quality threshold of of the category-level top-1 score (one-position-per-step decoding), GRID achieves up to decoding-step speedup over the fastest competing sampler across the three categories (Section 5.2). Finally, across four MDMs and four standard code and math benchmarks, GRID achieves the highest decoding speed for all model–task settings, improving over the fastest competing sampler by – on average while maintaining comparable accuracy (Section 5.2).
2 Related Work
MDM parallelization can be tackled using two approaches, one that targets the model and trains it to provide fewer decoding steps, and the second that optimizes over inference-time sampling. The works of Di4C (Hayakawa et al., 2025), SDTT (Deschenaux & Gulcehre, 2025), Duo (Sahoo et al., 2025), FS-DFM (Karimi Monsefi et al., 2025), dParallel (Chen et al., 2025b), and dUltra (Chen et al., 2025a) belong to the first category, training or distilling models for improved parallel decoding. Differently, training-free samplers use signals such as confidence, entropy, prediction stability, lookahead, or positional separation (Wu et al., 2025; Ben-Hamu et al., 2026; Kim et al., 2026b; Zhang et al., 2026; Luxembourg et al., 2025), without explicitly estimating pairwise compatibility between positions decoded together.
Dependency-aware methods estimate such coupling directly. PUNT (Azangulov et al., 2026) probes the model with additional forward passes, while DEMASK (Ringel et al., 2026) trains a dependency predictor. Among attention-based methods, DAWN (Luo et al., 2026) and DAPD (Kim et al., 2026a) are particularly related: both use direct attention-derived coupling between masked positions, with a key difference being their selection procedure. CLAD (Qi et al., 2026) also derives compatibility signals from self-attention. These methods, however, do not explicitly aggregate connectivity through indirect paths in the attention-derived graph. GRID instead uses effective resistance to aggregate both direct and indirect connectivity. Appendix K provides additional discussion of related acceleration methods.
3 Pairwise Dependency and Multi-Hop Connectivity
Parallel decoding and pairwise dependency.
Consider a MDM parameterized by at decoding step , with a partially decoded sequence of length . Let denote the set of currently masked positions and the unknown token at position . For each , the model provides the conditional marginal
In parallel decoding, a set of positions is jointly committed using these per-position predictions, implicitly approximating their joint conditional distribution by a product of marginals,
This factorization is exact when the positions in are conditionally independent given . When they are coupled, however, committing them simultaneously ignores information that one position could provide about another, potentially yielding mutually inconsistent predictions (Kim et al., 2026a; Luo et al., 2026).
For a pair of masked positions , this dependence can be probed by asking how the prediction at changes after revealing . Following prior work (Ringel et al., 2026; Azangulov et al., 2026), let
where is the highest probability token at position given decoding state , and let denote the state obtained by replacing the mask at with .
Definition 1 (Counterfactual pairwise dependency).
For , define
K_{i\leftarrow j}\;\triangleq\;\mathrm{KL}\!\left(p_{\theta}(x^{i}\mid x_{t})\;\middle\|\;p_{\theta}(x^{i}\mid x_{t}^{+j})\right),
where denotes the Kullback–Leibler divergence between , conditioned on given state , before and after unmasking token . A small value means revealing has little effect on the prediction at , while a large value indicates stronger dependence. Computing the full counterfactual dependency matrix is expensive, as it requires additional forward passes per decoding step, one for each . We therefore seek a dependency proxy that requires no additional forward passes.
Effective resistance as a pairwise coupling score.
Effective resistance is a well-known connectivity measure in graph theory, inspired by electrical circuits (Klein & Randić, 1993). Nodes that have multiple connecting paths through both single-hop and multi-hop connections promote improved electrical flow, and thus lead to low effective resistance. In the context of MDMs and attention-based sampling (Kim et al., 2026a; Luo et al., 2026), a directed graph is obtained from the attention weights at each forward pass. We additionally symmetrize the directed attention weights by averaging the two directions, yielding a connected undirected weighted graph with symmetric, nonnegative adjacency matrix . Here, denotes the weight of edge , and .
Let denote the effective resistance between nodes and . Denote the full vertex set by , and let denote the set after excluding nodes and . Let be the weighted degree of node . The inverse ER can be expanded as (more detail in Appendix C).
R_{ij}^{-1}=\underbrace{A_{ij}\vphantom{\sum_{k,\ell\in S}\frac{A_{ik}A_{k\ell}A_{\ell j}}{d_{k}d_{\ell}}}}_{\text{1-hop}}+\underbrace{\sum_{k\in S}\frac{A_{ik}A_{kj}}{d_{k}}\vphantom{\sum_{k,\ell\in S}\frac{A_{ik}A_{k\ell}A_{\ell j}}{d_{k}d_{\ell}}}}_{\text{2-hop}}+\underbrace{\sum_{k,\ell\in S}\frac{A_{ik}A_{k\ell}A_{\ell j}}{d_{k}d_{\ell}}\vphantom{\sum_{k,\ell\in S}\frac{A_{ik}A_{k\ell}A_{\ell j}}{d_{k}d_{\ell}}}}_{\text{3-hop}}+\underbrace{\cdots\vphantom{\sum_{k,\ell\in S}\frac{A_{ik}A_{k\ell}A_{\ell j}}{d_{k}d_{\ell}}}}_{\text{4+ hops}}.
As can be seen, the first term captures the single-hop/direct connection between and and the subsequent terms capture the two-hop, three-hop and -hop connectivity through intermediate nodes. Thereby, even if two nodes have a weak direct edge, as portrayed in the baker–cake pair in Figure 1, inverse ER will still get a higher score contributed by multi-hop connectivity. Inverse ER can thus be a pairwise coupling score, where a high , or equivalently low , corresponds to stronger connectivity between and . A full derivation of the above expansion is included in Appendix C.
Note there exist other graph measures that incorporate direct and indirect route connections, such as Katz Similarity (Katz, 1953) and Heat Kernel (Kondor & Lafferty, 2002). An empirical comparison in Appendix I.2 between the three reveals they can all serve as effective pairwise dependency scores, but ER is more appealing as it can be used out-of-the-box without tuning extra hyper-parameters, whereas Katz and Heat Kernel require tuning an additional decay or time-scale parameter.
While the previously defined counterfactual dependency is directional, effective resistance on the undirected attention-derived graph is symmetric. Nonetheless, this symmetry is better suited for pairwise co-decoding, which requires a single compatibility score for each pair of positions. Inverse ER captures multi-hop connectivity in the attention-derived graph and is used here as a proxy for the model’s underlying pairwise dependency between positions. We validate this proxy against counterfactual dependency as a model-grounded reference.
As with other attention-based samplers, the attention graph is only a structural proxy for dependencies between masked positions, rather than an exact representation of their underlying probabilistic relationships. Nevertheless, the following counterfactual experiment provides empirical evidence that inverse ER is a useful dependency proxy, while not guaranteeing joint consistency when multiple tokens are decoded together.
Counterfactual-dependency validation.
Figure 2: HumanEval with LLaDA-8B-Instruct. Shaded bands denote SEM across diagnostic states.
To isolate the effect of the pairwise coupling score, we perform the following. At a given decoding state, we compute either direct-attention or inverse-ER scores over the same candidate masked positions, and use the same greedy rule to select a set of four positions. We then evaluate the dependency within each selected set using the counterfactual dependency from Definition 1. For a selected set , let denote the average over all pairwise symmetric dependencies among positions in . To measure how close the selected set is to the lowest-dependency candidate set, we define the normalized dependency regret
where is the minimum over all candidate four-position sets and is their mean. A normalized regret of zero is obtained for the optimal set, while one corresponds to the mean of a uniformly random candidate set. Figure 2 reports this regret on the HumanEval dataset (Chen et al., 2021) across different confidence thresholds. As can be seen, inverse-ER achieves lower regret at every evaluated threshold, and the same trend holds across the four standard code and math benchmarks evaluated in Section 5.2. The full protocol and remaining results are provided in Appendix B.
4 GRID: Effective-Resistance Parallel Decoding
We instantiate the inverse-ER proxy of Section 3 in a training-free parallel sampler, GRID (Graph Resistance Independent Decoding). GRID builds on DAWN’s attention aggregation, sink filtering, and confidence-ordered greedy selection procedure (Luo et al., 2026), replacing its direct-attention conflict rule with normalized inverse-ER coupling and a step-dependent coupling threshold. GRID thereby captures multi-hop relationships between masked positions. Algorithm 1 summarizes one denoising step.
Graph construction.
Following DAWN, we average attention across heads of the final four transformer layers and filter attention sinks. The sink filter suppresses positions that attract broadly high attention and can otherwise dominate pairwise scores. We then zero the diagonal and restrict the graph to the currently masked positions . Let denote the resulting masked-position attention matrix. We symmetrize it by averaging the two directions, , yielding a symmetric weighted adjacency matrix. Because attention is computed over the full sequence before this restriction, prompt tokens and already-unmasked positions still affect the attention weights, but are not retained as vertices in the resistance computation.
Effective-resistance computation.
Before computing ER, we apply a modularity-based correction to remove the degree-expected background from the attention graph. For and , define
Here is the expected edge weight under the weighted configuration-model null used in modularity (Newman & Girvan, 2004; Newman, 2004). The correction retains only positive connectivity above this degree-expected background, without introducing an additional tunable edge threshold. We use this correction to prevent broadly connected, high-degree nodes from contributing through many indirect paths and inflating the resulting pairwise coupling under ER. We then compute ER on the denoised graph . Rather than evaluating the expansion in Equation 1 directly, we use the equivalent Laplacian representation. Let denote the degree matrix of , with , and define the graph Laplacian . ER is then computed as
where is the Moore–Penrose pseudoinverse.
Algorithm 1 GRID: one denoising step
1:
Input: masked positions M, marginals
\{\mathbf{p}_{i}\}_{i\in M}, attention maps
2:
Parameters: block size B, thresholds
\tau_{\mathrm{high}},\tau_{\mathrm{low}}, q_{0},\delta
3:
\mathbf{A}\leftarrow head- and layer-averaged, sink-filtered,
symmetrized attention restricted to M
4:
Form \widehat{\mathbf{A}} by removing the degree-expected
background from \mathbf{A} via Equation 2
5:
Compute effective resistance R_{ij} on
\widehat{\mathbf{A}} via Equation 3
6:
Compute pairwise couplings q_{ij} and coupling threshold
q_{t}^{\star} via Equation 4
7:
Select high-confidence positions
U\leftarrow\{i\in M:\operatorname{conf}(i)\geq\tau_{\mathrm{high}}\}
8:
Form candidate set
C\leftarrow\{i\in M\setminus U:\operatorname{conf}(i)\geq\tau_{\mathrm{low}}\}
9:
S\leftarrow greedily select non-conflicting positions from C
in decreasing confidence order
10:
subject to q_{ij}\leq q_{t}^{\star} for all distinct i,j\in S
11:
U\leftarrow U\cup S
12:
if U=\varnothing then
13:
U\leftarrow\{\arg\max_{i\in M}\operatorname{conf}(i)\}
14:
end if
15:
return U
Effective-resistance coupling.
GRID uses inverse-ER as a pairwise coupling score, where two candidates are deemed coupled if they surpass a given threshold. As positions are committed, the graph changes in size and overall edge-weight scale, so we instead compute the normalized coupling measure using the mean weighted degree and the step-dependent threshold
where is the block size, the current number of masked tokens, the initial coupling threshold, and controls how much the threshold increases as the block empties. Larger indicates stronger coupling, and two candidate positions are treated as conflicting when . The normalization removes uniform graph-scale drift across decoding steps. Appendix G provides the corresponding scale-invariance argument. As decreases, increases from toward , gradually relaxing the coupling criterion and allowing greater parallelism as more context becomes available.
Position selection.
GRID follows DAWN’s confidence-gated greedy selection procedure. Let denote the confidence of masked position . Positions with are committed directly. From the remaining positions with , GRID considers candidates in descending confidence order and greedily selects each candidate that does not conflict with any candidate already selected in this stage. If neither stage selects a position, GRID commits the most-confident masked position. Appendix D provides the full implementation details.
5 Results
We first introduce Dep-Bench, a controlled benchmark whose task-dependency structure is known by construction, allowing us to study how decoding performance changes with dependency hop distance (Section 5.1). We then evaluate GRID on ParallelBench (Kang et al., 2026) and on standard code and math benchmarks across multiple MDMs (Section 5.2).
5.1 Dep-Bench: Controlled Dependency Benchmark
Standard end-to-end (E2E) benchmarks do not expose ground-truth dependency structures at controlled dependency depths, making it difficult to isolate how samplers handle multi-hop dependencies. We therefore introduce Dep-Bench, a masked-infill benchmark with dependencies known by construction across four structures and controlled dependency depths (Figure 3). We use dependency depth to describe how far a masked position lies downstream in the known dependency graph. For example, in Figure 3*(a)*, has depth because it depends only on the provided values and , while has depth . This enables direct analysis of whether multi-hop scoring improves over direct attention as dependency depth increases.
Figure 3: Overview of Dep-Bench. (a) Illustrative arithmetic-chain example, its ground-truth dependency graph, and direct-attention versus inverse-ER coupling maps. The highlighted pair has no direct edge but is connected by multiple indirect paths. Appendix A shows the corresponding coupling maps computed from LLaDA-8B-Instruct’s actual attention maps on a real Dep-Bench example. (b) The four dependency structures used in the benchmark; node color denotes dependency depth.
Figure 4: Controlled DAWN–GRID comparison on Dep-Bench. Results using LLaDA-8B-Instruct, with one dataset per column. (a) Slot accuracy vs. average decoding steps across dependency-threshold sweeps. (b) Slot accuracy versus dependency depth at a matched -step budget. (c) Trade-off between dependent co-decoding and excess serialization across dependency-threshold sweeps. Shaded bands are bootstrap confidence intervals over examples.
The five datasets vary in dependency structure, token layout, and surface form, spanning banded and interleaved chains, a converging pyramid, and a D lattice (Figure 3). Each dataset contains examples with freshly sampled values and identifiers. Each example contains three independent groups of six masked single-digit answers ( in total), with dependencies given by the dataset’s known directed acyclic graph. Appendix A gives the exact constructions and worked examples.
To isolate the dependency-scoring mechanism, we compare simplified variants of GRID and DAWN (Luo et al., 2026) using the same confidence-ordered greedy selection procedure but different dependency scores: direct attention-edge coupling for DAWN and inverse ER for GRID. For each variant, we sweep its dependency-score threshold, which controls the level of parallelism. We use slot accuracy, the fraction of the masked answers predicted correctly, to measure prediction quality. The controlled-comparison protocol is detailed in Appendix H.
The controlled comparison shows that GRID improves the accuracy–steps trade-off over DAWN, with a larger advantage at greater dependency depths, while also incorrectly co-decoding fewer dependent pairs and requiring fewer excess decoding steps. Figure 4*(a)* shows that GRID Pareto-dominates DAWN on all five datasets, achieving higher slot accuracy across the evaluated decoding-step budgets. At a matched -step budget, Figure 4*(b)* shows that the two methods are comparable at dependency depth , but the gap increases with depth. On Banded Chain, for example, accuracy at is for GRID versus for DAWN, consistent with the multi-hop motivation of Section 3. Figure 4*(c)* evaluates decoding relative to the known Dep-Bench dependency graph. The x-axis measures the mean number of dependent pairs incorrectly co-decoded in the same step, and the y-axis measures the mean number of decoding steps beyond the graph-implied minimum. The origin therefore represents the optimal point, with zero dependent pairs incorrectly co-decoded and zero excess decoding steps. GRID’s curves lie closer to the origin across all five datasets, indicating fewer dependent pairs incorrectly co-decoded and fewer excess decoding steps.
5.2 Decoding Performance on Public Benchmarks
We evaluate GRID on the recently introduced ParallelBench (Kang et al., 2026) dataset, as well as on four standard code and math benchmarks: HumanEval (Chen et al., 2021), MBPP (Austin et al., 2021b), GSM8K (Cobbe et al., 2021), and MATH (Hendrycks et al., 2021). We use the following MDMs throughout our evaluations: LLaDA-8B-Instruct (Nie et al., 2026), LLaDA 1.5 (Zhu et al., 2026), LLaDA 2 Mini (16B) (Bie et al., 2025), and Dream-v0-Instruct-7B (Ye et al., 2025).
We compare against top-1 decoding (one position per step), EB-Sampler (Ben-Hamu et al., 2026), Fast-dLLM (Wu et al., 2025), KLASS (Kim et al., 2026b), DAWN (Luo et al., 2026), CLAD (Qi et al., 2026) and PUNT (Azangulov et al., 2026). We include PUNT only on the evaluations of the standard LLM benchmarks as they report TPS and speedup, accounting for the additional forward passes that PUNT requires, whereas ParallelBench reports only decoding steps. DAWN (Luo et al., 2026) and DAPD (Kim et al., 2026a) both use direct attention-derived coupling between masked positions, differing primarily in their position-selection procedures. We use DAWN as the main direct-attention baseline, while DAPD is reported separately in Appendix F because its official implementation did not yield an accuracy-comparable operating point under our evaluation.
ParallelBench.
Table 1: ParallelBench matched-quality step speedup (, ) over the fastest competing sampler.
| Category | |||
|---|---|---|---|
| Waiting Line | 1.02 | 1.06 | 0.98 |
| Text Writing | 1.57 | 2.02 | 1.95 |
| Puzzles | 1.65 | 1.31 | 1.36 |
ParallelBench (Kang et al., 2026) contains tasks grouped into three categories: Waiting Line, Text Writing, and Puzzles. We merge the tasks within each category for category-level evaluation. For each sampler, we evaluate the parameter settings that control its speed–quality trade-off, applying each setting consistently across the entire category. At each quality target, we select the lowest-step setting that reaches the specified fraction of the category-level top-1 score (one-position-per-step decoding). We then compare GRID with the fastest competing sampler for each category and target. At the target, GRID achieves matched-quality decoding-step speedups of on Waiting Line, on Text Writing, and on Puzzles (Table 1). Additional protocol details, representative score–steps trade-offs, and robustness results are provided in Appendix E.
Standard code and math benchmarks.
We follow DAWN’s practice of tuning the hyper-parameters once per model on HumanEval, and applying the same configuration on the other three datasets. A one-at-a-time hyperparameter sensitivity analysis is provided in Appendix I.3, and full implementation details are given in Appendix D. Results in Table 2 show that GRID attains the highest speedup in all model–benchmark settings. Averaged across models, its speed improvement over the fastest competing sampler ranges from to , with mean accuracy changes of , , , and on HumanEval, MBPP, GSM8K, and MATH, respectively (see Figure 1*(c)*). GRID also uses the fewest decoding steps among single forward-pass samplers in all settings. PUNT requires fewer nominal decoding steps in some settings, but uses additional model evaluations within each step, reducing throughput and speedup. DAWN is our closest structural baseline as we perform roughly the same confidence-guided position selection strategy, but replace the direct-attention coupling score with inverse-ER. Nevertheless, GRID achieves comparable accuracy with fewer decoding steps, across all 16 model-benchmark combinations.
Table 2: End-to-end parallel decoding on four benchmarks across four MDMs. We report task accuracy (Acc, ), decoding steps (Steps, ), tokens per second (TPS, ), and speedup over top-1 decoding (Speedup, ). Light-gray rows denote dependency-aware samplers (DAWN, CLAD, PUNT, and GRID); PUNT uses additional model evaluations per decoding step. Bold marks the highest speedup in each model–benchmark setting, while underline marks the second highest.
| HumanEval | MBPP | GSM8K | MATH | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | Acc | Steps | TPS | Speedup | Acc | Steps | TPS | Speedup | Acc | Steps | TPS | Speedup | Acc | Steps | TPS | Speedup |
| LLaDA-8B-Instruct | ||||||||||||||||
| Top-1 | 42.1 | 256 | 5.90 | 1.00 | 42.0 | 256 | 2.07 | 1.00 | 78.7 | 256 | 2.06 | 1.00 | 32.9 | 256 | 2.85 | 1.00 |
| EB-Sampler | 37.2 | 59.5 | 25.39 | 4.30 | 41.0 | 52.6 | 10.11 | 4.88 | 78.2 | 57.9 | 9.15 | 4.44 | 32.6 | 73.2 | 10.00 | 3.51 |
| Fast-dLLM | 37.8 | 58.7 | 26.04 | 4.41 | 42.0 | 51.5 | 10.23 | 4.94 | 78.5 | 55.2 | 9.59 | 4.66 | 32.0 | 71.8 | 10.19 | 3.58 |
| KLASS | 39.6 | 104.9 | 14.5 | 2.46 | 41.0 | 91.1 | 5.8 | 2.80 | 74.6 | 101.0 | 5.2 | 2.52 | 31.6 | 121.0 | 6.1 | 2.14 |
| DAWN | 36.6 | 58.8 | 25.52 | 4.33 | 41.3 | 53.7 | 9.93 | 4.80 | 77.6 | 55.5 | 9.29 | 4.51 | 32.3 | 72.6 | 9.93 | 3.48 |
| CLAD | 37.8 | 60.0 | 25.27 | 4.28 | 41.6 | 52.7 | 9.92 | 4.79 | 79.3 | 55.5 | 9.30 | 4.51 | 31.7 | 72.8 | 9.91 | 3.48 |
| PUNT | 39.6 | 53.6 | 5.55 | 0.94 | 39.8 | 44.1 | 2.11 | 1.02 | 75.9 | 54.9 | 1.94 | 0.94 | 33.3 | 64.5 | 2.29 | 0.80 |
| GRID (ours) | 37.8 | 49.9 | 29.11 | 4.93 | 42.4 | 43.4 | 11.34 | 5.48 | 78.1 | 47.9 | 10.67 | 5.18 | 32.1 | 62.3 | 11.46 | 4.02 |
| LLaDA-1.5 | ||||||||||||||||
| Top-1 | 43.9 | 256 | 6.03 | 1.00 | 42.6 | 256 | 2.25 | 1.00 | 82.0 | 256 | 2.08 | 1.00 | 34.8 | 256 | 2.87 | 1.00 |
| EB-Sampler | 37.2 | 58.3 | 26.49 | 4.39 | 40.2 | 56.4 | 10.38 | 4.61 | 80.7 | 57.4 | 9.30 | 4.47 | 33.4 | 70.9 | 10.36 | 3.61 |
| Fast-dLLM | 36.6 | 55.3 | 27.75 | 4.60 | 42.0 | 55.2 | 10.55 | 4.69 | 81.2 | 54.9 | 9.70 | 4.66 | 33.1 | 69.5 | 10.56 | 3.68 |
| KLASS | 37.8 | 104.9 | 14.65 | 2.43 | 42.8 | 102.0 | 5.86 | 2.60 | 78.4 | 101.8 | 5.26 | 2.53 | 31.7 | 119.5 | 6.16 | 2.15 |
| DAWN | 38.4 | 57.7 | 26.59 | 4.41 | 41.9 | 57.8 | 10.24 | 4.55 | 81.3 | 54.9 | 9.42 | 4.53 | 33.1 | 70.1 | 10.31 | 3.59 |
| CLAD | 37.8 | 55.9 | 27.35 | 4.54 | 41.6 | 57.0 | 10.19 | 4.53 | 80.6 | 55.1 | 9.41 | 4.52 | 32.7 | 70.3 | 10.29 | 3.59 |
| PUNT | 40.9 | 55.3 | 5.60 | 0.93 | 41.0 | 50.2 | 2.20 | 0.98 | 79.8 | 55.1 | 1.95 | 0.94 | 33.4 | 64.6 | 2.30 | 0.80 |
| GRID (ours) | 40.2 | 51.1 | 29.31 | 4.86 | 40.8 | 49.4 | 11.34 | 5.04 | 81.1 | 49.8 | 10.30 | 4.95 | 33.0 | 63.8 | 11.25 | 3.92 |
| LLaDA 2 Mini (16B) | ||||||||||||||||
| Top-1 | 77.4 | 426.3 | 1.19 | 1.00 | 68.3 | 164.9 | 0.91 | 1.00 | 92.3 | 178.3 | 0.84 | 1.00 | 42.7 | 426.7 | 0.97 | 1.00 |
| EB-Sampler | 74.4 | 131.3 | 3.77 | 3.17 | 63.5 | 59.9 | 2.44 | 2.69 | 90.8 | 74.3 | 2.06 | 2.44 | 42.3 | 151.0 | 2.74 | 2.84 |
| Fast-dLLM | 75.6 | 144.8 | 3.65 | 3.07 | 67.5 | 63.3 | 2.34 | 2.58 | 92.0 | 81.9 | 1.83 | 2.17 | 42.3 | 162.9 | 2.53 | 2.62 |
| KLASS | 73.8 | 192.6 | 2.51 | 2.11 | 63.7 | 85.8 | 1.71 | 1.88 | 91.1 | 98.4 | 1.51 | 1.80 | 41.5 | 209.9 | 1.90 | 1.96 |
| DAWN | 73.8 | 130.3 | 3.77 | 3.17 | 64.9 | 56.5 | 2.50 | 2.75 | 91.3 | 69.4 | 2.04 | 2.41 | 42.3 | 142.8 | 2.75 | 2.84 |
| CLAD | 75.0 | 137.3 | 3.63 | 3.05 | 66.3 | 59.1 | 2.34 | 2.58 | 91.4 | 73.5 | 1.86 | 2.21 | 42.1 | 152.7 | 2.58 | 2.67 |
| PUNT | 76.8 | 103.7 | 1.03 | 0.87 | 67.1 | 42.2 | 0.65 | 0.72 | 90.9 | 52.0 | 0.60 | 0.71 | 42.1 | 112.3 | 0.74 | 0.77 |
| GRID (ours) | 76.8 | 110.5 | 4.65 | 3.91 | 65.1 | 48.5 | 2.80 | 3.09 | 91.7 | 61.7 | 2.26 | 2.68 | 41.9 | 126.1 | 3.10 | 3.21 |
| Dream-v0-Instruct-7B | ||||||||||||||||
| Top-1 | 60.4 | 256 | 3.59 | 1.00 | 55.3 | 256 | 0.68 | 1.00 | 78.6 | 256 | 1.42 | 1.00 | 38.3 | 256 | 2.42 | 1.00 |
| EB-Sampler | 54.3 | 65.6 | 12.87 | 3.58 | 51.8 | 31.1 | 5.46 | 8.03 | 78.5 | 59.3 | 6.25 | 4.40 | 38.1 | 81.3 | 7.76 | 3.21 |
| Fast-dLLM | 57.3 | 70.8 | 11.95 | 3.33 | 54.4 | 33.5 | 5.13 | 7.54 | 77.9 | 62.9 | 5.88 | 4.14 | 38.2 | 86.9 | 7.24 | 2.99 |
| KLASS | 58.5 | 108.6 | 6.48 | 1.81 | 59.6 | 55.5 | 3.16 | 4.65 | 75.0 | 111.3 | 3.09 | 2.18 | 35.2 | 129.9 | 3.78 | 1.56 |
| DAWN | 54.3 | 60.7 | 13.67 | 3.81 | 52.9 | 26.8 | 6.21 | 9.13 | 77.0 | 51.8 | 6.67 | 4.70 | 37.8 | 71.4 | 8.31 | 3.43 |
| CLAD | 54.3 | 60.6 | 14.59 | 4.06 | 52.9 | 26.0 | 6.67 | 9.81 | 76.4 | 48.3 | 7.31 | 5.15 | 36.9 | 66.7 | 9.18 | 3.79 |
| PUNT | 54.3 | 55.4 | 3.33 | 0.93 | 56.8 | 23.9 | 1.40 | 2.06 | 76.1 | 43.6 | 1.64 | 1.15 | 37.2 | 64.4 | 1.94 | 0.80 |
| GRID (ours) | 55.5 | 54.7 | 15.25 | 4.25 | 56.5 | 25.0 | 6.71 | 9.87 | 77.0 | 45.7 | 7.61 | 5.36 | 37.2 | 61.7 | 9.81 | 4.05 |
Speed–quality analyses and ablations.
To complement the single operating-point E2E results in Table 2, we explore multiple speed-quality tradeoffs. On ParallelBench, we sweep all competing parallel samplers and compare them at category-level matched-quality targets. Using the same simplified GRID–DAWN comparison as in Section 5.1, Appendix H repeats this analysis on the same four standard benchmarks as Table 2, where GRID achieves a consistently stronger accuracy–steps frontier, with the advantage increasing at tighter decoding budgets. Appendix I isolates the added effect of modularity denoising alone, versus the entire inverse-ER coupling score. Finally, we evaluate the performance of alternative multi-hop graph connectivity measures in Appendix I.2, specifically Katz similarity (Katz, 1953) and heat kernel (Kondor & Lafferty, 2002), and show they also improve over direct-edge attention, but with proper hyper-parameter tuning.
6 Limitations
A common limitation shared with other attention-based samplers is that direct attention is only a proxy for true masked token dependency. Although the counterfactual-dependency validation in Figure 2 supports inverse ER as a useful dependency proxy across the evaluated benchmarks, this may not generalize to other tasks or settings. A second limitation is the loss of directionality – while inverse-ER is symmetric, counterfactual dependency is directional. This may suffice for co-decoding which is naturally symmetric, but directional information may provide richer scheduling rules and further improve performance. We leave this direction for future work. Lastly, computational scaling is another limitation, as dense ER computation requires a Laplacian pseudoinverse at each decoding step and scales as . For a block size of , used in all of our experiments, the additional cost overhead is only , but becomes prohibitive in very large block sizes. An in-depth analysis is presented in Appendix J.
7 Conclusion
We introduced GRID, a training-free parallel sampler for MDMs that uses effective resistance on an attention-derived graph to identify weakly coupled positions for parallel decoding. The exact expansion of inverse-ER into direct and multi-hop connectivity contributions provides a structural motivation for this proxy, while our proposed benchmark, Dep-Bench, enables controlled evaluation against known graph structures and dependency depths. Across the three categories of ParallelBench, GRID achieves up to decoding-step speedup over the fastest competing sampler, for a given quality threshold of of the category-level top-1 score. Finally, across four MDMs and four leading LLM reasoning benchmarks, GRID receives the highest speedup in all settings, improving over the fastest competing sampler by - on average, while maintaining comparable accuracy. Together, these results support multi-hop connectivity as a useful signal for dependency-aware parallel decoding.
AI use statement
In this work, we used generative AI tools solely for language polishing, improving readability, and minimal code editing for the experiments. We did not use generative AI tools to generate research ideas, develop the methodology, conduct experiments, or formulate scientific claims. We reviewed all AI-assisted text and code and verified that they accurately reflect the authors’ intended meaning and experimental procedures. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
Reproducibility statement
GRID is specified in Section 4 and Algorithm 1. Appendix A specifies the Dep-Bench construction, Appendix B provides the counterfactual-dependency validation, Appendix E provides the ParallelBench protocol, representative score–steps frontiers, and robustness analyses, and Appendix H provides the controlled DAWN–GRID comparisons. Appendices D, G and I provide additional implementation, hyperparameter, normalization, and ablation details. Upon acceptance, we will release the implementation code on GitHub, together with the scripts used to generate Dep-Bench and the resulting datasets.
References
- Austin et al. (2021a) Jacob Austin, Daniel D Johnson, Jonathan Ho, Daniel Tarlow, and Rianne Van Den Berg. Structured denoising diffusion models in discrete state-spaces. Advances in neural information processing systems, 34:17981–17993, 2021a.
- Austin et al. (2021b) Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021b.
- Azangulov et al. (2026) Iskander Azangulov, Teodora Pandeva, Niranjani Prasad, Javier Zazo, and Sushrut Karmalkar. Parallel sampling from masked diffusion models via conditional independence testing. In International Conference on Learning Representations, volume 2026, pp. 140485–140521, 2026.
- Ben-Hamu et al. (2026) Heli Ben-Hamu, Itai Gat, Daniel Severo, Niklas S Nolte, and Brian Karrer. Accelerated sampling from masked diffusion models via entropy bounded unmasking. Advances in Neural Information Processing Systems, 38:55981–56007, 2026.
- Bie et al. (2025) Tiwei Bie, Maosong Cao, Kun Chen, Lun Du, Mingliang Gong, Zhuochen Gong, Yanmei Gu, Jiaqi Hu, Zenan Huang, Zhenzhong Lan, et al. Llada2. 0: Scaling up diffusion language models to 100b. arXiv preprint arXiv:2512.15745, 2025.
- Chen et al. (2021) Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
- Chen et al. (2025a) Shirui Chen, Jiantao Jiao, Lillian J Ratliff, and Banghua Zhu. dultra: Ultra-fast diffusion language models via reinforcement learning. arXiv preprint arXiv:2512.21446, 2025a.
- Chen et al. (2025b) Zigeng Chen, Gongfan Fang, Xinyin Ma, Ruonan Yu, and Xinchao Wang. dparallel: Learnable parallel decoding for dllms. arXiv preprint arXiv:2509.26488, 2025b.
- Cobbe et al. (2021) Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
- Deschenaux & Gulcehre (2025) Justin Deschenaux and Caglar Gulcehre. Beyond autoregression: Fast llms via self-distillation through time. In International Conference on Learning Representations, 2025.
- Hayakawa et al. (2025) Satoshi Hayakawa, Yuhta Takida, Masaaki Imaizumi, Hiromi Wakaki, and Yuki Mitsufuji. Distillation of discrete diffusion through dimensional correlations. In International Conference on Machine Learning, 2025.
- Hendrycks et al. (2021) Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.
- Kang et al. (2026) Wonjun Kang, Kevin Galim, Seunghyuk Oh, Minjae Lee, Yuchen Zeng, Shuibai Zhang, Coleman Hooper, Yuezhou Hu, Hyung Koo, Nam Ik Cho, et al. Parallelbench: Understanding the trade-offs of parallel decoding in diffusion llms. In International Conference on Learning Representations, volume 2026, pp. 89900–89938, 2026.
- Karimi Monsefi et al. (2025) Amin Karimi Monsefi, Nikhil Bhendawade, Manuel Rafael Ciosici, Dominic Culver, Yizhe Zhang, and Irina Belousova. Fs-dfm: Fast and accurate long text generation with few-step diffusion language models. arXiv preprint arXiv:2509.20624, 2025.
- Katz (1953) Leo Katz. A new status index derived from sociometric analysis. Psychometrika, 18(1):39–43, 1953.
- Kim et al. (2026a) Bumjun Kim, Dongjae Jeon, Moongyu Jeon, and Albert No. Dapd: Dependency-aware parallel decoding via attention for diffusion llms. arXiv preprint arXiv:2603.12996, 2026a.
- Kim et al. (2026b) Seo Hyun Kim, Sunwoo Hong, Hojung Jung, Youngrok Park, and Se-Young Yun. Klass: Kl-guided fast inference in masked diffusion models. Advances in Neural Information Processing Systems, 38:92267–92301, 2026b.
- Klein & Randić (1993) D. J. Klein and M. Randić. Resistance distance. Journal of Mathematical Chemistry, 12(1):81–95, 1993. doi: 10.1007/BF01164627.
- Kondor & Lafferty (2002) Risi Imre Kondor and John Lafferty. Diffusion kernels on graphs and other discrete structures. In Proceedings of the 19th international conference on machine learning, volume 2002, pp. 315–322, 2002.
- Lou et al. (2023) Aaron Lou, Chenlin Meng, and Stefano Ermon. Discrete diffusion modeling by estimating the ratios of the data distribution. arXiv preprint arXiv:2310.16834, 2023.
- Luo et al. (2026) Lizhuo Luo, Zhuoran Shi, Jiajun Luo, Zhi Wang, Shen Ren, Wenya Wang, and Tianwei Zhang. Dawn: Dependency-aware fast inference for diffusion llms. arXiv preprint arXiv:2602.06953, 2026.
- Luxembourg et al. (2025) Omer Luxembourg, Haim Permuter, and Eliya Nachmani. Plan for speed: Dilated scheduling for masked diffusion language models. arXiv preprint arXiv:2506.19037, 2025.
- Newman (2004) Mark EJ Newman. Analysis of weighted networks. Physical Review E, 70(5):056131, 2004.
- Newman & Girvan (2004) Mark EJ Newman and Michelle Girvan. Finding and evaluating community structure in networks. Physical Review E, 69(2):026113, 2004.
- Nie et al. (2026) Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Ji-Rong Wen, and Chongxuan Li. Large language diffusion models. Advances in Neural Information Processing Systems, 38:50608–50646, 2026.
- Ou et al. (2025) Jingyang Ou, Shen Nie, Kaiwen Xue, Fengqi Zhu, Jiacheng Sun, Zhenguo Li, and Chongxuan Li. Your absorbing discrete diffusion secretly models the conditional distributions of clean data. In International Conference on Learning Representations, volume 2025, pp. 64972–65009, 2025.
- Qi et al. (2026) Heqiang Qi, Wei Huang, Mingyuan Bai, and Xiangming Meng. Cluster-level attention-guided parallel decoding for masked diffusion language models. arXiv preprint arXiv:2605.29607, 2026.
- Ringel et al. (2026) Liran Ringel, Ameen Ali, and Yaniv Romano. Dependency-guided parallel decoding in discrete diffusion language models. arXiv preprint arXiv:2604.02560, 2026.
- Sahoo et al. (2024) Subham S Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan, Edgar Marroquin, Justin T Chiu, Alexander Rush, and Volodymyr Kuleshov. Simple and effective masked diffusion language models. Advances in Neural Information Processing Systems, 37:130136–130184, 2024.
- Sahoo et al. (2025) Subham Sekhar Sahoo, Justin Deschenaux, Aaron Gokaslan, Guanghan Wang, Justin Chiu, and Volodymyr Kuleshov. The diffusion duality. In International Conference on Machine Learning, 2025.
- Shi et al. (2024) Jiaxin Shi, Kehang Han, Zhe Wang, Arnaud Doucet, and Michalis Titsias. Simplified and generalized masked diffusion for discrete data. Advances in neural information processing systems, 37:103131–103167, 2024.
- Wu et al. (2025) Chengyue Wu, Hao Zhang, Shuchen Xue, Zhijian Liu, Shizhe Diao, Ligeng Zhu, Ping Luo, Song Han, and Enze Xie. Fast-dllm: Training-free acceleration of diffusion llm by enabling kv cache and parallel decoding. arXiv preprint arXiv:2505.22618, 2025.
- Xiao et al. (2024) Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. In International Conference on Learning Representations, volume 2024, pp. 21875–21895, 2024.
- Ye et al. (2025) Jiacheng Ye, Zhihui Xie, Lin Zheng, Jiahui Gao, Zirui Wu, Xin Jiang, Zhenguo Li, and Lingpeng Kong. Dream 7b: Diffusion large language models. arXiv preprint arXiv:2508.15487, 2025.
- Zhang et al. (2026) Haohui Zhang, Zhiye Wang, Xiaoying Gan, Xinbing Wang, and Bo Jiang. Leap: Unlocking dllm parallelism via lookahead early-convergence token detection. arXiv preprint arXiv:2605.10980, 2026.
- Zhu et al. (2026) Fengqi Zhu, Rongzhen Wang, Shen Nie, Xiaolu Zhang, Chunwei Wu, Jun Zhou, Yankai Lin, Ji-Rong Wen, and Chongxuan Li. Llada 1.5: Variance-reduced preference optimization for large language diffusion models. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 11425–11460, 2026.
Appendix A Benchmark Datasets
All five datasets share one skeleton: three symbol-disjoint groups of answers each ( masked answers per example), with all values in –. Each answer is a single-digit combination (a signed sum, or the last digit of a sum) of earlier values. The datasets vary the dependency structure, token layout, and surface form.
Below, each representative prompt is paired with its ground-truth dependency DAG. An arrow denotes a direct dependency: is computed using . Given values are shown as neutral nodes. Each colored [M] in the prompt matches the border color of its corresponding masked node in the graph. Colors indicate correspondence only, not dependency depth. Only direct edges are drawn, so transitive dependencies appear as multi-hop paths. Each graph shows one of the three independent groups in an example. For the interleaved chain, gray lines mark prompt positions occupied by the other two groups.
For the dependency-depth analysis in Figure 4*(b)*, masked positions with no masked predecessors are assigned depth , and every other masked position is assigned one plus the maximum depth of its masked predecessors.
Arithmetic Banded Chain (arith_banded).*
Two seeds are given, and each answer is a signed sum of the two immediately preceding values. Thus every answer has two direct parents, while later answers lie progressively farther from the seeds in the dependency graph.
Example prompt
bw = 6
gu = 6
bd = bw - gu = [M]
gn = gu + bd = [M]
yk = bd + gn = [M]
pn = gn - yk = [M]
ux = yk + pn = [M]
nr = ux - pn = [M]
Ground-truth DAG
The final answers therefore depend transitively on increasingly long paths through earlier answers. The three groups are written as contiguous blocks.
Arithmetic Interleaved Chain (arith_interleaved).*
This dataset uses the same within-group computation, and therefore the same ground-truth DAG, as arith_banded. The difference is token layout: answer lines from the three independent groups are interleaved round-robin, placing directly dependent values farther apart in the prompt.
Example prompt (one group highlighted)
bw = 6
gu = 6
... seed lines from the other groups ...
bd = bw - gu = [M]
... two other-group answer lines ...
gn = gu + bd = [M]
... two other-group answer lines ...
yk = bd + gn = [M]
... two other-group answer lines ...
pn = gn - yk = [M]
... two other-group answer lines ...
ux = yk + pn = [M]
... two other-group answer lines ...
nr = ux - pn = [M]
Ground-truth DAG
The graph is unchanged; only the positions of its nodes in the prompt are spread apart by lines from the other independent groups. This isolates token proximity from dependency structure.
Kinship Pyramid (kinship_lucky).*
Four seed people are given, and each child’s number is the sum of its two named parents. The dependency structure narrows layer by layer (), creating multiple routes from intermediate nodes to later answers.
Example prompt
Cal’s is 6. Bud’s is 6.
Ivo’s is 0. Mel’s is 4.
Fay, child of Cal and Bud, has lucky number [M].
Dar, child of Bud and Ivo, has lucky number [M].
Ida, child of Ivo and Mel, has lucky number [M].
Yan, child of Fay and Dar, has lucky number [M].
Lux, child of Dar and Ida, has lucky number [M].
Rex, child of Yan and Lux, has lucky number [M].
Ground-truth DAG
Coins Chain (coins).*
This dataset preserves the same width-two DAG as arith_banded, but expresses its dependencies through named entities in prose rather than arithmetic equations. Each answer names the two source stalls from which it is formed.
Example prompt
Yale has price 6. Tad has price 6.
Lux, formed from Yale and Tad, has price [M].
Dar, formed from Tad and Lux, has price [M].
Zoe, formed from Lux and Dar, has price [M].
Hal, formed from Dar and Zoe, has price [M].
Ida, formed from Zoe and Hal, has price [M].
Guy, formed from Hal and Ida, has price [M].
Ground-truth DAG
Thus coins and arith_banded share the same dependency topology while differing substantially in surface form.
Dynasty Lattice (dynasty).*
A top row and a left column of seed values are given. Each interior cell is the sum of its north and west neighbours, yielding a two-dimensional lattice with multiple parallel routes between distant answers.
Example prompt
North: Cal 6, Dar 0, Bud 4.
West: Ned 8, Dov 7.
Ada, fed by Cal (north) and Ned (west), has yield [M].
Len, fed by Dar (north) and Ada (west), has yield [M].
Sol, fed by Ada (north) and Dov (west), has yield [M].
Pia, fed by Bud (north) and Len (west), has yield [M].
Ela, fed by Len (north) and Sol (west), has yield [M].
Rue, fed by Pia (north) and Ela (west), has yield [M].
Ground-truth DAG
Unlike the chain datasets, the lattice contains multiple distinct routes between distant answers, providing a controlled setting in which indirect connectivity is structurally prominent.
(a) Direct attention
(b) Inverse-ER coupling
Figure 5: Coupling maps for a real Dep-Bench example. Arithmetic Banded Chain example using LLaDA-8B-Instruct. Green boxes mark the three independent ground-truth dependency groups. (a) Direct-attention coupling computed from the model’s attention maps. (b) Inverse-ER coupling computed from GRID’s modularity-denoised attention graph. Compared with the direct-attention signal, inverse ER shows broader within-group coupling by incorporating indirect paths.
Appendix B Validating the Coupling Measure Against Counterfactual KL
To complement the structural analysis of Section 3, we directly evaluate the coupling construction against the model’s own counterfactual dependency. On real prompts, we compute (Definition 1) by brute force and ask which coupling construction, under one fixed selection rule, selects the most mutually independent set of positions. Unlike Dep-Bench, whose dependency graph is fixed by construction, this diagnostic uses the model itself as the dependency reference. It therefore isolates the coupling construction—the ingredient that distinguishes GRID’s ER-based coupling from direct-attention coupling—from the rest of the decoding procedure.
Protocol.
We run up to prompts per benchmark (HumanEval has only ) with LLaDA-8B-Instruct on the same four benchmarks as Table 2 (HumanEval, MBPP, GSM8K, MATH). For each length- generation, we process the length- generation blocks in order and record at most three diagnostic states per block. At each state, we take up to of the still-masked positions in the current block, uniformly subsampling when more remain. For that state we build the reference dependency matrix by brute force: for each sampled position we unmask only to its argmax token and re-run the model, recording at every other sampled position (Definition 1, one forward pass per sampled position). Since co-decoding commits an unordered pair, the reference target is the symmetrized coupling
against which both measures are scored. Being built directly from , it is available only in this diagnostic and is never used by a sampler at inference.
After recording each state, we advance it independently of the compared measures by committing the two sampled positions with the smallest row sums of , using their current argmax predictions. After at most three analyzed states, we proceed to the next block; positions not committed in earlier blocks remain masked. Thus, both coupling measures are evaluated on the same method-independent sequence of partially decoded states rather than on trajectories induced by either measure.
The candidate set at threshold is the sampled positions with confidence , swept over . We compare two coupling scores: the attention-edge score, which uses the pair’s direct edge, and GRID’s normalized inverse-ER score , computed on the modularity-denoised graph . For the ER computation, the graph contains all positions still masked up to the end of the current block, while selection is restricted to the sampled current-block positions. Each measure then greedily builds a size- set on its own score—seeded at the position of lowest total coupling, then repeatedly adding the position of smallest summed coupling to those already chosen. This is a minimum-coupling analogue of the independent-set selection in Sections 5.1 and 4; the selection rule is kept identical so that the coupling construction is the only method-dependent ingredient.
Metric.
For a selected set , let denote the mean pairwise among its positions, where lower values indicate greater mutual independence. To make states comparable, we report the normalized dependency regret
where is the minimum over all candidate -subsets and is their mean. With at most sampled positions and , there are at most subsets per state, so both quantities are computed exhaustively. Thus, is the best-possible -subset, while corresponds to the mean for a uniformly random -subset. Lower is better. A state contributes to threshold only when at least of its sampled positions clear , ensuring a nontrivial choice among -subsets. Stricter thresholds leave fewer qualifying states, from states at the loosest threshold to at the strictest.
Result.
Across all four datasets and all eight thresholds (Figure 6), inverse-ER coupling yields lower normalized regret than direct-attention coupling at every point—the gap is – in normalized units (mean ). Because the two curves use the same reference , candidate sets, and selection rule and differ only in the coupling construction, the comparison isolates that construction from the rest of the sampler. is computed by exhaustively evaluating all candidate subsets using , and both measures remain above zero regret in the reported results. The relevant result is their consistent ordering: inverse ER has lower regret at every threshold, consistent with the multi-hop motivation of Section 3 and with Dep-Bench (Section 5.1) under a distinct model-grounded reference. Thus, the advantage appears at the level of the coupling construction, independently of the full sampler.
(a) HumanEval
(b) MBPP
(c) GSM8K
(d) MATH
Figure 6: Normalized dependency regret vs. confidence threshold on four benchmarks (LLaDA-8B-Instruct). Lower is better. corresponds to the lowest-dependency candidate -subset, while corresponds to the mean of a uniformly random candidate -subset. Each panel compares direct-attention and inverse-ER coupling under the same minimum-coupling selection rule. Shaded bands denote SEM across diagnostic states. Inverse-ER coupling yields lower regret at every threshold on all four benchmarks.
Pairwise ranking agreement with counterfactual KL.
To directly assess how well each coupling score captures pairwise dependency, we additionally measure its Spearman rank correlation with symmetric counterfactual KL, using the same saved diagnostic states as the preceding experiment. At each state and confidence threshold , we compute the correlation over all unordered pairs of sampled positions with confidence at least , requiring at least five eligible positions as in the regret analysis. Correlations are computed within each state and averaged across states, with the same candidate pairs for both methods.
(a) HumanEval
(b) MBPP
(c) GSM8K
(d) MATH
Figure 7: Pairwise dependency ranking against counterfactual KL. Mean per-state Spearman correlation between symmetric counterfactual KL and either direct-attention or GRID’s inverse-ER coupling score, across confidence thresholds on LLaDA-8B-Instruct. Higher is better. Shaded bands denote SEM across diagnostic states. Inverse ER achieves higher correlation at every evaluated threshold on all four benchmarks.
Across all four benchmarks and eight confidence thresholds, inverse ER achieves higher Spearman correlation than direct attention. The paired correlation differences have strictly positive 95% confidence intervals under bootstrap resampling clustered by prompt, supporting the improved ranking of candidate token dependencies.
Appendix C Derivation of the Effective-Resistance Expansion
We derive Equation 1. Consider a connected undirected weighted graph on vertex set with symmetric, nonnegative adjacency matrix and . Fix distinct nodes and , let and , and define the full weighted degrees . Let and .
Partition the Laplacian according to the terminal vertices and the intermediate vertices :
Since the graph is connected and is nonempty, is nonsingular. Eliminating the intermediate vertices gives the two-terminal Schur complement
This reduction preserves the effective resistance between and . The reduced two-node graph therefore has edge weight , so its Laplacian is
Using , , and , the off-diagonal entry gives
Let , where each is the full weighted degree in the original graph. Then
Define
Since , it is substochastic. Because the graph is connected, every node in can reach the terminal set , which implies . Hence
and therefore
Substituting into Equation 5 gives
or, entrywise,
which is Equation 1. The successive terms correspond to one-hop, two-hop, three-hop, and longer multi-hop contributions. More precisely, they sum weighted walks from to whose intermediate vertices lie in . Intermediate vertices may repeat at higher orders.
The derivation above assumes a connected graph. When the denoised graph used in practice is disconnected, effective resistance is computed separately within each connected component. Pairs in different components are assigned zero inverse-ER coupling, equivalently , as described in Appendix D.
Appendix D Implementation Details
Fixed as part of the method.
GRID always applies modularity denoising to the attention graph, computes effective resistance on the denoised graph, and forms the normalized inverse-ER coupling score . This normalization removes uniform graph-scale drift as the masked graph shrinks, so the scheduled threshold retains a consistent meaning across decoding steps. Positions are selected by the greedy independent-set rule of Algorithm 1. These components are fixed as part of the method rather than tuned.
Restricting the graph to masked positions.
GRID needs coupling scores only among the currently masked positions. We therefore compute resistance on the graph induced by rather than retaining prompt tokens and already-unmasked positions as intermediate resistance vertices, which would substantially enlarge the graph even though they cannot be selected. These positions still shape the attention weights through the full model forward pass before this restriction. Thus, indirect routes in the resistance computation run through masked positions only. This restriction is a practical approximation that keeps the graph small.
Disconnected denoised graphs.
The denoising in Equation 2 can set edge weights to zero and disconnect . We therefore compute effective resistance separately within each connected component. For positions in different components, we define , equivalently treating , since no positive-weight path connects them in the denoised graph.
Generation settings.
For the main end-to-end comparison in Table 2, we use block length for all models. The generation length is for LLaDA-8B-Instruct, LLaDA-1.5, and Dream-v0-Instruct-7B, and for LLaDA 2 Mini, following its standard decoding setup. For all LLaDA 2 Mini runs, decoding stops once a fully generated answer ending in EOS is obtained, rather than continuing to decode tokens that would subsequently be discarded. Since evaluation already truncates the generated output at the first EOS, this does not change the scored answer; it only avoids unnecessary computation after generation is complete. Consequently, the reported number of decoding steps for LLaDA 2 Mini can be smaller than the maximum generation length even for top-1 decoding (e.g., steps on HumanEval in Table 2). This early stopping is applied consistently to all LLaDA 2 Mini methods reported in Table 2 and is not used for the other models.
Evaluation protocol.
All samplers, including Top-1, are evaluated using the same model-specific prompts, benchmark examples, and scoring procedures. We apply each model’s chat template; for LLaDA-8B-Instruct, few-shot demonstrations are included in a single user message without a system prompt. We evaluate GSM8K (1,319 examples, 5-shot), full MATH (5,000 examples, 4-shot), HumanEval (164 examples, zero-shot), and MBPP (500 examples, 3-shot). GSM8K uses flexible numerical answer extraction, while MATH uses Hugging Face’s Math-Verify evaluator for symbolic equivalence. For both math benchmarks, outputs are truncated at task-specific stop sequences before scoring. For HumanEval, we extract the first Python code block when present (otherwise use the full completion), prepend the original problem prompt, and apply DAWN’s code sanitizer before executing the tests. For MBPP, we process the full completion without stop-word truncation, extract fenced code when present, and apply the same sanitizer before executing the setup code and test assertions. These procedures are applied uniformly to all samplers.
Shared GRID settings.
The coupling-threshold schedule follows eq. 4. The attention-sink threshold is not tuned but taken from the DAWN implementation: for the LLaDA models and for Dream-v0-Instruct-7B. For LLaDA-8B-Instruct, LLaDA-1.5, and Dream-v0-Instruct-7B, we use ; for LLaDA 2 Mini, is included in the HumanEval grid search described below.
Tuned GRID hyperparameters.
Following DAWN, we select GRID’s hyperparameters by grid search on HumanEval, separately for each model, and reuse the selected configuration unchanged on the other three benchmarks. Among the evaluated configurations, we select the fastest operating point whose HumanEval accuracy is at least that of DAWN under the same model. We use DAWN as the reference because it is the closest structural baseline to GRID. For LLaDA-8B-Instruct, LLaDA-1.5, and Dream-v0-Instruct-7B, we search the base coupling threshold , the confidence floor , and the schedule rate . The selected configurations are for LLaDA-8B-Instruct, for LLaDA-1.5, and for Dream-v0-Instruct-7B.
For LLaDA 2 Mini, we search , , , and . The selected LLaDA 2 Mini configuration is . A one-at-a-time sensitivity analysis of the LLaDA-1.5 configuration is provided in Appendix I.3.
Baselines.
For KLASS, DAWN, and CLAD, we use the official implementations released by the respective authors. For EB-Sampler and Fast-dLLM, we use the implementations provided in the official DAWN codebase. Since no official implementation of PUNT is publicly available, we implement it following the method described in the paper.
For LLaDA-8B-Instruct, LLaDA-1.5, and Dream-v0-Instruct-7B, the baselines use their published settings. Since the competing samplers do not report settings for LLaDA 2 Mini, for this model we tune their applicable hyperparameters by grid search on HumanEval and reuse each selected configuration unchanged on MBPP, GSM8K, and MATH. Thus, both GRID and the tuned baselines use HumanEval for model-specific hyperparameter selection.
For DAWN on LLaDA 2 Mini, we use and select from , from , from , and from . For EB-Sampler, we use factor=0.3, selected from . For Fast-dLLM, we use threshold=0.95, selected from . For CLAD, we use threshold=0.9, selected from . For KLASS and PUNT, we use the same default settings as for the other LLaDA models.
The threshold-sweep experiments are separate controlled experiments that run the compared methods outside their published operating points (Appendix H) and degree-normalize the dependency scores before thresholding (Appendix G).
Hardware.
All experiments use NVIDIA A10G GPUs with GB of memory per GPU. LLaDA-8B-Instruct, LLaDA-1.5, and Dream-v0-Instruct-7B are run on a single GPU, while LLaDA 2 Mini is loaded across two GPUs to accommodate the larger model. All methods compared within a given model use the same hardware configuration. Tokens-per-second figures are therefore directly comparable across samplers for the same model, but not directly across models using different hardware configurations or to measurements on other accelerators. The threshold sweeps, controlled analyses, and per-step cost measurements of Figure 15 use LLaDA-8B-Instruct on a single GPU running without contention.
Appendix E ParallelBench Evaluation
ParallelBench (Kang et al., 2026) contains tasks grouped into three categories: Waiting Line, Text Writing, and Puzzles. We merge the tasks within each category for category-level evaluation and evaluate LLaDA-8B-Instruct on all three categories. Each task retains its benchmark-specific score, and the category-level score and average decoding steps are computed by averaging over the constituent tasks as defined below. Waiting Line uses generation and block length , while Text Writing and Puzzles use generation and block length . Top-1 decoding, which decodes one position per step, provides the reference score for each task.
Parameter sweeps.
For each parallel sampler, we evaluate every parameter setting on every task and aggregate the results within each category. Operating-point selection is performed only after this aggregation, so the same parameter setting is used across all tasks in a category. For GRID, we fix to the value selected for LLaDA-8B-Instruct on HumanEval and sweep
For DAWN, we sweep
For Fast-dLLM, we sweep
\texttt{threshold}\in\{0.50,0.55,0.60,0.65,0.70,0.75,0.80,0.85,0.90,0.95,0.99\}.
For EB-Sampler, we sweep
\texttt{factor}\in\{0.50,0.55,0.60,0.65,0.70,0.75,0.80,0.85,0.90,0.95,1.00,1.20,1.50,2.00\}.
For KLASS, we fix the confidence threshold to and history length to and sweep
\texttt{kl\_threshold}\in\{0.01,0.05,0.10,0.20,0.30,0.50,0.70,0.90,1.20,1.50,2.00,3.00,5.00,10.00\}.
For CLAD, we use max symmetrization and sweep
\texttt{clad\_threshold}\in\{0.30,0.40,0.50,0.55,0.60,0.65,0.70,0.75,0.80,0.85,0.90,0.95,0.97\}.
PUNT is omitted because it performs additional model evaluations within a nominal decoding step, making nominal step counts non-comparable.
Category-level matched-quality metric.
Let denote a ParallelBench category, an evaluated parameter setting of method , and a constituent task. The same setting is used across all tasks in . We define the category-level score and average decoding steps as
where is the benchmark-specific score on task . Each constituent task therefore contributes equally to the category-level evaluation. The corresponding category-level top-1 reference score is
For quality target , every sampler is required to satisfy the same category-level quality constraint. Its matched-quality step count is
If no evaluated setting reaches the target, we set .
Let
The fastest competing sampler is selected once for each category and quality target:
We report GRID’s matched-quality decoding-step speedup as
Thus, means that GRID requires fewer decoding steps than the fastest competing sampler, denotes parity, and means that the competing sampler requires fewer steps.
Representative score–steps frontiers.
Figure 8 shows one representative task from each ParallelBench category: Sudoku from Puzzles, Words-to-Sentence Hard from Text Writing, and Reverse from Waiting Line. These per-task plots provide qualitative views of the score–steps trade-off, while the summary results in Table 1 use the category-level evaluation defined above. The plots show both the complete set of evaluated operating points and the corresponding Pareto frontiers.
(a) Words-to-Sentence Hard (Text Writing)
(b) Sudoku (Puzzles)
(c) Reverse (Waiting Line)
Figure 8: Representative ParallelBench score–steps trade-offs. Faint markers show all evaluated operating points from the parameter sweeps, while solid curves show the corresponding Pareto frontiers. The dashed line denotes the top-1 task score. We show Sudoku as a representative Puzzles task, Words-to-Sentence Hard as a representative Text Writing task, and Reverse as a representative Waiting Line task.
Robustness.
To evaluate sensitivity to GRID’s schedule parameter, we fix in turn to each tested value
and recompute the category-level matched-quality metric while sweeping as above. At the quality target, GRID’s decoding-step speedup over the fastest competing sampler ranges from – on Waiting Line, – on Text Writing, and – on Puzzles. At the target, the corresponding ranges are –, –, and –, respectively, across the evaluated values of .
Appendix F Additional DAPD and PUNT Evaluations
F.1 DAPD at Block Size 256
We additionally evaluate DAPD (Kim et al., 2026a) using its official implementation on LLaDA-8B-Instruct under our benchmark evaluation framework. The results already reported in the original manuscript use a single block of length , matching DAPD’s original setup, with generation length . We also tested block size and observed similarly reduced accuracy.
We swept the dependency-threshold schedule over and . We prioritized accuracy when selecting operating points with decoding steps roughly comparable to DAWN. The selected thresholds are for all benchmarks, with for HumanEval and MBPP and for GSM8K and MATH. Table 3 reports the resulting operating points.
Table 3: DAPD results on LLaDA-8B-Instruct under our benchmark evaluation. Block size and generation length are both .
| Benchmark | Acc. | Steps | TPS |
|---|---|---|---|
| HumanEval | 31.1 | 53.5 | 27.86 |
| MBPP | 38.9 | 70.7 | 6.08 |
| GSM8K | 52.5 | 55.9 | 8.82 |
| MATH | 23.2 | 64.1 | 10.80 |
DAPD ranks masked positions using a score that combines prediction confidence with the node’s degree in the attention graph, and greedily selects nonconflicting positions. In our evaluation, we observed that positions with relatively low prediction confidence can nevertheless receive high ranking scores when their attention-graph degree is high, causing them to be prioritized for decoding. We believe that committing such low-confidence positions contributes to the observed accuracy degradation despite the reduced decoding-step count. We therefore report DAPD separately from the main E2E comparison.
F.2 PUNT at Block Size 256
We additionally evaluate PUNT (Azangulov et al., 2026) on LLaDA-8B-Instruct using a single block of length and generation length , under the same benchmark evaluation protocol as our main comparison. We sweep , which controls the tolerance of PUNT’s dependency tests and its speed–accuracy trade-off. Table 4 reports the results alongside the original block- results from Table 2 for reference.
Table 4: PUNT block-size evaluation on LLaDA-8B-Instruct. Each entry reports accuracy (%) / average decoding steps / TPS. The block- row reproduces the original Table 2 results for reference. All runs use generation length .
| Block | HumanEval Acc. / Steps / TPS | MBPP Acc. / Steps / TPS | GSM8K Acc. / Steps / TPS | MATH Acc. / Steps / TPS | |
|---|---|---|---|---|---|
| – | 39.6 / 53.6 / 5.55 | 39.8 / 44.1 / 2.11 | 75.9 / 54.9 / 1.94 | 33.3 / 64.5 / 2.29 | |
| 42.1 / 80.4 / 2.56 | 41.0 / 63.8 / 0.89 | 59.4 / 70.9 / 0.96 | 24.2 / 78.3 / 1.22 | ||
| 40.2 / 61.5 / 3.38 | 40.2 / 44.8 / 1.23 | 56.0 / 52.6 / 1.31 | 23.7 / 58.5 / 1.64 | ||
| 39.0 / 50.0 / 4.16 | 38.2 / 37.3 / 1.50 | 54.0 / 43.5 / 1.59 | 24.0 / 48.1 / 2.01 | ||
| 37.2 / 43.6 / 4.78 | 37.2 / 31.9 / 1.70 | 55.9 / 37.3 / 1.86 | 24.5 / 41.1 / 2.36 |
At block size , PUNT achieves broadly comparable accuracy to the other samplers in Table 2. At block size , conservative settings retain similar accuracy on HumanEval and MBPP, while accuracy decreases substantially on GSM8K and MATH. At similar decoding-step counts, throughput is generally lower with larger blocks, consistent with PUNT’s additional dependency-testing cost of approximately model evaluations per step.
PUNT’s original paper uses generation length for HumanEval, MBPP, and GSM8K, under a different evaluation setup. We retain generation length for consistency across methods. The results therefore characterize PUNT’s larger-block behavior under our evaluation protocol rather than reproducing its original experimental setting.
Appendix G Degree Normalization of Dependency Scores
Attention is computed over the full sequence, whereas the dependency graph used by GRID contains only the currently masked positions. As positions are committed, this induced graph changes in size and the overall magnitude of its retained edge weights can change. A fixed threshold on raw inverse ER could therefore drift in meaning because of global graph scale rather than relative connectivity.
We remove this multiplicative scale dependence using the mean weighted degree of the current denoised graph. Consider a uniform rescaling with . Then and , so Equation 2 gives . Effective resistance consequently scales as , while . Hence is invariant to uniform edge-weight rescaling.
Within a decoding step, is common to all pairs, so the normalization preserves their ordering. It removes only the global multiplicative scale; changes in relative edge weights or graph structure remain reflected in . For the attention-edge score, the corresponding scale-invariant quantity is .
For GRID, the normalization is part of the method (Section 4). For the attention-edge score, we apply the analogous normalization only in controlled experiments that sweep a dependency threshold to trace a frontier (Figures 4, 9, 10 and 11). This isolates the quality of the dependency score from changes in graph scale. The E2E comparison in Table 2 uses DAWN exactly as published, without this additional normalization.
Appendix H Controlled DAWN–GRID Comparisons
This appendix details the controlled DAWN–GRID comparisons used in Section 5.1 and on the four standard code and math benchmarks. Both comparisons use a shared selection procedure to isolate the dependency-scoring mechanism.
Shared simplified protocol.
We use simplified DAWN and GRID variants with the same confidence-ordered greedy selection procedure while retaining their respective dependency scores. We disable the immediate-commit stage by setting , remove the confidence floor with , and disable DAWN’s anchor-guided stage with . Both variants use . GRID retains its inverse-ER dependency score, while DAWN retains its direct attention-edge score. Both scores are degree-normalized before thresholding, as detailed in Appendix G. These simplified variants are used only for controlled analysis.
Dep-Bench.
On Dep-Bench, each variant sweeps its dependency-score threshold to trace the slot-accuracy–decoding-steps frontier in Figure 4*(a). For Figure 4(b), we compare operating points at approximately average decoding steps. Figure 4(c)* evaluates each threshold setting relative to the known task-dependency graph.
Standard code and math benchmarks.
We repeat the same controlled comparison with LLaDA-8B-Instruct on HumanEval, MBPP, GSM8K, and MATH, using task accuracy in place of slot accuracy (Figure 9). All runs use generation length and block length . GRID sweeps its inverse-ER threshold over , while DAWN sweeps its direct-edge threshold over . The ten threshold values are paired one-to-one and calibrated on HumanEval to matched average step counts spanning approximately to steps. The remaining benchmarks land near, but not exactly on, these targets.
Figure 9: Controlled comparison of simplified DAWN and GRID variants on standard code and math benchmarks. Accuracy vs. average decoding steps with LLaDA-8B-Instruct. Both variants use the same confidence-ordered greedy selection procedure while retaining their respective dependency scores. Shaded bands are bootstrap confidence intervals.
Across all four benchmarks, GRID is at least as accurate as DAWN over the evaluated decoding budgets, with the advantage increasing at tighter budgets. On GSM8K at around average steps, for example, GRID reaches accuracy versus for DAWN.
Appendix I Ablations
I.1 Denoising Without Effective Resistance
To isolate whether modularity denoising alone accounts for the improvement, we add a third curve—modularity-normed attention—which uses (Equation 2) directly as the coupling score, bypassing effective resistance. We evaluate it under the same controlled protocol as the direct-edge attention and inverse-ER variants on both Dep-Bench (Section 5.1) and the four standard code and math benchmarks (Appendix H). All other settings are identical within each comparison.
In both settings (Figures 10 and 11), the modularity-normed variant is confined to a narrow range of decoding steps (– on Dep-Bench and – on the standard code and math benchmarks) across the threshold sweep. Subtracting the degree-driven null sets many pairwise coupling scores to zero, leaving a sparse conflict graph. These zero-score pairs remain nonconflicting across the sweep, so the greedy independent set admits many positions per step and the variant remains in a low-step regime. Empirically, varying the threshold changes the selected-set size only modestly, resulting in the narrow range of decoding steps. Effective resistance dominates both alternatives across the evaluated step budgets, showing that the improvement comes from the ER connectivity measure rather than modularity denoising alone.
Figure 10: Ablation on Dep-Bench (Section 5.1, LLaDA-8B-Instruct, examples per dataset). Slot accuracy vs. average decoding steps (up-left is better). The modularity-normed variant is confined to – steps. Shaded bands are bootstrap confidence intervals.
Figure 11: Ablation on the four standard code and math benchmarks (LLaDA-8B-Instruct, controlled protocol of Appendix H). The same three coupling measures are compared, and the modularity-normed variant is confined to – steps. Shaded bands are bootstrap confidence intervals.
I.2 Alternative Multi-Hop Scores
Here we test whether the benefit of modeling multi-hop connectivity extends beyond effective resistance. Under the same controlled Dep-Bench protocol described in Appendix H, we compare inverse ER with two standard alternative multi-hop graph measures, Katz similarity (Katz, 1953) and the heat kernel (Kondor & Lafferty, 2002). The ER, Katz, and heat-kernel variants use the same modularity-denoised attention graph, confidence-ordered greedy selection, and disabled confidence gates, so they differ only in the pairwise multi-hop coupling score. We additionally include direct-edge attention as the one-hop reference.
Let be the modularity-denoised adjacency and define , where is its mean weighted degree. For Katz similarity, let and define
The spectral-radius normalization makes a scale-independent range parameter and guarantees convergence. We evaluate .
For the heat kernel, let
be the graph Laplacian of and define
The diffusion time controls the effective range of the score, and we evaluate . In both cases, larger off-diagonal scores indicate stronger coupling. For every value of or , we independently sweep the coupling threshold to trace the slot-accuracy–decoding-steps frontier. Because the score scale changes with the range parameter, each value uses a six-point threshold grid chosen to span the relevant decoding-step range, and each operating point is plotted at its measured average number of steps.
Figures 12 and 13 show that the multi-hop benefit is not specific to effective resistance. On the chain benchmarks, suitable Katz and heat-kernel settings can recover substantial gains over direct-edge attention and preserve accuracy better as dependency depth increases. Performance varies with and , and the relative ordering also varies across dependency structures. Thus, alternative multi-hop measures can also provide useful dependency scores. ER provides a competitive choice without requiring an additional decay or diffusion-time parameter to determine the multi-hop range.
Figure 12: Katz multi-hop score ablation on Dep-Bench (LLaDA-8B-Instruct). Each Katz curve fixes and sweeps its coupling threshold. (a) Slot accuracy vs. average decoding steps. (b) Accuracy by dependency depth, using for each score and dataset the swept operating point closest to average decoding steps. (c) Excess decoding steps vs. dependent pairs decoded together. Attention and ER are the same reference variants as in Figure 4.
Figure 13: Heat-kernel multi-hop score ablation on Dep-Bench (LLaDA-8B-Instruct). Each heat-kernel curve fixes and sweeps its coupling threshold. Panels and reference variants follow Figure 12.
I.3 Hyperparameter Sensitivity
We evaluate one-at-a-time sensitivity of GRID’s three tuned hyperparameters on HumanEval with LLaDA-1.5. Starting from the reported configuration , we vary one parameter while fixing the other two. Figure 14 reports settings spanning , , and . These diagnostic ranges extend beyond the original tuning grid and are not used to change the reported configuration.
Increasing or makes the coupling criterion more permissive and generally reduces the number of decoding steps, while lowering admits more candidates for parallel decoding. More aggressive settings eventually trade accuracy for fewer steps, while several nearby settings achieve similar accuracy to the reported configuration.
Figure 14: One-at-a-time hyperparameter sensitivity. LLaDA-1.5 on HumanEval. Each panel varies one of , , or while fixing the other two at the reported configuration . Points show accuracy against average decoding steps (up-left is better). The red star marks the reported configuration; labels indicate its parameter value and the endpoints of the displayed range.
I.4 Threshold-Schedule Ablation
To assess the contribution of the step-dependent coupling threshold, we additionally evaluate GRID with , fixing the threshold at throughout decoding. We independently calibrate the remaining hyperparameters on HumanEval using LLaDA-8B-Instruct, following the same selection criterion as our main experiments. The selected configuration is , which we apply unchanged to MBPP, GSM8K, and MATH. All other GRID components and evaluation settings remain unchanged.
Table 5: GRID without the threshold schedule. Accuracy (%) / average decoding steps / TPS on LLaDA-8B-Instruct. The configuration is calibrated on HumanEval and transferred unchanged to the remaining benchmarks.
| Method | HumanEval | MBPP | GSM8K | MATH |
|---|---|---|---|---|
| GRID () | 36.6 / 52.8 / 27.80 | 42.8 / 46.6 / 10.90 | 78.4 / 51.0 / 10.00 | 33.2 / 65.9 / 10.80 |
Compared with the standard GRID configuration in Table 2, disabling the schedule increases decoding steps and reduces throughput across all four benchmarks, while maintaining comparable accuracy. Nevertheless, GRID without the schedule remains faster than the fastest competing sampler at its original operating point in Table 2 on every benchmark. Thus, the step-dependent threshold improves efficiency but is not necessary for GRID’s observed throughput advantage over these baselines.
I.5 Cross-Dataset Hyperparameter Transfer
To assess whether GRID’s performance on HumanEval depends on calibration on that benchmark, we independently calibrate GRID on MBPP and GSM8K using LLaDA-8B-Instruct. For each calibration dataset, we select the configuration with the fewest decoding steps among those achieving at least DAWN’s accuracy, following the selection criterion used in our main experiments (Appendix D). We then evaluate each selected configuration unchanged across all four benchmarks. Table 6 compares these results with the original HumanEval-calibrated configuration and DAWN.
Table 6: Cross-dataset hyperparameter transfer on LLaDA-8B-Instruct. Each entry reports accuracy (%) / average decoding steps, with TPS additionally reported for MATH. GRID configurations are calibrated on the indicated dataset and transferred unchanged to the remaining benchmarks. DAWN and HumanEval-calibrated GRID use the original configurations from Table 2.
| Method / Calibration Dataset | GRID hyperparameters | HumanEval Acc. / Steps | MBPP Acc. / Steps | GSM8K Acc. / Steps | MATH Acc. / Steps / TPS |
|---|---|---|---|---|---|
| DAWN | – | 36.6 / 58.8 | 41.3 / 53.7 | 77.6 / 55.5 | 32.3 / 72.6 / 9.93 |
| GRID / HumanEval | 37.8 / 49.9 | 42.4 / 43.4 | 78.1 / 47.9 | 32.1 / 62.3 / 11.46 | |
| GRID / MBPP | 37.8 / 49.9 | 42.4 / 43.4 | 78.1 / 47.9 | 32.1 / 62.3 / 11.46 | |
| GRID / GSM8K | 36.5 / 47.3 | 40.1 / 40.4 | 77.8 / 46.2 | 31.7 / 60.4 / 11.80 |
Calibrating on MBPP recovers the original HumanEval configuration. The GSM8K-calibrated configuration also transfers well to HumanEval, achieving nearly identical accuracy to DAWN (36.5% vs. 36.6%) with fewer decoding steps (47.3 vs. 58.8). On MATH, both configurations achieve comparable accuracy to DAWN with fewer steps and higher throughput. Although the accuracy–speed trade-off varies across calibration datasets, these results support GRID’s ability to generalize to HumanEval without tuning on it.
Appendix J Computational Cost
Figure 15: Decoding-step runtime breakdown. Mean step time on HumanEval with LLaDA-8B-Instruct, decomposed into model forward pass, general sampler operations, and effective-resistance computation, as a function of the number of masked positions . Percentages indicate the fraction of total step time spent computing ER.
Effective resistance requires a Laplacian pseudoinverse on the masked subgraph at each denoising step. Our dense symmetric eigendecomposition costs , compared with for thresholding direct attention edges.
Figure 15 provides a detailed breakdown of the per-step runtime, separating model forward pass, general sampler operations (including attention handling and graph construction), and ER computation. For fully masked blocks of sizes and , total step time increases from approximately to ms, while ER computation accounts for only and of the respective step times. Most of the additional latency comes from general sampler operations, including attention handling and graph construction, which are also used by direct-attention-based methods such as DAWN and are not unique to GRID. At , ER accounts for of the ms step time.
For substantially larger masked sets, possible optimizations include computing resistances only for queried pairs, regularized-inverse formulations on connected graphs, or amortizing the factorization across decoding steps.
End-to-end evaluation across block sizes.
We additionally compare Top-1, DAWN, and GRID on LLaDA-8B-Instruct at block sizes , , and across all four benchmarks. For block size , we retain the original configurations and results from Table 2. For each larger block size, we independently calibrate GRID and DAWN on HumanEval, selecting the configuration with the fewest decoding steps among those achieving at least of Top-1 accuracy at that block size. We then transfer each selected configuration unchanged to the remaining benchmarks. The results are reported in Table 7.
Table 7: End-to-end comparison across block sizes on LLaDA-8B-Instruct. Each entry reports task accuracy (%), average decoding steps, tokens per second (TPS), and speedup over Top-1 at the same block size. Block- results use the original paper configurations, while block- and block- results use independently calibrated GRID and DAWN configurations.
| Block | Method | HumanEval Acc. / Steps / TPS / Speedup | MBPP Acc. / Steps / TPS / Speedup | GSM8K Acc. / Steps / TPS / Speedup | MATH Acc. / Steps / TPS / Speedup |
|---|---|---|---|---|---|
| Top-1 | 42.1 / 256 / 5.90 / 1.00 | 42.0 / 256 / 2.07 / 1.00 | 78.7 / 256 / 2.06 / 1.00 | 32.9 / 256 / 2.85 / 1.00 | |
| DAWN | 36.6 / 58.8 / 25.52 / 4.33 | 41.3 / 53.7 / 9.93 / 4.80 | 77.6 / 55.5 / 9.29 / 4.51 | 32.3 / 72.6 / 9.93 / 3.48 | |
| GRID | 37.8 / 49.9 / 29.11 / 4.93 | 42.4 / 43.4 / 11.34 / 5.48 | 78.1 / 47.9 / 10.67 / 5.18 | 32.1 / 62.3 / 11.46 / 4.02 | |
| Top-1 | 39.9 / 256 / 5.90 / 1.00 | 41.4 / 256 / 2.10 / 1.00 | 77.3 / 256 / 2.10 / 1.00 | 33.5 / 256 / 2.90 / 1.00 | |
| DAWN | 36.2 / 57.75 / 25.82 / 4.38 | 40.5 / 52.56 / 10.11 / 4.81 | 78.5 / 54.41 / 9.47 / 4.51 | 32.9 / 71.74 / 10.04 / 3.46 | |
| GRID | 36.1 / 52.18 / 28.54 / 4.84 | 41.4 / 45.60 / 10.96 / 5.22 | 77.8 / 48.10 / 10.61 / 5.05 | 32.7 / 64.13 / 11.12 / 3.83 | |
| Top-1 | 39.0 / 256 / 5.90 / 1.00 | 40.0 / 256 / 2.00 / 1.00 | 72.6 / 256 / 2.00 / 1.00 | 32.1 / 256 / 2.90 / 1.00 | |
| DAWN | 36.2 / 52.34 / 26.42 / 4.48 | 39.1 / 45.14 / 10.94 / 5.47 | 72.4 / 49.04 / 10.49 / 5.24 | 30.4 / 65.66 / 10.99 / 3.79 | |
| GRID | 36.5 / 44.99 / 26.80 / 4.54 | 40.0 / 40.71 / 11.35 / 5.67 | 72.9 / 44.48 / 11.37 / 5.68 | 31.4 / 58.92 / 11.96 / 4.13 |
The selected GRID configurations are and for block sizes and , respectively. The corresponding DAWN configurations are and . All other implementation settings follow the original evaluation protocol.
As shown in Table 7, GRID achieves fewer decoding steps and higher throughput than DAWN across all eight new benchmark–block combinations, with broadly comparable accuracy. Its throughput advantage ranges from to at block size and from to at block size . Accuracy can vary with block size for all methods, including Top-1, whose GSM8K accuracy decreases from at block size to at block size . The runtime breakdown in Figure 15 shows that ER computation remains a small fraction of step latency, with most additional per-step overhead arising from general sampler operations.
Longer outputs.
ER is computed only over the currently masked positions within the active decoding block. Therefore, at a fixed block size, increasing the total generation length requires additional decoding blocks and steps, but does not increase the graph size or computational complexity of an individual ER computation.
Appendix K Extended Related Work
Acceleration methods for MDMs broadly either modify the model or change only inference-time sampling. Di4C (Hayakawa et al., 2025) distills cross-position correlations. SDTT (Deschenaux & Gulcehre, 2025), Duo (Sahoo et al., 2025), FS-DFM (Karimi Monsefi et al., 2025), and dParallel (Chen et al., 2025b) train or distill for more parallel or fewer-step decoding. dUltra (Chen et al., 2025a) learns an unmasking planner. These approaches require additional model-specific training, whereas GRID leaves the base model fixed.
Among inference-time methods, the default sampler (Nie et al., 2026) and Fast-dLLM (Wu et al., 2025) use prediction confidence to choose positions to decode, EB-Sampler (Ben-Hamu et al., 2026) uses an entropy bound to determine how many positions to decode, and KLASS (Kim et al., 2026b) and LEAP (Zhang et al., 2026) use prediction stability and lookahead, respectively. DUS (Luxembourg et al., 2025) instead uses a fixed dilated schedule based on positional separation. These methods do not explicitly assess compatibility between positions decoded together.
PUNT (Azangulov et al., 2026) temporarily reveals candidate positions and measures how the remaining masked-position marginals change, requiring additional forward passes per step, while DEMASK (Ringel et al., 2026) trains a predictor from a frozen model’s hidden states. Among attention-based methods, DAPD (Kim et al., 2026a) forms an attention-induced Markov random field and selects an independent set of masked positions, while DAWN (Luo et al., 2026) builds an attention dependency graph with confidence-ordered selection, anchor-guided decoding, and attention-sink filtering (Xiao et al., 2024). Both use direct attention-derived coupling between masked positions, but differ in their selection procedure: DAPD ranks candidates using a score combining prediction confidence with their node degree in the attention graph, whereas DAWN uses confidence-ordered selection. Our evaluation of DAPD’s official implementation is provided in Appendix F. CLAD (Qi et al., 2026) instead groups contiguous high-confidence positions into clusters and scores attention between them. These methods do not explicitly aggregate connectivity through indirect paths in the attention-derived graph.
Appendix L Bootstrap Confidence Intervals for End-to-End Evaluation
We quantify uncertainty in the standard-benchmark results of Table 2 using 10,000 nonparametric bootstrap resamples of benchmark examples, sampled with replacement. Accuracy is the mean of per-example correctness, while throughput is recomputed for each resample as the total number of generated tokens divided by total inference time. The reported intervals are 95% percentile bootstrap confidence intervals. For readability, the tables below show point estimates the half-width of the corresponding interval. These intervals capture variability across benchmark examples, not hardware or run-to-run timing variability.
Table 8: 95% bootstrap confidence intervals for LLaDA-8B-Instruct. Accuracy (%) and TPS are shown as point estimate confidence-interval half-width.
| Method | HumanEval | MBPP | GSM8K | MATH | ||||
|---|---|---|---|---|---|---|---|---|
| Acc (%) | TPS | Acc (%) | TPS | Acc (%) | TPS | Acc (%) | TPS | |
| Top-1 | ||||||||
| EB-Sampler | ||||||||
| Fast-dLLM | ||||||||
| KLASS | ||||||||
| DAWN | ||||||||
| CLAD | ||||||||
| PUNT | ||||||||
| GRID (ours) |
Table 9: 95% bootstrap confidence intervals for LLaDA-1.5. Accuracy (%) and TPS are shown as point estimate confidence-interval half-width.
| Method | HumanEval | MBPP | GSM8K | MATH | ||||
|---|---|---|---|---|---|---|---|---|
| Acc (%) | TPS | Acc (%) | TPS | Acc (%) | TPS | Acc (%) | TPS | |
| Top-1 | ||||||||
| EB-Sampler | ||||||||
| Fast-dLLM | ||||||||
| KLASS | ||||||||
| DAWN | ||||||||
| CLAD | ||||||||
| PUNT | ||||||||
| GRID (ours) |
Table 10: 95% bootstrap confidence intervals for Dream-v0-Instruct-7B. Accuracy (%) and TPS are shown as point estimate confidence-interval half-width.
| Method | HumanEval | MBPP | GSM8K | MATH | ||||
|---|---|---|---|---|---|---|---|---|
| Acc (%) | TPS | Acc (%) | TPS | Acc (%) | TPS | Acc (%) | TPS | |
| Top-1 | ||||||||
| EB-Sampler | ||||||||
| Fast-dLLM | ||||||||
| KLASS | ||||||||
| DAWN | ||||||||
| CLAD | ||||||||
| PUNT | ||||||||
| GRID (ours) |
Table 11: 95% bootstrap confidence intervals for LLaDA 2 Mini. Accuracy (%) and TPS are shown as point estimate confidence-interval half-width.
| Method | HumanEval | MBPP | GSM8K | MATH | ||||
|---|---|---|---|---|---|---|---|---|
| Acc (%) | TPS | Acc (%) | TPS | Acc (%) | TPS | Acc (%) | TPS | |
| Top-1 | ||||||||
| EB-Sampler | ||||||||
| Fast-dLLM | ||||||||
| KLASS | ||||||||
| DAWN | ||||||||
| CLAD | ||||||||
| PUNT | ||||||||
| GRID (ours) |
Paired GRID–baseline comparisons.
For each model–benchmark setting, we compare GRID against the non-GRID sampler with the highest measured TPS in Table 2. We resample the same shared benchmark examples for both methods and calculate the relative TPS gain, , and accuracy difference in percentage points. The fastest observed competing sampler is held fixed within each bootstrap comparison. For each benchmark, the summary below aggregates throughput ratios using the geometric mean across four models and accuracy differences using the arithmetic mean.
Table 12: Paired 95% bootstrap intervals for GRID’s relative TPS gain (%) over the fastest non-GRID sampler in each model–benchmark setting. Entries show point estimate .
| Model | HumanEval | MBPP | GSM8K | MATH |
|---|---|---|---|---|
| LLaDA-8B-Instruct | ||||
| LLaDA-1.5 | ||||
| Dream | ||||
| LLaDA 2 Mini |
Table 13: Benchmark-level paired 95% bootstrap confidence intervals comparing GRID with the fastest non-GRID sampler in each model–benchmark setting. The reported gains are those summarized in Figure 1(c). Accuracy differences are in percentage points (pp).
| Benchmark | TPS gain | 95% CI | Acc (pp) | 95% CI (pp) |
|---|---|---|---|---|
| HumanEval | ||||
| MBPP | ||||
| GSM8K | ||||
| MATH |
GRID’s paired TPS improvement has a strictly positive 95% confidence interval in 15 of the 16 individual model–benchmark comparisons; the exception is Dream/MBPP, where the measured gain is small. Across all four benchmarks, the mean throughput improvement also has a strictly positive interval. No individual comparison exhibits a negative accuracy difference whose 95% confidence interval excludes zero. This does not establish statistical equivalence in accuracy, particularly on smaller benchmarks.
Appendix M Accuracy-Controlled Throughput Comparison
To further assess throughput at comparable accuracy, we evaluate GRID against four competitive baselines (EB-Sampler, Fast-dLLM, DAWN, and CLAD) on LLaDA-8B-Instruct. For each baseline and benchmark, we retain its original configuration or calibrate it to achieve accuracy as close as possible to GRID’s, from below. This comparison favors the baselines: they may operate at lower accuracy and receive benchmark-specific calibration, while GRID retains its original configuration, calibrated once on HumanEval and transferred unchanged across all four benchmarks.
Table 14: Accuracy-controlled throughput comparison on LLaDA-8B-Instruct. Each entry reports accuracy (%) / average decoding steps / TPS. Baselines use their original configurations or benchmark-specific calibration targeting GRID’s accuracy from below. GRID uses its original configuration across all benchmarks.
| Method | HumanEval | MBPP | GSM8K | MATH |
|---|---|---|---|---|
| EB-Sampler | 37.2 / 59.5 / 25.39 | 41.0 / 52.6 / 10.11 | 78.1 / 56.8 / 9.30 | 32.1 / 67.6 / 10.80 |
| Fast-dLLM | 37.8 / 58.7 / 26.04 | 42.0 / 51.5 / 10.23 | 78.1 / 53.1 / 10.00 | 32.0 / 71.8 / 10.19 |
| DAWN | 36.6 / 58.8 / 25.52 | 41.3 / 53.7 / 9.93 | 77.6 / 55.5 / 9.29 | 32.1 / 70.1 / 10.30 |
| CLAD | 37.8 / 60.0 / 25.27 | 41.6 / 52.7 / 9.92 | 77.5 / 50.9 / 10.10 | 31.7 / 72.8 / 9.91 |
| GRID (ours) | 37.8 / 49.9 / 29.11 | 42.4 / 43.4 / 11.34 | 78.1 / 47.9 / 10.67 | 32.1 / 62.3 / 11.46 |
GRID achieves the highest throughput on all four benchmarks, improving over the fastest competing baseline by 11.8%, 10.9%, 5.6%, and 6.1% on HumanEval, MBPP, GSM8K, and MATH, respectively. These results show that GRID’s throughput advantage persists even when the baselines are allowed benchmark-specific calibration and operate at equal or lower accuracy. KLASS and PUNT are omitted from this focused analysis because their reported throughput in Table 2 is substantially lower.