Manuscript Offprint
arXiv:2611.08362SpecCTMC: Exact Speculative Simulation of Diffusion Language Model Continuous-Time Markov Chains
ABSTRACT
Masked diffusion language models offer parallel text generation, but independently sampling multiple tokens can disrupt their dependencies and change the output distribution. Exact continuous-time sampling avoids this approximation, yet typically requires one sequential model evaluation per token. We introduce SpecCTMC, a training-free speculative sampler that reduces this sequential bottleneck without a separate draft model. SpecCTMC proposes successive token updates using previously computed model predictions, evaluates their intermediate states in parallel, and applies an exact acceptance-and-correction procedure. We prove that SpecCTMC preserves the joint distribution of event times, generation order, and token values of the underlying continuous-time Markov chain. It therefore introduces neither time-discretization error nor additional factorization error from parallel decoding. Experiments on LLaDA-8B-Instruct and Dream-v0-Instruct-7B across five benchmarks demonstrate 1.73–4.38× fewer sequential model evaluations than direct continuous-time sampling, while preserving the reference sampling distribution. Our code is available at: https://github.com/kasakh/specctmc
1 INTRODUCTION
Masked diffusion language models (MDLMs) generate text by iteratively unmasking tokens in a partially masked sequence, allowing generation beyond a fixed left-to-right order (Sahoo et al., 2024; Shi et al., 2024; Nie et al., 2025; Ye et al., 2025). This flexibility offers opportunities for parallel inference, but realizing them without compromising generation quality remains challenging. In the continuous-time formulation, the reverse process is a continuous-time Markov chain (CTMC) that unmasks one token at each event (Campbell et al., 2022). Direct simulation therefore requires a sequence of model evaluations, with each update depending on previously unmasked tokens. Reducing this sequential cost is central to making exact sampling of diffusion language models practical.
Existing approaches reduce inference cost through numerical approximation, decoding heuristics, and computation reuse. Numerical samplers such as -leaping approximate multiple transitions within a time interval, while higher-order methods, including the -trapezoidal solver, improve the accuracy of this approximation (Campbell et al., 2022; Lou et al., 2024; Ren et al., 2025). Practical decoders also use
greedy token selection and confidence-based unmasking orders to generate high-quality text with fewer denoising steps (Nie et al., 2025; Ye et al., 2025). Fast-dLLM combines confidence-guided parallel decoding with approximate KV caching (Wu et al., 2026), and Fast-dLLM++ uses the full token-confidence profile to select larger groups of tokens for simultaneous commitment (Kasa et al., 2026).
A central challenge in MDLMs is that tokens predicted from the same partially masked sequence are often not conditionally independent. Unmasking one token can change the distribution of another, so sampling several positions independently can result in a different distribution from updating them sequentially. This factorization error underlies the curse of parallel decoding discussed in previous works like Wu et al. (2026); Kasa et al. (2026). Separately, the denoiser's conditional predictions across different masking contexts need not be compatible with a single joint distribution (Young et al., 2024; Torroba Hennigen & Kim, 2023).
The choice of decoding policy also matters when generation is used to explore multiple candidate answers. Greedy decoding can be effective for producing a single answer, but a fully deterministic decoder cannot explore alternative solutions through repeated runs. Even with stochastic token sampling, confidence-based unmasking orders can restrict diversity and limit improvements from additional samples (Olausson et al., 2026). For reasoning and code generation, this motivates evaluating solution coverage across multiple attempts alongside single-sample accuracy, and accelerating stochastic
*Equal contribution †For Siva Rajesh Kasa and Sumit Negi, this work does not relate to their positions at Amazon. †School of Computing, Australian National University. Correspondence to: Siva Rajesh Kasa kasa@u.nus.edu, Yasong Dai yasong.dai@anu.edu.au.

Figure 1. Sampling a masked diffusion LLM as a CTMC. (a) Direct event simulation is exact but requires one sequential target model evaluation per unmasking event. (b) Speculative dLLM decoders verify drafts against a finite-step greedy decoder, with restricted lossless guarantees. (c) SPECCTMC preserves the exact random event clock and the distribution of joint marks. The diagram's label is the full-acceptance ideal when all drafted states fit in one target-model call; generally, one speculative round commits up to events.
generation while preserving its sampling distribution.
Exact event-driven simulation provides a principled reference for this goal. Gillespie's stochastic simulation algorithm samples individual transitions at random event times (Gillespie, 1977), and sequential first-hitting sampling applies this principle to absorbing-mask diffusion (Zheng et al., 2025). After each position is unmasked, the model conditions the next update on the resulting sequence. This introduces neither time-discretization error nor the additional factorization error caused by committing independent token updates together. Its computational cost, however, remains dominated by sequential model evaluations.
To address these key bottlenecks, we introduce SPECCTMC, a training-free speculative sampler that reduces this sequential evaluations without the need for a separate draft model. Our approach builds on distribution-preserving speculative sampling for autoregressive (AR) language models (Leviathan et al., 2023; Chen et al., 2023) and its extension to continuous diffusion models (Bortoli et al., 2025). Speculative methods have also been developed for finite-step diffusion language model decoders (Agrawal et al., 2026; Pan et al., 2026). Here, we instead target the underlying absorbing-mask CTMC, including its random event times and the joint
selection of token positions and values.
As shown in Figure 1, the key observation is that, for the absorbing-mask generators considered here, event times depend on diffusion time and the number of remaining masks, independently of the identities of unmasked tokens. These times can therefore be sampled in advance and preserved when a proposed token update is rejected and corrected. SPECCTMC reuses previously computed model predictions to propose successive updates, evaluates their intermediate sequences in parallel, and applies an exact acceptance-and-correction procedure. We prove that the resulting trajectory has the same joint distribution of event times, token positions, and token values as direct simulation.
Experiments on LLaDA-8B-Instruct and Dream-v0-Instruct-7B across five benchmarks show that SPECCTMC uses 1.73-4.38× fewer sequential target-model evaluations than direct simulation, with measured wall-clock speedups of up to 2.88× on an NVIDIA B200. On GSM8K, multiple stochastic attempts solve questions missed by deterministic greedy denoising, and SPECCTMC reduces their cumulative sequential-evaluation cost relative to DirectCTMC. As shown in Figure 2, by reducing the number of sequential evaluations, SPECCTMC addresses a cost complementary to optimizations that make each evaluation cheaper. In particular, cached or otherwise approximate predictions can be used for drafting while exact target verification preserves the CTMC sampling distribution.
Our contributions are:
-
We develop a training-free speculative sampler without a separate draft model for absorbing-mask diffusion that verifies multiple successive token updates through parallel model evaluation.
-
We prove preservation of the complete CTMC trajectory distribution under the exactness conditions and, for an adaptive-depth variant under bounded unmasking influence, derive explicit bounds on sequential target batches and expected target work.
-
We evaluate SPECCTMC across reasoning, coding, and instruction-following benchmarks, demonstrating reductions in sequential model evaluations, practical latency gains, and the benefits of stochastic generation for multiple-answer coverage.

Figure 2. Exact law preserving of SpecCTMC on NFE acceleration. On GSM8K with LLaDA-8B-Instruct (256 generated tokens), SpecCTMC reduces target NFEs by 2.88× relative to DirectCTMC while preserving expected accuracy. Finite-step samplers trade accuracy for fewer evaluations.
2025); DirectCTMC instantiated this exact event-driven reference. Parallel first-hitting sampling uses the sampled event times but freezes token predictions across several updates, so exact clocks alone do not preserve the transition law. Uniformization instead obtains exact simulation from a common candidate clock and virtual self-transitions (Chen & Ying, 2024), whereas tau-leaping and higher-order solvers approximate the dynamics over finite intervals (Ren et al., 2025). SpecCTMC evaluates tentative future states together while preserving the joint law of event times, positions, and tokens.
Parallel and speculative masked decoding. Parallel masked decoders reduce model evaluations by committing several tokens from one set of predictions. Fast-dLLM and Fast-dLLM++ select updates by confidence, EB-Sampler uses entropy bounds, and PUNT tests approximate conditional independence (Wu et al., 2026; Kasa et al., 2026; Ben-Hamu et al., 2025; Azangulov et al., 2026). Schedule analyses characterize the resulting dependency error, while DEMASK and SIRS use learned influence estimates or rejection sampling to control it (Chen et al., 2025; Ringel et al., 2026; Zhang et al., 2026). Self Speculative Decoding reproduces a deterministic stepwise reference; Spiffy, Parallel Speculative Decoding, and trajectory-level speculation draft future denoising states under method-specific exactness conditions or measured speed and quality tradeoffs (Gao et al., 2025; Agrawal et al., 2026; Sun et al., 2026; Pan et al., 2026). Self-Speculative Masked Diffusions instead train a hybrid causal and noncausal architecture (Campbell et al., 2026). SpecCTMC uses previously computed predictions only to draft tentative marks. Target verification and positive-residual correction then preserve DirectCTMC without additional training or a separate drafter.
Exact speculative and parallel sampling. Exact speculative sampling has been developed for continuous diffusion transitions on fixed denoising schedules, with block verification improving progress across proposed transitions (Bortoli et al., 2025; Soen et al., 2026). AutoSpec uses exchangeable increments to parallelize continuous diffusion without a separate draft model (Hu et al., 2025). Autospeculation and Any-Subset Speculative Decoding obtain exact parallel samples from compatible conditional-marginal or joint-density oracles, and related theory parallelizes single-site dynamics under influence conditions (Anari et al., 2026; Guo & Ermon, 2026; Liu & Yin, 2025). Temporal-point-process methods likewise draft and verify marked event sequences (Gong et al., 2025; Biloš et al., 2025). SpecCTMC requires normalized state-dependent transition rows, but not globally compatible denoiser conditionals. For absorbing-mask models, correcting a proposed position and token leaves the future event clock valid, which permits exact speculation over the complete marked CTMC path. Table 1 summarizes these distinctions; Appendix E gives the detailed comparisons.
3 EVENT-DRIVEN MASKED DIFFUSION
Given an absorbing-mask diffusion model like (Ye et al., 2025; Nie et al., 2025), we define a target continuous-time Markov chain (CTMC) from its predicted token probabilities at masked positions and the masking schedule. We call its exact event-driven sampler DirectCTMC. Unlike decoding on a finite-step time grid, DirectCTMC samples the next event time from the CTMC's total exit intensity. Then it samples a position-token mark and unmasks exactly one position.
State and marks. Let be the finite set of token sequences for one generation block, and let mask be the mask token. For state , define the masked positions:
A marked event is then defined as , where is a masked position and is its replacement token. For a valid mark , define to be the sequence equal to at every coordinate except , with
Target generator. Let be the normalized target probability for replacement token at masked position for a fixed model . The model defines its unmasking process running backward in model time from to a positive cutoff . The LLaDA, Dream, and LLaDA-V formulations used here mask each generated-answer token independently with probability at model time (Nie et al., 2025; Ye et al., 2025; You et al., 2025). Appendix B.2 derives the resulting factor and gives the corresponding
Table 1. Comparison of masked-diffusion inference methods. “Natural-event CTMC law” is the stochastic process induced by the unchanged denoiser. “Within-trajectory parallelism” means that one target round can advance multiple events or positions.
| Method | Training free | Exact event times | Natural-event CTMC law | No separate drafter | Within-trajectory parallelism | No added factorization error |
|---|---|---|---|---|---|---|
| Continuous-time Markov chain simulation | ||||||
| Fixed-step ancestral / tau-leaping (Campbell et al., 2022; Ren et al., 2025) | Yes | No | No | Yes | Yes | No |
| Sequential FHS (DirectCTMC) (Zheng et al., 2025) | Yes | Yes | Yes | Yes | No | Yes |
| Parallel FHS (Zheng et al., 2025) | Yes | Yes | No | Yes | Yes | No |
| Parallel masked-diffusion decoding | ||||||
| Fast-dLLM (Wu et al., 2026) | Yes | No | No | Yes | Yes | No |
| Fast-dLLM++ (Kasa et al., 2026) | Yes | No | No | Yes | Yes | No |
| EB-Sampler (Ben-Hamu et al., 2025) | Yes | No | No | Yes | Yes | No |
| PUNT (Azangulov et al., 2026) | Yes | No | No | Yes | Yes | No |
| Speculative masked-diffusion decoding | ||||||
| Spiffy, practical LLaDA/Dream variant (Agrawal et al., 2026) | Yes | No | No | Yes | Yes | No |
| Self Speculative Decoding (Gao et al., 2025) | Yes | No | No | Yes | Yes | Yes |
| Parallel Speculative Decoding (Sun et al., 2026) | Yes | No | No | Yes | Yes | No |
| Trajectory-Level Speculative Decoding, practical variant (Pan et al., 2026) | Yes | No | No | Yes | Yes | No |
| Self-Speculative Masked Diffusions (Campbell et al., 2026) | No | No | No | Yes | Yes | Yes |
| Exact speculative natural-event simulation | ||||||
| SpecCTMC (ours) | Yes | Yes | Yes | Yes | Yes | Yes |
expression for a different monotone masking schedule. For these models, the event rate of the underlying CTMC is
For each masked position , is normalized over replacement tokens , so the total exit intensity is
The target mark distribution conditioned on an event is:
Thus, the position is uniformly distributed over masked positions, while the token follows the model probability at that position.
Exact event clock. Suppose the current time is , the current state is , and . For , define
This transformation has the exact survival law associated with . Every event unmasks exactly one mask, so the future intensity depends on the number of events, but not on the identities of their marks. The process has at most the initial number of masks and is therefore non-explosive. If the next time falls below the cutoff , simulation stops and both methods deterministically fill the remaining masked positions using the same rule.
Parallel commitment and conditional dependence. Unmasking several tokens from the same state can change their joint distribution because the sampled tokens do not condition on one another.
We illustrate this side-effect with an example of binary positions arranged in independent pairs. Each pair follows the distribution:
For , the full target distribution over the independent pairs is . Assume the model returns its exact conditional token distributions given the unmasked tokens.
Consider a general parallel decoder that independently assigns each position to a denoising step with probability . At each step with at least one assigned position, the decoder evaluates the current state once and independently samples all assigned positions from their conditional token distributions. Here we assume both DirectCTMC and parallel decoder run until all positions are unmasked, i.e., without stopping at the cutoff . Under these assumptions, we obtain Lemma 1 as follows:
Lemma 1 (Parallel commitment attenuates dependence). Let be the probability that two token positions are assigned to the same iteration. DirectCTMC returns , whereas the parallel decoder returns , where
Consequently, the probabilities that all pairs agree are and , respectively.
When , requiring all pairs to agree with probability at least , implies
where is the number of denoising steps with at least one assigned position, hence the number of target-model evaluations.
Equation (8) shows that independent parallel sampling undermines the pairwise dependence compared with target distribution. For a setting , , the parallel decoder requires at least approximately target-model evaluations on average.
While the above example identifies the loss of pairwise dependence caused by independent parallel sampling, SPECCTMC batches target-model evaluations at successive tentative states and verifies the proposed marks sequentially. The verification with residual correction preserves the DirectCTMC distribution while allowing several target evaluations to share one batched evaluation.
Exact reference simulation. DirectCTMC repeatedly samples with Equation (6), evaluates , samples one position-token mark, and commits it. It therefore uses one sequential target-model round per natural event and defines the reference path law. By contrast, tau-leaping and trapezoidal solvers approximate the CTMC by freezing or extrapolating transition rates over finite time intervals (Campbell et al., 2022; Ren et al., 2025). Our goal is to reduce sequential target-model evaluations while preserving the reference path law.
4 EXACT SPECULATIVE CTMC SIMULATION
SPECCTMC applies exact speculative decoding to the event-driven masked diffusion process described in Section 3. As previously established, the event time distribution depends only on model time and the number of remaining masks. SPECCTMC therefore samples all event times before generating their marks and speculates only over the position-token marks. Each speculative round drafts a tentative trajectory, evaluates the target distributions at the states before the proposed updates, and verifies the proposed marks in sequence. In our implementation, the drafter selects a masked position uniformly and samples its replacement token from a mixture of the previously computed target probabilities at that position and a uniform distribution over tokens other than the mask token. Appendix F gives the mixture weight and cache details. At the first rejection, SPECCTMC samples a corrected mark from the residual correction distribution and starts a new round from the corrected state.
Algorithm 1 Exact speculative simulation of one marked CTMC block.
Require: Initial state , time , cutoff , depth
1: , ,
2: Draw ,
3: ,
4:
5: while do
6: ,
7: for do
8: Form on ; draw
9:
10: end for
11: , (batched)
12: for do
13: Draw
14: if then
15:
16: else
17: Draw (Equation (11))
18: end if
19: ,
20: if then
21: break
22: end if
23: end for
24:
25: end while
26: Apply the common deterministic completion rule to
Batched target evaluation. The tentative trajectory provides the states before the proposed updates needed to evaluate
We evaluate these distributions in one or more target-model calls, reusing any target distribution already available for the same state. Appendix D.1 states how target states are grouped for each experiment.
Each input row represents the state before one proposed update. The target distribution at index is conditioned on the preceding proposed updates. A verification that reaches index means those proposals have all been accepted, so equals the current committed state. The target row therefore uses the same conditioning state as DirectCTMC.
Sequential verification and correction. For a proposed mark , define
A sampled proposal has . Draw independently and accept the proposal when . Averaging over the proposed mark gives . At the first rejection, sample a corrected mark from the residual correction distribution
where the denominator is the rejection probability and is positive whenever rejection occurs. If , acceptance is certain and no residual distribution will be formed.
The corrected mark is committed at time . SpecCTMC then discards the remaining tentative marks, states, and target distributions, and restarts drafting from the corrected state. If all proposals are accepted, the entire draft is committed.
Algorithm 1 summarizes the procedure of SPECCTMC, where Blue denotes drafting and batched target evaluation; red denotes sequential verification and residual correction. Black lines denote operations shared with DirectCTMC. SPECCTMC preserves sequential conditioning between committed events while batching the target evaluations along each tentative trajectory.
5 THEORETICAL ANALYSIS
We establish that SPECCTMC preserves the joint distribution of event times, position-token marks, and resulting states generated by DirectCTMC. The argument has two parts: (1) correcting a proposed mark leaves the event-time distribution unchanged, and (2) verification with residual correction produces marks with the target conditional distribution. We then characterize the number of speculative rounds and target evaluations, and relate this cost to proposal quality.
5.1 Event-Time Sampling
Validity of event times sampled before their marks. Let and be the initial mask count and event time. After events, there will be exactly masked positions remaining. The total exit intensity is , regardless of the previously unmasked positions and their token values.
We can thus sample the event times before generating any marks by:
where the are independent unit exponential random variables. Use the times at or above the cutoff , and define
We obtain the following lemma.
Lemma 2 (Validity of sampled event times). Conditional on , the clock has the same distribution as the event count and event times generated by DirectCTMC. Replacing a proposed position-token mark by another valid mark preserves the validity of all remaining sampled event times.
It remains to show that verification and correction produce the target mark distribution at each sampled event time, conditioned on the current committed state.
5.2 Exactness of the complete marked path
The conditions for equality of the joint event distributions appear in Appendix B.1.
Theorem 1 (Exact preservation of the joint event distribution). Under Conditions C1 to C8 in Appendix B.1, SPECCTMC and DirectCTMC satisfy
After stopping at the cutoff , applying the same deterministic completion rule also gives equal output distributions.
Complete assumptions and proofs are given in Appendices B and C.
By Theorem 1, independent repetitions of SPECCTMC and DirectCTMC have the same joint output distribution, and therefore the same pass@k for every k. We will discuss this implication in Section 6.
Target-model evaluations and latency. Let be the number of input rows per target model evaluation, and an indicator function on whether round reuses its first target distribution. Evaluating the full draft requires target-model calls, excluding initialization and deterministic completion at the cutoff. The total number of newly evaluated states is
where B and F count states evaluated for initialization and deterministic completion at the cutoff, respectively. These counts distinguish proposed events, evaluated states, and target-model calls. Latency additionally depends on batch evaluation cost, drafting, and verification, as we will discuss in Section 6.
Table 2. Exact speculative CTMC sampling on LLaDA. For each generated length we report wall-clock speedup of SpecCTMC over DirectCTMC (Wall-clock) and the reduction in sequential target-model calls (NFE); the draft depth used is in parentheses. Gray speedups are at parity (the paired 95% interval contains one); all others are faster, and no condition is slower. The last row reports accuracy (%) of DirectCTMC SpecCTMC averaged over lengths; every paired 95% confidence interval for the SpecCTMC-minus-DirectCTMC accuracy difference contains zero. Bold marks the best value.
| GSM8K | MATH | MBPP | HumanEval | IFEval | Avg. | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wall-clock | NFE | Wall-clock | NFE | Wall-clock | NFE | Wall-clock | NFE | Wall-clock | NFE | Wall-clock | NFE | |
| 32 | ||||||||||||
| 64 | ||||||||||||
| 128 | ||||||||||||
| 256 | ||||||||||||
| 512 | ||||||||||||
| Avg. | 2.58 | 2.40 | 2.01 | 3.30 | 3.66 | 2.79 | ||||||
| Acc. | ||||||||||||
Table 3. Exact speculative CTMC sampling on Dream. For each generated length we report the wall-clock speedup of SpecCTMC over DirectCTMC (Wall-clock) and the reduction in sequential target model function evaluations (NFE); depth used shown in (). The last row reports accuracy (%) of DirectCTMC SpecCTMC, averaged over lengths.
| GSM8K | MATH | MBPP | HumanEval | IFEval | Avg. | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wall-clock | NFE | Wall-clock | NFE | Wall-clock | NFE | Wall-clock | NFE | Wall-clock | NFE | Wall-clock | NFE | |
| 32 | ||||||||||||
| 64 | ||||||||||||
| 128 | ||||||||||||
| 256 | ||||||||||||
| 512 | ||||||||||||
| Avg. | ||||||||||||
| Acc. | ||||||||||||
6 EXPERIMENTS
Model and benchmark. We evaluate LLaDA-8B-Instruct and Dream-v0-Instruct-7B on GSM8K (Cobbe et al., 2021), MATH (Hendrycks et al., 2021), MBPP (Austin et al., 2021), HumanEval (Chen et al., 2021), and IFEval (Zhou et al., 2023), reporting sequential target-model evaluations, accuracy, and wall-clock time. We also evaluate the multimodal diffusion language model LLaDA-V (You et al., 2025) on MathVerse (Zhang et al., 2024) and MathVista (Lu et al., 2024), reporting NFE reduction and acceptance.
Baselines. We compare SPECCTMC with DirectCTMC, the exact event-driven sampler, and two approximate samplers, Tau-leaping and trapezoidal sampling (Campbell et al., 2022; Lou et al., 2024). These comparisons assess the reduction in target-model evaluations under exact sampling and the cost-quality trade-off of finite-step approximate samplers.
Implementation details. We evaluate generation lengths at sampling temperature one. The speculation depth is selected separately for each condition from by warmed timing on five fixed questions. Acceptance rate is the fraction of drafted events
Table 4. DirectCTMC vs. SpecCTMC on multimodal LLaDA-V. NFE is averaged across the fixed evaluation set and sampling seeds.
| Dataset | Depth | NFE | ||||
|---|---|---|---|---|---|---|
| Direct. | Spec. | reduction | Accept. | |||
| MathVerse | 256 | 8 | 256.00 | 43.17 | 0.698 | |
| 512 | 8 | 512.00 | 78.04 | 0.784 | ||
| MathVista | 256 | 8 | 256.00 | 42.41 | 0.718 | |
| 512 | 8 | 512.00 | 76.48 | 0.806 | ||
accepted during verification. We report wall-clock speedup and the reduction in sequential target-model evaluations (NFE), both relative to DirectCTMC. Unless stated otherwise, wall-clock time is measured on one NVIDIA B200 GPU. Appendix D gives the depth-selection and evaluation protocols.
6.1 Reduced Target Evaluation against DirectCTMC
Results are averaged across the fixed evaluation set and sampling seeds. The NFE reduction is defined as , where and are the mean sequential target-model evaluations for DirectCTMC and SpecCTMC.


Figure 3. Batching cost and complete-generation speedup depend on the hardware. (a, b) Forward-only relative cost of one three-candidate target call against one single-candidate call, versus complete sequence length for LLaDA-8B-Instruct and Dream-7B-Instruct on a B200 and an L40S GPU. The dashed line marks the cost of three separate calls and the dotted line one single-candidate call. At short lengths on the B200, one three-state call costs less than three separate calls. As sequence length grows, the three-state call approaches the cost of three separate calls on both GPUs, with the L40S reaching that regime at shorter lengths. (c) Complete-generation speedup of SpecCTMC over DirectCTMC versus speculation depth for Dream-7B-Instruct on HumanEval and GSM8K with 256 generated tokens, on a B200 (solid) and an L40S (dashed); shaded bands are paired 95% intervals. The same depth, acceptance, and evaluation reduction give different wall-clock outcomes on the two devices, and depth 8 on GSM8K exceeds L40S memory.
Across the text evaluation in Tables 2 and 3, SpecCTMC reduces sequential target-model evaluations by factors from 1.729 to 4.379. Acceptance rate is a standard diagnostic for AR speculative decoding literature (Wang et al., 2026); it measures the fraction of proposed events accepted without positive-residual correction, while the NFE reduction also depends on how accepted events are grouped into verification rounds. In Table 4, on multimodal LLaDA-V, SpecCTMC achieves larger NFE reductions of on MathVerse and MathVista, extending these gains to image-conditioned generation.
NFE vs Wall-Clock Time Acceleration. The NFE reductions in Tables 2 and 3 count sequential target-model calls. For complete sequence length n and hidden width h, linear layers flatten the three-state tensor to . Batching combines the states into one model call without removing their matrix computation. Figure 3 shows that, for short sequences on the B200, one three-state call costs less than three separate calls. As sequence length grows, its cost approaches that of three separate calls on both GPUs.
Accordingly, the right panel finds Dream on HumanEval faster at every B200 depth and at L40S depths 2 to 5, while long-prompt GSM8K is at parity or slower and exceeds L40S memory at depth 8. This compute-bound behavior matches Sadhukhan et al. (2025). In the Self Speculative Decoding control (Gao et al., 2025), approximate caching changes a 1.76 times slowdown into a 1.40 times speedup. Details are given in Appendix D.3.
6.2 Comparison against approximate samplers
Approximate solvers reduce sampling cost by advancing several token updates before recomputing the model's predictions. Tau leaping uses transition rates evaluated at the beginning of each interval, while the trapezoidal solver adds an intermediate evaluation to better approximate how these rates change (Campbell et al., 2022; Lou et al., 2024; Ren et al., 2025). Both approaches reduce sequential evaluations through finite-step approximation. SpecCTMC instead reduces sequential evaluations while preserving the underlying CTMC distribution. We give the solver constructions and implementation details in Appendix D.5.
We compare these methods on GSM8K using LLaDA-8B-Instruct with 256 generated tokens and temperature 1.0. Figure 4 reports mean answer accuracy and Pass@K for independent attempts per question. Each metric is normalized to DirectCTMC at the same K. Evaluation reduction uses the corresponding median cumulative sequential target-model evaluations. We account for the trapezoidal solver's two evaluations per step; in particular, eight trapezoidal steps and sixteen tau-leaping steps both require 17 evaluations per answer.
Coarse solver schedules substantially reduce evaluations but lower mean answer accuracy. Additional attempts recover some solution coverage: at K = 8, the coarsest tau-leaping and trapezoidal settings achieve approximately 55% Pass@8 despite mean answer accuracy of approximately 14%. Increasing the step budget does not produce a monotonic improvement in every observed metric, and trapezoidal sampling does not uniformly outperform tau leaping at their

Figure 4. Output quality versus sequential evaluation reduction. LLaDA-8B-Instruct, GSM8K, 256 tokens, . Columns: answers per question. Rows: mean accuracy and Pass@, normalized to DirectCTMC at the same (absolute DirectCTMC score in the lower-left corner). The horizontal axis is the ratio of median cumulative sequential target-model evaluations (DirectCTMC / method). From left to right, -leaping uses 256, 192, 64 and 16 steps and trapezoidal uses 64 and 8 steps; at and evaluations per answer, 16-step -leaping and 8-step trapezoidal are cost matched.
matched evaluation budget.
SpecCTMC reduces sequential evaluations by approximately across these answer counts without introducing a solver approximation. At , SpecCTMC and 256-step tau leaping both achieve 71.88% Pass@8, using 724 and 2,056 median cumulative evaluations, respectively. Thus, SpecCTMC reaches the same observed coverage with approximately fewer sequential evaluations in this comparison, while preserving the DirectCTMC sampling law.
6.3 Solution Coverage from Repeated Stochastic Sampling
Deterministic greedy denoising is effective when only one answer is required. Additional attempts do not expand its solution coverage because the decoder returns the same output each time. Stochastic sampling explores alternative outputs, so additional computation can discover solutions missed by the single deterministic decoding trajectory.
Token temperature controls the token sampled at a selected position, while position temperature controls the order in which masked positions are unmasked. Mean accuracy over attempts averages correctness across all generated answers through attempt . Pass@ is the percentage of evaluation problems solved at least once. Variation in unmasking order can restore Pass@ scaling and improve coverage at a matched evaluation budget (Olausson et al., 2026). The temperature that gives the best coverage can also change

(a) Stochastic sampling expands coverage

(b) Exact speculation reduces sampling cost
Figure 5. Stochastic sampling expands solution coverage, and exact speculation reduces its sequential cost. All results use LLaDA-8B-Instruct on five-shot GSM8K with 256 generated tokens. The dashed line is the strongest matched deterministic configuration, Fast-dLLM factor (81.25%; Table 7). (a): empirical Pass@ for four selected fixed token temperatures; is highlighted. (b): measured DirectCTMC and SpecCTMC results at , with points corresponding to . At , both attain 85.94% observed coverage, while median cumulative sequential evaluations decrease from 8,140 to 2,901 ().
with the number of attempts (Lamont et al., 2026). These results motivate exact acceleration of stochastic sampling. Approximate acceleration can change the chosen sampling distribution. SpecCTMC reduces sequential target-model evaluations while preserving the complete CTMC sampling law at each fixed temperature.
We additionally evaluated recent deterministic decoding methods to establish a strong reference for this comparison. Greedy denoising and the confidence-threshold and factor decoders from Fast-dLLM (Wu et al., 2026) were run with the same checkpoint revision, prompts, evaluation questions, generation length, scorer, and timing procedure. Their accuracies range from 78.13% to 81.25%, with the factor decoder providing the strongest matched deterministic result. Under the tested configurations, repeated runs produce the same answer, so their solution coverage remains constant.
as the number of attempts increases. Pass@K measures solution coverage across these candidate answers. These experiments do not evaluate a selector that chooses one final answer. We therefore use 81.25% as the deterministic reference in Figure 5. Complete results, including additional greedy-derived speculative methods such as PSD, trajectory-level speculative decoding, and Spiffy (Sun et al., 2026; Pan et al., 2026; Agrawal et al., 2026), are reported in Appendix D.4.
Lower token temperatures improve single-answer accuracy, while repeated stochastic answers increase solution coverage. The highlighted curve exceeds the strongest matched deterministic result by , and all four displayed temperatures do so by . At and , SpecCTMC matches DirectCTMC's coverage with fewer median cumulative sequential evaluations while preserving the CTMC law. We separate the effects of token choice and unmasking order in Appendix D.2.
6.4 Composition of SpecCTMC with complementary improvements
The practical goal for diffusion language models is to match the quality of autoregressive models while reducing the sequential work required to generate an answer. Autoregressive inference benefits from key/value caching, but a 256-token answer still requires approximately 256 dependent decoding steps (Leviathan et al., 2023; Chen et al., 2023). SpecCTMC and caching address complementary parts of this cost: SpecCTMC shortens the sequence of dependent target evaluations, while caching reduces the work performed in each evaluation.
We first combine depth-three SpecCTMC with a prompt-only key/value cache adapted from Fast-dLLM (Wu et al., 2026). The cache stores the fixed prompt, recomputes the generated positions, and refreshes the prompt representation after a fixed number of unmasked tokens. On GSM8K with LLaDA-8B-Instruct and 256 generated tokens, refresh intervals of 8 and 16 make SpecCTMC 1.70 and 1.94 times faster than the corresponding cached sequential CTMC. The two settings reduce sequential target evaluations by factors of 2.53 and 2.59. Counting each cache refresh as an additional sequential model evaluation gives 133.5 and 115.3 evaluations, respectively, compared with approximately 256 sequential model evaluations for standard autoregressive decoding. At both settings, the 95 percent interval for the cached sequential method's accuracy difference from uncached DirectCTMC contains zero. SpecCTMC preserves the corresponding cached sequential process. This process approximates complete prompt-and-answer recomputation because it refreshes the prompt representation only at fixed intervals.
We next test whether the same mechanism transfers to
the Fast-dLLM-v2 checkpoint released with DualDiffusion (Goyal et al., 2026). Predictions from a previous call to this checkpoint propose up to four future events. We verify each proposal using probabilities evaluated at its tentative state and correct the first rejected proposal. On GSM8K with 32 generated tokens, this reduces sequential checkpoint evaluations from 32.0 to 10.25, or 3.12 times. Including 1.5 proposal evaluations gives 11.75 checkpoint evaluations per answer. The exactness tests pass, while median generation time remains 55.63 seconds for the event-by-event sampler and 55.70 seconds for SpecCTMC. This experiment shows that SpecCTMC can use Fast-dLLM-v2 checkpoint probabilities for both proposal and exact verification. It does not test composition with the native Fast-dLLM-v2 cache or confidence-based commitment rule. Detailed results appear in Appendix D.6.
7 LIMITATIONS AND CONCLUSION
SpecCTMC reduces sequential target-model evaluations for the natural-event CTMC induced by an unchanged masked denoiser, while exact verification and positive-residual correction preserve DirectCTMC's event-time and mark law. Our experiments on LLaDA and Dream show lower latency across most measured conditions without a separate draft model, and the cache experiment shows that SpecCTMC composes with cache reuse. The method complements other exact CTMC simulators. Uniformization replaces state-dependent event rates with a dominating Poisson clock and virtual self-transitions, and has been developed for reverse discrete diffusion without time-discretization error (Chen & Ying, 2024). A matched comparison can determine when its virtual-event cost is preferable to SpecCTMC's additional target rows.
For SpecCTMC, elapsed time depends on sequence length, memory, and the target model's batch-cost curve because rows after the first rejection may be unused (Sadhukhan et al., 2025; Ho et al., 2026); our hardware study quantifies these effects in Appendix D.3. The influence condition in Theorem 2 gives a sufficient condition for long accepted prefixes and linear expected target-row work (Liu & Yin, 2025). Larger changes in the remaining token predictions can reduce acceleration, but they do not affect the path-law guarantee in Theorem 1. These results establish exact speculative batching as a practical way to exchange parallel target work for lower sequential depth while preserving the chosen stochastic decoding process.
REFERENCES
Agrawal, S., Garrepalli, R., Goel, R., Lott, C., Porikli, F., and Lee, M. Structuring the future: Diffusion llm speculative decoding via calibrated draft graphs, 2026. URL https://arxiv.org/abs/2509.18085.
Anari, N., Baronio, C., Chen, C., Haqi, A., Koehler, F., Li, A., and Vuong, T.-D. Parallel sampling via autospeculation. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, STOC '26, pp. 1168–1179, New York, NY, USA, 2026. Association for Computing Machinery. ISBN 9798400725364. doi: 10.1145/3798129.3800828. URL https://doi.org/10.1145/3798129.3800828.
Austin, J., Odena, A., Nye, M., Bosma, M., Michalewski, H., Dohan, D., Jiang, E., Cai, C., Terry, M., Le, Q., and Sutton, C. Program synthesis with large language models, 2021. URL https://arxiv.org/abs/2108.07732.
Azangulov, I., Pandeva, T., Prasad, N., Zazo, J., and Karmalkar, S. Parallel sampling from masked diffusion models via conditional independence testing. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=XjcHRIu0iF.
Ben-Hamu, H., Gat, I., Severo, D., Nolte, N., and Karrer, B. Accelerated sampling from masked diffusion models via entropy bounded unmasking. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=WBcBhT1NKO.
Biloš, M., Schneider, A., and Nevmyvaka, Y. Speculative sampling for parametric temporal point processes, 2025. URL https://arxiv.org/abs/2510.20031.
Bortoli, V. D., Galashov, A., Gretton, A., and Doucet, A. Accelerated diffusion models via speculative sampling. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=BTJSkPpH1t.
Campbell, A., Benton, J., Bortoli, V. D., Rainforth, T., Deligiannidis, G., and Doucet, A. A continuous time framework for discrete denoising models. In Oh, A. H., Agarwal, A., Belgrave, D., and Cho, K. (eds.), Advances in Neural Information Processing Systems, 2022. URL https://openreview.net/forum?id=DmT862YAieY.
Campbell, A., Bortoli, V. D., Shi, J., and Doucet, A. Self-speculative masked diffusions. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=ogMTEtHO6M.
Chen, C., Borgeaud, S., Irving, G., Lespiau, J.-B., Sifre, L., and Jumper, J. Accelerating large language model decoding with speculative sampling, 2023. URL https://arxiv.org/abs/2302.01318.
Chen, H. and Ying, L. Convergence analysis of discrete diffusion model: Exact implementation through uniformization, 2024. URL https://arxiv.org/abs/2402.08095.
Chen, M., Tworek, J., Jun, H., Yuan, Q., de Oliveira Pinto, H. P., Kaplan, J., Edwards, H., Burda, Y., Joseph, N., Brockman, G., Ray, A., Puri, R., Krueger, G., Petrov, M., Khlaaf, H., Sastry, G., Mishkin, P., Chan, B., Gray, S., Ryder, N., Pavlov, M., Power, A., Kaiser, L., Bavarian, M., Winter, C., Tillet, P., Such, F. P., Cummings, D., Plappert, M., Chantzis, F., Barnes, E., Herbert-Voss, A., Guss, W. H., Nichol, A., Paino, A., Tezak, N., Tang, J., Babuschkin, I., Balaji, S., Jain, S., Saunders, W., Hesse, C., Carr, A. N., Leike, J., Achiam, J., Misra, V., Morikawa, E., Radford, A., Knight, M., Brundage, M., Murati, M., Mayer, K., Welinder, P., McGrew, B., Amodei, D., McCandlish, S., Sutskever, I., and Zaremba, W. Evaluating large language models trained on code, 2021.
Chen, S., Cong, K., and Li, J. Optimal inference schedules for masked diffusion models, 2025. URL https://arxiv.org/abs/2511.04647.
Cobbe, K., Kosaraju, V., Bavarian, M., Chen, M., Jun, H., Kaiser, L., Plappert, M., Tworek, J., Hilton, J., Nakano, R., Hesse, C., and Schulman, J. Training verifiers to solve math word problems, 2021. URL https://arxiv.org/abs/2110.14168.
Gao, Y., Ji, Z., Wang, Y., Qi, B., Xu, H., and Zhang, L. Self speculative decoding for diffusion large language models, 2025. URL https://arxiv.org/abs/2510.04147.
Gillespie, D. T. Exact stochastic simulation of coupled chemical reactions. The Journal of Physical Chemistry, 81(25):2340–2361, 12 1977. ISSN 0022-3654. doi: 10.1021/j100540a008. URL https://doi.org/10.1021/j100540a008.
Gong, S., FU, Y., Ran, F., Kong, Q., and Zhou, F. TPP-SD: Accelerating transformer point process sampling with speculative decoding. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=LkqK19tqgx.
Goyal, S., Patel, K., Mittal, T., and Laxman, A. Dual-iffusion: A speculative decoding strategy for masked diffusion models, 2026. URL https://arxiv.org/abs/2604.05250.
Guo, G. and Ermon, S. Self-speculative decoding accelerates lossless inference in any-order and any-subset autoregressive models. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=hZnibTOke7.
Hendrycks, D., Burns, C., Kadavath, S., Arora, A., Basart, S., Tang, E., Song, D., and Steinhardt, J. Measuring mathematical problem solving with the MATH dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2), 2021. URL https://openreview.net/forum?id=7Bywt2mQsCe.
Ho, C.-E., Sun, W., Shih, C.-J., Li, H., Liu, Y., and Lin, Y. C. Specfold: Folding multi-branch redundancy for faster speculative decoding in diffusion language models, 2026. URL https://arxiv.org/abs/2610.04875.
Hu, H., Das, A., Sadigh, D., and Anari, N. Diffusion models are secretly exchangeable: Parallelizing DDPMs via auto speculation. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=n08niE37ku.
Kasa, S. R., Dai, Y., Negi, S., and Li, H. Fast-dllm++: Fréchet profile decoding for faster diffusion llm inference, 2026. URL https://arxiv.org/abs/2606.02955.
Lamont, S., Walder, C., Montague, P., Dezfouli, A., and Norrish, M. Free lunch for pass@k? low cost diverse sampling for diffusion language models. arXiv preprint, 2026.
Leviathan, Y., Kalman, M., and Matias, Y. Fast inference from transformers via speculative decoding. In Krause, A., Brunskill, E., Cho, K., Engelhardt, B., Sabato, S., and Scarlett, J. (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 19274–19286. PMLR, 23–29 Jul 2023. URL https://proceedings.mlr.press/v202/leviathan23a.html.
Liang, Y., Tan, Z., Shroff, N., and Liang, Y. Sharp convergence rates for masked diffusion models, 2026. URL https://arxiv.org/abs/2602.22505.
Liu, H. and Yin, Y. Parallelize single-site dynamics up to dobrushin criterion. J. ACM, 72(1), January 2025. ISSN 0004-5411. doi: 10.1145/3708558. URL https://doi.org/10.1145/3708558.
Lou, A., Meng, C., and Ermon, S. Discrete diffusion modeling by estimating the ratios of the data distribution. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=CNicRIVIPA.
Lu, P., Bansal, H., Xia, T., Liu, J., Li, C., Hajishirzi, H., Cheng, H., Chang, K.-W., Galley, M., and Gao, J. Mathvista: Evaluating mathematical reasoning of foundation models in visual contexts. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=KUNzEQMWU7.
Nie, S., Zhu, F., You, Z., Zhang, X., Ou, J., Hu, J., ZHOU, J., Lin, Y., Wen, J.-R., and Li, C. Large language diffusion models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=KnqiC0znVF.
Olausson, T. X., Jazbec, M., Wang, X., Solar-Lezama, A., Naesseth, C. A., Mandt, S., and Nalisnick, E. A tale of two temperatures: Simple, efficient, and diverse sampling from diffusion language models. In Third Conference on Language Modeling, 2026. URL https://openreview.net/forum?id=mUyvTuvWOZ.
Pan, T., Gong, B., Guang, M., Yong, H., Jiang, T., Li, Y., Cao, Z., and Long, K. Trajectory-level speculative decoding for diffusion language models. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=pMY15tVUTT.
Ren, Y., Chen, H., Zhu, Y., Guo, W., Chen, Y., Rotskoff, G. M., Tao, M., and Ying, L. Fast solvers for discrete diffusion models: Theory and applications of high-order algorithms. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=OuklL6Q3sO.
Ringel, L., Ali, A., and Romano, Y. Dependency-guided parallel decoding in discrete diffusion language models, 2026. URL https://arxiv.org/abs/2604.02560.
Sadhukhan, R., Chen, J., Chen, Z., Tiwari, V., Lai, R., Shi, J., Yen, I. E.-H., May, A., Chen, T., and Chen, B. Magicdec: Breaking the latency-throughput tradeoff for long context generation with speculative decoding. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=CS2JWaziYr.
Sahoo, S. S., Arriola, M., Gokaslan, A., Marroquin, E. M., Rush, A. M., Schiff, Y., Chiu, J. T., and Kuleshov, V. Simple and effective masked diffusion language models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=L4uaAR4ArM.
Shi, J., Han, K., Wang, Z., Doucet, A., and Titsias, M. K. Simplified and generalized masked diffusion for discrete data. In Advances in Neural Information Processing Systems, 2024.
Soen, A., Husain, H., Bortoli, V. D., and Doucet, A. Accelerating speculative diffusions via block verification, 2026. URL https://arxiv.org/abs/2606.13426.
Sun, S., Li, Y., Liu, R., Li, X., Zhen, H.-L., Lin, W., Chen, C., Yu, X., Yuan, M., and Ma, C. Psd: Pushing the pareto frontier of diffusion llms via parallel speculative decoding, 2026. URL https://arxiv.org/abs/2605.15609.
Sun, Z., Mendlovic, U., Leviathan, Y., Aharoni, A., Ro, J. H., Beirami, A., and Suresh, A. T. Block verification accelerates speculative decoding. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=frsg32u0r0.
Torroba Hennigen, L. and Kim, Y. Deriving language models from masked language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 1149–1159, Toronto, Canada, 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.acl-short.99. URL https://aclanthology.org/2023.acl-short.99/.
Wang, Z., Kasa, S. R., S. A. M., Kasa, S. K., Zou, J., Negi, S., Zhang, R., Jiang, N., and Song, Q. DIVERSED: Relaxed speculative decoding via dynamic ensemble verification. In The 29th International Conference on Artificial Intelligence and Statistics, 2026. URL https://openreview.net/forum?id=yCNt8ovyzl.
Wu, C., Zhang, H., Xue, S., Liu, Z., Diao, S., Zhu, L., Luo, P., Han, S., and Xie, E. Fast-dLLM: Training-free acceleration of diffusion LLM by enabling KV cache and parallel decoding. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=3Z3Is6hnOT.
Ye, J., Xie, Z., Zheng, L., Gao, J., Wu, Z., Jiang, X., Li, Z., and Kong, L. Dream 7b: Diffusion large language models, 2025. URL https://arxiv.org/abs/2508.15487.
You, Z., Nie, S., Zhang, X., Hu, J., Zhou, J., Lu, Z., Wen, J.-R., and Li, C. Llada-v: Large language diffusion models with visual instruction tuning. arXiv preprint arXiv:2505.16933, 2025.
Young, T., Chen, Y., and You, Y. Inconsistencies in masked language models, 2024. URL https://arxiv.org/abs/2301.00068v3. Version 3.
Zhang, R., Jiang, D., Zhang, Y., Lin, H., Guo, Z., Qiu, P., Zhou, A., Lu, P., Chang, K.-W., Qiao, Y., Gao, P., and Li, H. Mathverse: Does your multi-modal llm
truly see the diagrams in visual math problems? In Computer Vision – ECCV 2024: 18th European Conference, Milan, Italy, September 29–October 4, 2024, Proceedings, Part VIII, pp. 169–186, Berlin, Heidelberg, 2024. Springer-Verlag. ISBN 978-3-031-73241-6. doi: 10.1007/978-3-031-73242-3_10. URL https://doi.org/10.1007/978-3-031-73242-3_10.
Zhang, S., Li, X., Di, Q., and Gu, Q. Query-efficient rejection sampling for parallel masked diffusion, 2026. URL https://arxiv.org/abs/2610.22238.
Zheng, K., Chen, Y., Mao, H., Liu, M.-Y., Zhu, J., and Zhang, Q. Masked diffusion models are secretly time-agnostic masked models and exploit inaccurate categorical sampling. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=CTC7CmirNr.
Zhou, J., Lu, T., Mishra, S., Brahma, S., Basu, S., Luan, Y., Zhou, D., and Hou, L. Instruction-following evaluation for large language models, 2023. URL https://arxiv.org/abs/2311.07911.
IMPACT STATEMENT
This work develops an inference algorithm for sampling from a fixed diffusion language model more efficiently under explicit mathematical conditions. Faster generation can reduce latency and accelerator use for applications that already deploy these models. It can also lower the cost of producing low-quality, misleading, or harmful text. The method does not change model weights, training data, or safety behavior, so it neither removes nor introduces content safeguards by itself. Deployments remain responsible for model selection, access controls, output evaluation, and monitoring. Our restricted code evaluation executes generated programs under process, memory, time, import, file, and network limits rather than treating unrestricted execution as a benchmark convenience.
AI USAGE DISCLOSURE
This section describes how generative AI and AI-based tools were used in producing this work. The authors take full responsibility for all content, have checked every AI-assisted output against the underlying data and derivations, and made every scientific claim and decision themselves.
Tools. We used ChatGPT Work and Claude Code.
Ideation and method design. The ideation and method design comes entirely from the authors. No help comes from AI tools in this stage.
Literature search. AI tools helped retrieve related papers and organize comparisons. The authors read the primary sources and selected the citations and claims.
Experiment design and code implementation. We used closed-source Claude agent models to scaffold experiment-evaluation and analysis scripts and to review code.
Figures, tables and writing. AI tools helped prepare figure and table templates and edit manuscript prose from author instructions and verified results. The authors checked the resulting artifacts and text against the underlying evidence.
Exact Speculative CTMC Simulation Appendix Contents A Terminology and Notations . . . . . . . . . . . . . . 15 B Assumptions, Complete Proofs and Edge Cases . . . 17 B.1 Assumptions for exactness . . . . . . . . . . . 17 B.2 Masking schedule and time coordinate . . . . . 17 B.3 Event times sampled before mark generation . 18 B.4 Conditional one-event verification . . . . . . . 18 B.5 Complete marked-path law . . . . . . . . . . . 19 B.6 Uniformization for state-dependent exit rates . 20 C Additional Theory: Parallel Complexity . . . . . . . 20 C.1 Total unmasking influence . . . . . . . . . . . 20 C.2 Adaptive-depth complexity . . . . . . . . . . . 21 C.3 A quality and complexity separation . . . . . . 22 D Extended Experimental Results . . . . . . . . . . . . 23 D.1 Evaluation protocol . . . . . . . . . . . . . . . 23 D.2 Token choice and unmasking order . . . . . . . 23 D.3 Wallclock vs NFE reduction . . . . . . . . . . 23 D.4 Deterministic Decoding References . . . . . . 24 D.5 Approximate Solver Details . . . . . . . . . . 24 D.6 Composition with caching and Fast-dLLM-v2 self-drafting . . . . . . . . . . . . . . . . . . . 25 E Related Work . . . . . . . . . . . . . . . . . . . . . 26 F Implementation Details . . . . . . . . . . . . . . . . 28 A Terminology and Notations We collect terms and symbols used throughout the main paper and the appendix, shown in Table 5.
Table 5. Terminology and notation used throughout the main paper and appendix.
| Term or symbol | Meaning |
|---|---|
| Process | |
| DirectCTMC | Event-by-event exact simulation of the absorbing-mask CTMC: one target-model evaluation per unmasking event. |
| SpecCTMC | Exact speculative simulation of the same CTMC. |
| Natural event | One masked position unmasked at a random event time. |
| Mark | Position and replacement token of one event. |
| State update | Sequence equal to except that position is replaced by token . |
| Product distribution | Distribution of independent binary pairs: . |
| Masked positions , count | Positions in state equal to the mask token, and their number. |
| Target kernel | Conditional mark distribution at time and state : uniform position, model token probability. |
| Exit intensity | Total event rate; depends only on time and mask count. |
| Cutoff , deterministic completion | Simulation stops below model time ; remaining masks are then filled using a fixed rule. |
| Event-time sequence | Number and times of events at or above the cutoff, sampled before their marks. |
| Greedy denoising | Deterministic finite-step decoder: confidence-ordered unmasking and argmax token. |
| Tau leaping, trapezoidal solver | Fixed-step approximate CTMC solvers of first and second order. |
| Speculation | |
| Speculation depth | Maximum number of events drafted per round; denotes a selected depth. |
| Round, draft length | One draft-evaluate-verify cycle and its number of drafted events. |
| Proposal , draft | Proposal distribution, proposed mark, and tentative state at draft index . |
| Cached target proposal | Proposal that initially uses probabilities from an initial target-model evaluation and subsequently uses target probabilities evaluated at the most recently verified tentative state. |
| Target row | Target kernel evaluated at tentative pre-update state ; target rows are evaluated in batches. |
| Acceptance | Maximal-coupling acceptance probability of mark and its average over . |
| Residual | Positive-part correction distribution sampled at the first rejection. |
| Accepted prefix , committed | Accepted events in round and committed events including the corrected one. |
| Logical target rows , charged rows , evaluated states | Work counts used in the analysis; rows used for initialization , deterministic completion , and padding are counted separately. |
| Row consistency | Each batched target row equals the kernel of its own input state (Condition C6). |
| Evaluation Metrics | |
| NFE, sequential target-model evaluation | Target evaluation that must finish before the next state-dependent evaluation begins. |
| NFE reduction | Mean DirectCTMC NFE divided by mean SpecCTMC NFE. |
| Acceptance rate | Fraction of drafted events accepted during verification. |
| Wall-clock ratio | DirectCTMC total generation time divided by SpecCTMC total generation time; faster, parity, or slower by the paired 95% interval. |
| Per-evaluation cost factor | , so . |
| Call cost | Time of one target call with states at complete sequence length . |
| Complete sequence length | Prompt plus generated tokens processed by each evaluation. |
| Target batch | Number of states per physical target call, specified by the experiment. |
| Mean accuracy at , Pass@ | Average correctness over attempts; fraction of problems solved at least once in attempts. |
| Accuracy ratio | Method accuracy divided by DirectCTMC accuracy. |
B ASSUMPTIONS, COMPLETE PROOFS AND EDGE CASES
This section states the hypotheses for Theorem 1 and gives its complete proof. The hypotheses separate the probabilistic argument from the implementation properties that must be checked for a concrete target-model evaluator.
B.1 Assumptions for exactness
Let be a fixed finite ambient mark space. At state , the valid marks form a subset , and kernels on valid marks are extended by zero to . Theorem 1 uses the following conditions.
C1. DirectCTMC and SpecCTMC use the same initial-state law and the same cutoff . Their number of events at or above the cutoff is finite almost surely.
C2. Conditional on the initial state and each committed history, both methods use a common clock law that remains valid under every mark history produced by correction. The random primitives used to draw this clock are independent of the proposal, verification, and correction primitives. For the absorbing-mask generator, Lemma 2 verifies this condition.
C3. At every sampled event time t and state x with positive exit intensity, is a normalized probability mass function on . No natural-event mark is requested at zero exit intensity.
C4. Each draft kernel is selected causally from information available before proposal i of round r. The proposal uses a fresh draw. Its verification uniform is independent of that draw conditional on the available information. Following rejection, the correction uses a fresh draw from the normalized positive part of the full joint mark residual on .
C5. Verification proceeds in draft order. It commits a correction at the first rejection and discards the complete later tentative suffix. Decisions at an earlier index do not depend on that later suffix.
C6. Every target row used by verification equals the declared kernel for that row's own time and tentative input state, independently of the other batch rows and any padding rows. Outputs of padding rows are discarded.
C7. The depth of a round is selected from pre-round information before the proposal and verification variables of that round are drawn.
C8. Both methods use the same deterministic state update , the same cutoff rule, and the same deterministic completion rule at the cutoff, including all tie rules.
Conditions C1 to C8 are hypotheses of the mathematical theorem. In the implementation, the target and draft rows are normalized over tokens other than the mask token; event, proposal, verification, and residual draws use separate random-number generators; verification stops at the first rejection; and the fixed-size target evaluator duplicates only padding rows and discards their outputs. The source also checks that every reached draft input state equals the committed state. These checks establish the stated control flow. Condition C6 additionally declares which finite-precision target operator the theorem treats as its kernel; the released-checkpoint tests check representative rows rather than proving this numerical identity for every possible input.
B.2 Masking schedule and time coordinate
Let be the probability that an answer position is masked at model time . Assume that is differentiable and strictly increasing, and that all answer positions use this absorbing-mask schedule. Conditional on a position being masked at time , its probability of becoming unmasked as time decreases to is
The reverse rate for replacing masked position d by replacement token v is therefore
If answer positions remain masked, the probabilities over replacement tokens sum to one, so
Thus, the total exit intensity depends on model time and the number of remaining masks, but not on the position or token selected by an event. For , inversion of the accumulated exit intensity gives
Equivalently, use the masking probability itself as the time coordinate, . In this coordinate, Equation (18) becomes
A time-conditioned denoiser must therefore receive the corresponding original model time . LLaDA, Dream, and LLaDA-V use for generated-answer tokens (Nie et al., 2025; Ye et al., 2025; You et al., 2025). The coordinate change is the identity for the models evaluated here, so Equations (18) and (20) reduce to Equations (3) and (6). The calculation also shows that the common-clock argument in Condition C2 applies to any shared schedule satisfying the assumptions above: replacing a proposed position-token mark does not change the conditional distribution of later event times because every valid event removes exactly one mask.
B.3 Event times sampled before mark generation
Proof of Lemma 2. Fix , let , and set . For , define
For , conditioning on gives
\begin{align*}\Pr(T_{j}\leq u\mid T_{j-1}=t,X_{0}=x_{0})&=\Pr(E_{j}\geq m_{j}\log(t/u))\\&=\exp\{-m_{j}\log(t/u)\}\\&=\exp\Bigl{-}\int_{u}^{t}\frac{m_{j}}{s}ds\Bigr{}}.\end{align*}(23)
Because model time decreases, the event means that no jump occurs while the process traverses the interval from to . The final expression in Equation (23) is therefore the survival probability associated with DirectCTMC's exit intensity .
Every valid natural mark replaces exactly one mask. After events, the mask count is consequently , irrespective of the positions and token values in the preceding marks. Thus the conditional kernel of depends on the preceding clock only through and the event index . Induction over proves that the complete sequence has the DirectCTMC clock law for DirectCTMC and SpecCTMC.
DirectCTMC and SpecCTMC use exactly the event indices
and therefore have the same law for . Replacing a proposed mark by any other valid mark still removes one mask, so it leaves every subsequent mask-count-dependent clock kernel unchanged.
This argument does not make event times independent of marks. The mark kernel may depend on the realized time . It establishes only that the clock primitives can be drawn independently and that their conditional clock law remains valid after mark correction.
B.4 Conditional one-event verification
Lemma 3 (Conditional maximal-coupling identity). Let be a sigma-field, and let and be -measurable probability mass functions on the finite set . Conditional on , draw and an independent . For , set
(25)
Accept when . If rejection occurs and , use a fresh conditionally independent primitive to draw the output from
Then the output Z has conditional mass function P, and
Proof. Since P and D are probability mass functions,
(28)
The equality of the total positive and negative parts of also gives
so R is normalized whenever .
For each z with , the accepted contribution is
(30)
The rejected contribution is
Their sum equals . If , the mark is never proposed; the rejection branch contributes its target probability because . Hence
for every . If , the positive part of vanishes. Equal total masses then imply , every proposal is accepted almost surely, and no residual distribution is needed.
This is the standard one-step maximal-coupling construction used in speculative sampling (Bortoli et al., 2025); it is not a new coupling identity. A state with no valid mark or zero exit intensity produces no event and does not enter this verification step.
B.5 Complete marked-path law
Proof of Theorem 1. Step 1: conditioning on the common clock. By Conditions C1 and C2, it is enough to work under a regular conditional law given
The conditioning in Equation (33) includes both the initial state and the random number of events at or above the cutoff. The case n = 0 will use the empty product.
Step 2: causal information. Index speculative rounds by , and let be the number of marks committed before round . Let be its depth after clipping to the remaining sampled event times. Define to contain , the complete clock , all pre-round choices, and all information from completed rounds. For local index , set
The event that verification reaches index is -measurable. Condition C4 and the fresh proposal primitive give
The implementation constructs the complete draft and computes its target rows before verification. This does not change the exposure in Equation (34): each draft kernel depends only on the preceding draft prefix, each target row depends on its own tentative input state, and Condition C5 prevents an earlier acceptance decision from using the later tentative suffix. The proof may therefore expose the same stored variables in causal order. Conditioning on the complete realized draft would instead condition on and would make Equation (35) false.
Step 3: the target row at a reached index. Suppose local index i produces global event j. The first i-1 proposals in the round were then accepted. The tentative input state and the target row consequently satisfy
by Conditions C5, C6, and C8. Applying Lemma 3 conditional on shows that the mark committed at this reached index has conditional kernel .
The round and local index that produce event are random. Let denote the mark produced at local index , namely the accepted proposal or the residual correction; define it arbitrarily on the event that verification does not reach . For and , define
For fixed , the nonempty events in Equation (37) are disjoint and partition the event that global mark is produced. Let
On , the preceding global history is contained in , and Equation (36) is -measurable. The tower property applied on each partition event gives
Thus the random conversion from round-local indices to global indices does not change the target conditional kernel.
Step 4: conditional chain rule. For a valid mark sequence , define . Extending every kernel by zero outside its valid mark set, repeated application of Equation (39) yields
For n = 0, the product in Equation (40) equals one. The right side is exactly DirectCTMC's conditional mark law.
Step 5: joint law and deterministic completion. Integrating Equation (40) against the common law of proves equality of the event count, sampled event times, and committed marks. Condition C8 then gives equality of the states through the common recursion . This proves equality of the complete CTMC path laws before the final completion step in Equation (15). DirectCTMC and SpecCTMC therefore have the same distribution immediately before completion. Both methods then apply the same deterministic rule to fill positions that remain masked at the cutoff, so their final outputs also have the same distribution.
B.6 Uniformization for state-dependent exit rates
For a generator with state-dependent exit rates, suppose a measurable candidate intensity dominates the exit rate of every reachable state and has finite integral over the simulated interval. A nonhomogeneous Poisson candidate clock of intensity is independent of the mark history and satisfies Condition C2. At a candidate time, define
for each natural mark and add a virtual self mark with
The proof of Theorem 1 applies to these candidate marks. Removing the virtual self marks recovers the natural CTMC path by uniformization (Chen & Ying, 2024). Candidate marks need not remove a mask; validity follows from the independent candidate clock, not from Lemma 2. Conversely, the absorbing-mask clock calculation does not justify sampling natural event times in advance for a generator whose future exit rates depend on corrected mark identities.
C ADDITIONAL THEORY: PARALLEL COMPLEXITY
This section proves a complexity bound for a specified adaptive-depth version of SPECCTMC. The exactness result in Theorem 1 does not require the influence assumption below. The influence assumption is used only for the cost bounds.
C.1 Total unmasking influence
The prompt and any image conditioning are fixed. For a partial response , let be its masked positions and let be the normalized distribution over replacement tokens at masked position .
Assumption 1 (Uniform total unmasking influence). The predictor is time-independent. There is a constant such that every target-valid one-token unmasking event between reachable states satisfies
Every target row also satisfies Condition C6 of appendix B.1.
The sum in Equation (43) permits a large change at a few positions. It bounds the total change across predictions at positions that remain masked after one unmasking event.
Lemma 4 (Age of the cached target tensor). At the beginning of every round, the cached target tensor was evaluated either at the current committed state or at an actual ancestor separated from that state by one target-valid unmasking event. The cached tensor is the last row reached by verification, not a row from the discarded suffix.
Proof. Proceed by induction over rounds. The initial target-model evaluation computes probabilities at the current state, so the claim holds before the first round. Suppose it holds at the start of a round. If the complete draft is accepted, the last reached target row is evaluated at the state immediately before the final committed event. Committing that event moves from this state to the new current state by one target-valid unmasking event. If verification rejects at local index i, the last reached target row is evaluated at the state immediately before the corrected event. The residual correction is a valid mark under Conditions C3 and C4, so committing it again places the new current state one target-valid unmasking event after the row's input state. Condition C5 discards every later row. Using the last reached row as the next round's cache therefore preserves the invariant.
The executed sampler follows this update: it assigns the target tensor inside the sequential verification loop and, after a rejection, exits the loop before any later target row can replace it. It then copies that last reached tensor into the next round's cache. The adaptive-depth implementation selects the next depth from completed-round information before drawing that round's proposals and verification variables. These source properties match Lemma 4 and Condition C7.
Lemma 5 (Uniform-position dilution). Consider a reached tentative event with local index i in a round that began with m masked positions. Suppose the proposal assigns uniform mass to the positions that are currently masked and holds fixed the cached tensor described in Lemma 4. Then the target and proposal distributions on the joint position-token mark satisfy
If the tensor was evaluated at the current state at the beginning of the round, the numerator improves to .
Proof. Let be the state reached before the current update and . Let be the state at which the cached tensor was evaluated. By Lemma 4 and because reaching index requires the preceding draft marks to have been accepted, there is a chain of target-valid unmasking events
If the cache is current at round entry, .
The target and proposal have the same uniform marginal on A. Consequently,
(46)
The first equality uses the common uniform position marginal. The first inequality is the triangle inequality along the unmasking-event chain. At event , the final set of masked positions is a subset of the positions that remain masked after that event, so assumption 1 bounds the restricted inner sum by . Finally, a reached prefix contains only accepted target-valid marks almost surely, and . Replacing by proves the stated improvement. Time independence in assumption 1 is needed here because Equation (46) contains no additional time-change term.
C.2 Adaptive-depth complexity
Let be the initial number of masked response positions, let be a positive integer, and put . Before drawing the proposal and verification variables for a round with masked positions, choose
Theorem 2 (Influence-based parallel complexity). Under assumption 1 and Conditions C1 to C8 of appendix B.1, use the proposal based on the cached target tensor in Lemma 5, sequential maximal-coupling verification, correction from the full joint position-token residual, and the depth in Equation (47). For the variant that completes all natural unmasking events, the sampler preserves the complete marked CTMC law. Excluding initialization, deterministic completion at the cutoff, and padded physical rows, its logical target-row count W and target-batch count H satisfy
The acceptance decisions and round lengths may be dependent and history-dependent.
Proof. Exactness follows from Theorem 1. The depth is selected from pre-round information, every reached row is the declared target kernel, and correction uses the full joint residual before the suffix is discarded.
Index rounds by . Let be the masks remaining before round , , and the events committed in that round, including a corrected event after rejection. Define the charged logical rows
Each round before termination satisfies
The actual logical rows satisfy , and each round uses at most one target batch, so .
First-rejection probability. Fix the pre-round sigma-field , and write and . If , then the definition of implies
At a reached index , the conditional rejection probability equals by Lemma 3. The events of first rejection at different indices are disjoint. Summing their probabilities and using Equation (44) gives
No independence among acceptance decisions is used in this calculation.
Conditional progress. If the round has no rejection, it commits K events. A rejected round still commits its corrected event. Hence
If , acceptance or correction commits exactly one event, so almost surely and Equation (54) again holds.
Logical target rows. Extend and by zero after termination. Since , all sums below have the deterministic upper limit . The tower property and Equation (54) yield
(55)
Since , this proves Equation (48).
Target batches. Define
For , rationalizing the square-root difference gives
(57)
We now bound the expected decrease on every round before termination.
If capacity binds, . The linear term in Equation (57) and Equation (54) give an expected decrease of at least 7/8.
In the square-root regime, and . With , we have and therefore
The square-root term in Equation (57), together with Equation (54), again gives expected decrease at least 7/8.
In the remaining regime, . Then and almost surely. The square-root term in Equation (57) is strictly greater than one, so the potential decrease is also greater than one.
Set after termination. Pathwise telescoping over the nonrandom upper limit and the three cases above give
(59)
Thus , which is Equation (49). The deterministic finite sums avoid an optional-stopping argument.
The depth rule in Equation (47) is the variant analyzed by Theorem 2. A different adaptive policy requires a separate complexity argument.
Uniform proposal mixture. Let be the uniform proposal over the valid position-token marks at the current state, and define
Convexity of total variation gives
(61)
The first-rejection calculation in Equation (53) therefore increases by at most . If , its upper bound is . The conditional progress bound remains , so the constants in Equations (48) and (49) are unchanged.
Padding and cutoff. If every batch is padded to physical rows, then , and Equation (49) gives
Theorem 2 completes all natural unmasking events. A simulation stopped at a positive cutoff has a random number N of event times at or above the cutoff; substituting that number into the theorem requires a separate argument. Target-model evaluations used for initialization and deterministic completion are excluded from Theorem 2 and are added separately in appendix B.
The theorem bounds logical target rows and sequential target batches, not wall-clock latency. It preserves the chosen reference CTMC under Conditions C1 to C8; it does not identify that CTMC with the data distribution.
C.3 A quality and complexity separation
For the perfectly dependent pair target of Lemma 1, one unmasking event changes only the binary prediction of its partner when that partner remains masked, by total variation . Thus and . With batch capacity proportional to , Theorem 2 gives
while preserving every pairwise equality constraint. By contrast, the preselected independent schedules covered by Lemma 1 require target-model evaluations at denoising steps with at least one assigned position to maintain any fixed high validity level. This comparison is not a lower bound against adaptive or dependency-aware parallel samplers.
D EXTENDED EXPERIMENTAL RESULTS
D.1 Evaluation protocol
Models, tasks, and prompts. The primary study uses the public LLaDA-8B-Instruct (Nie et al., 2025) and Dream-v0-Instruct-7B (Ye et al., 2025) checkpoints. GSM8K uses five demonstrations, MATH four demonstrations from the minervamath configuration, MBPP three demonstrations, and HumanEval and IFEval none; the complete sequence length therefore differs widely across benchmarks at the same generated length. Every model, benchmark, and generated-length condition uses the same fixed evaluation set and five sampling seeds per method. HumanEval and MBPP use the Fast-dLLM code extraction followed by the official benchmark tests in an isolated process with time and memory limits; parse failures, test failures, and timeouts count as incorrect. LLaDA-V uses fixed image conditioning on MathVerse and MathVista with 4,096 validated generations; its task scores are not reported because the required hosted evaluator was unavailable.
Depth selection and timing. For every model, benchmark, and generated length, we compare depths 2 through 8 using warmed timing on a fixed selection set. The depth that minimizes SPECCTMC total generation time is used for the accuracy, NFE, and timing results of that condition. DirectCTMC evaluates one target state per call, while SPECCTMC evaluates a batch equal to its selected depth. Primary timing uses one exclusively held NVIDIA B200 with balanced method order; model loading and warmup are outside the measured interval, and total generation time includes drafting, target evaluation, verification, residual correction, host-device synchronization, and deterministic completion at the cutoff. The L40S measurements in Figure 3 use one NVIDIA L40S with 46 GiB of memory.
Pairing and intervals. Paired comparisons share the pre-computed event-time sequence across methods. Target marks, proposal marks, acceptance tests, and residual samples use separate recorded random streams, so DirectCTMC and SPECCTMC need not produce identical answers. Accuracy and NFE intervals resample questions while keeping the five seeds nested within each question. Timing takes each method's median over its three repetitions within a question, forms the ratio, and bootstraps over questions. A condition is classified as faster or slower only when the paired 95% interval of lies entirely above or below one; an interval containing one is parity. Accuracy difference always means SPECCTMC minus DirectCTMC.
D.2 Token choice and unmasking order
Lowering token temperature improves the accuracy of an individual stochastic answer, but it does not turn Di-
Table 6. Position choice and token choice for LLaDA-8B-Instruct on GSM8K with 256 generated tokens. Accuracy is reported in percent.
| Position choice | Token choice | Accuracy |
|---|---|---|
| Uniform random | Sampled | 26.56% |
| Highest confidence | Sampled | 62.50% |
| Uniform random | Highest probability | 26.56% |
| Highest confidence | Highest probability | 79.69% |
rectCTMC or SpecCTMC into Greedy denoising. Each masked-diffusion update makes two decisions. It chooses which masked position to unmask and then chooses which token to place at that position. The experiment below tests all four combinations of uniform or confidence-based position choice and sampled or highest-probability token choice.
With uniform random unmasking order, replacing token sampling with the highest-probability token leaves accuracy at 26.56 percent. Changing only the unmasking order to highest-confidence selection raises accuracy from 26.56 to 62.50 percent. Combining highest-confidence position selection with the highest-probability token gives 79.69 percent.
In this experiment, confidence-based unmasking order improves accuracy by 35.94 percentage points when tokens are sampled and by 53.13 points when the highest-probability token is used. The highest-probability token adds no measured improvement under uniform random unmasking order, but it adds 17.19 points under confidence-based unmasking order. Thus, the two choices interact, and the unmasking order accounts for most of the measured gap between stochastic CTMC sampling and Greedy denoising. Lower token temperature changes the token distribution while preserving the CTMC's random unmasking order. Greedy denoising instead fixes both the position order and token choice. Random unmasking order lowers the measured single-answer accuracy in this comparison and permits different trajectories across repeated attempts. Section 6 reports the corresponding Pass@K results.
D.3 Wallclock vs NFE reduction
Let and denote the sequential target-model evaluations made by DirectCTMC and SpecCTMC, and let and denote their total generation times. Their measured speed ratio can be written as
The first factor is the reduction in sequential evaluations. The second compares the average cost of those evaluations, including candidate batching and the remaining sampling work. This is the ratio form of the standard speculative-decoding cost decomposition in Ho et al. (2026).
The forward-only experiment in Figure 3a,b verifies that candidate states enter one model call rather than a Python loop. For three states with complete sequence length and hidden width , the hidden tensor has shape , and linear layers process it as token vectors in one matrix multiplication. This improves wall-clock time only while a one-state evaluation leaves GPU capacity unused. As sequence length grows, one state already occupies the available compute and memory bandwidth, so evaluating three states together performs nearly three times the work and approaches the cost of three sequential evaluations. Consequently, reducing sequential target-model evaluations does not produce a comparable wall-clock reduction for long sequences. At sequence length 911 on L40S, one three-state LLaDA call takes 0.2608 seconds, compared with 0.2547 seconds for three one-state calls. The same states on B200 take 0.0559 and 0.0640 seconds, respectively. The four curves extend this comparison over 17 sequence lengths. At length 400, three states cost 1.33 single-state calls for LLaDA and 1.38 for Dream on B200. At length 3,100, the costs rise to 2.88 and 3.01.
The complete-generation comparison in Figure 3c uses Dream-7B-Instruct with 256 generated tokens. HumanEval has much shorter inputs than five-shot GSM8K. On B200, every HumanEval depth is faster than DirectCTMC; on L40S, depths 2 to 5 are faster and depths 6 to 8 are at parity. For GSM8K, B200 depths 2 to 4 are at parity and larger depths are slower. All measured L40S depths are slower, and depth 8 exceeds its memory capacity. Each curve compares methods on the same five questions and GPU. The bands show 95 percent intervals obtained by resampling those questions.
The separate experiment on an exclusively held NVIDIA B200 gives the 2,048-token limiting case. At depth 4, SpecCTMC reduces sequential target-model evaluations by a factor of 3.9726 with acceptance 0.9950. One depth-4 target call costs 4.0246 one-state calls, so the reduction in sequential evaluations is offset by the cost of processing four complete states. The measured DirectCTMC to SpecCTMC time ratio is 0.9871, with a 95 percent interval from 0.9836 to 0.9892. Computing vocabulary projections only at generated positions preserves complete trajectories while improving total generation time by factors from 1.062 to 1.136 and reducing allocated memory by 6,742 to 13,530 MiB, showing that implementation choices can change the second factor in Equation (64). With LLaDA-8B-Instruct on GSM8K at 2,048 generated tokens, DirectCTMC completes on the L40S, while depth-four SpecCTMC exceeds device memory because one target-model evaluation processes four complete sequence states together.
The role of cache reuse follows the same decomposition. In the Self Speculative Decoding control (Gao et al., 2025), the cache-disabled method uses 2.67 times fewer sequential calls but is 1.76 times slower. With its approximate cache, it uses 2.29 times fewer calls and is 1.40 times faster. The cache lowers the work performed for each candidate state, which lets the reduction in sequential evaluations reduce elapsed time. This agrees with Sadhukhan et al. (2025), who show that key/value-cache reuse can restore speculative-decoding gains when long-context autoregressive decoding is limited by memory traffic.
D.4 Deterministic Decoding References
Table 7 reports the fully matched comparison used to define the deterministic reference in Figure 5. Greedy denoising selects the highest-confidence position and its highest-probability token. The Fast-dLLM threshold and factor configurations use confidence-guided parallel decoding (Wu et al., 2026). All three configurations are deterministic under the tested settings. Repeating an identical prompt therefore produces the same answer, and empirical Pass@K remains equal to single-answer accuracy. The strongest matched result is 81.25% from Fast-dLLM factor 1.0.
Table 8 reports additional greedy-derived speculative implementations, including PSD, trajectory-level speculative decoding, and Spiffy (Sun et al., 2026; Pan et al., 2026; Agrawal et al., 2026). Each implementation is reported beside the Greedy reference measured with that implementation's evaluation setup. The reference line in the main figure comes from the fully matched comparison in Table 7.
D.5 Approximate Solver Details
This subsection defines the two finite-step continuous-time Markov chain solvers used in Section 6.2.
Let be the partially masked sequence at diffusion time . For masked position and candidate token , let be the instantaneous transition rate at state . For time interval of width
define the exact integrated intensity
Tau leaping. Tau leaping freezes the rate at the beginning of the interval (Campbell et al., 2022):
and samples
Table 7. Matched deterministic configurations on LLaDA-8B-Instruct and five-shot GSM8K with 256 generated tokens. All rows use the same checkpoint revision, prompts, scorer, and timing procedure. Scores and costs are our measured results. These configurations are deterministic under the tested settings, so repeated identical runs have the same Pass@K as their single-answer accuracy.
| Method | Selection rule | Accuracy (%) | Mean NFEs | Median time (s) |
|---|---|---|---|---|
| Highest-confidence position; | ||||
| Greedy denoising | highest-probability token | 79.69 | 256.00 | 34.78 |
| Fast-dLLM, threshold 0.9 | Confidence threshold > 0.9 | 78.13 | 80.11 | 10.52 |
| Fast-dLLM, factor 1.0 | Confidence-profile factor rule | 81.25 | 63.06 | 8.13 |
Table 8. Additional greedy-derived speculative implementations. Each row is reported with its own measured Greedy reference because implementation, input shape, or cache definition differs. The final column reports the within-implementation ratio of Greedy time to method time; a value above one indicates acceleration relative to that reference. Absolute latency is not pooled across these implementations. Each method is named according to its evaluated configuration, and all numerical results are from our runs.
| Method/configuration | Own Greedy accuracy (%) | Method accuracy (%) | Mean NFEs | Greedy time / method time |
|---|---|---|---|---|
| Parallel Speculative Decoding, confidence 0.9 | 79.69 | 76.56 | 60.39 | 1.684 |
| Trajectory-Level, single-block exact | 73.44 | 73.44 | 160.17 | 1.544 |
| Trajectory-Level, practical cross-block | 73.44 | 76.56 | 203.44 | 1.016 |
| Self Cascaded Speculative Decoding, no cache | 82.81 | 79.69 | 81.59 | 0.599 |
| Self Cascaded Speculative Decoding, approximate cache | 73.44 | 78.13 | 100.98 | 1.268 |
| Spiffy, independent-state implementation | 79.69 | 78.13 | 127.19 | 0.261 |
| Spiffy, practical tree implementation | 79.69 | 75.00 | 128.66 | 0.333 |
Let . The implementation leaves position masked when , unmasks the position with the unique sampled token when , and discards all competing events at that position when . One model evaluation can unmask many different positions. The approximation is
After one position is unmasked, the exact rates at other positions can change, while tau leaping continues to use the rates from the interval start. Shorter intervals reduce rate staleness and conflicts but require more model evaluations.
Second-order theta-trapezoidal solver. The trapezoidal method uses a predictor and correction to estimate how rates change within the interval (Ren et al., 2025). The experiments use . Define
The predictor samples
which gives an intermediate state . The second model evaluation gives
Let equal the initial rate at positions left unchanged by the predictor and zero at positions already unmasked.
The implemented correction rate is
where . At ,
The corrector samples
Thus the method uses two rate evaluations per configured step.
Under the regularity, rate-estimation, and positivity assumptions of Ren et al. (2025), the discretization terms over diffusion-time horizon scale as
This is a convergence statement as approaches zero. It does not imply higher downstream task accuracy at every coarse evaluation budget. For nonzero step size, both methods approximate the DirectCTMC process.
D.6 Composition with caching and Fast-dLLM-v2 self-drafting
These experiments test two ways to combine SpecCTMC with other diffusion language model improvements. Prompt
Table 9. Task quality for prompt-cached sequential CTMC and prompt-cached SpecCTMC. Changes are percentage points with 95% CI. Cache change compares cached sequential CTMC with uncached DirectCTMC. SpecCTMC change compares the two cached methods.
| Refresh interval | Cached seq. accuracy | Cached Spec accuracy | Cache change from uncached | SpecCTMC change from cached seq. |
|---|---|---|---|---|
| 8 | 25.0% | 35.9% | -7.8 [−18.8, 1.6] | 10.9 [−1.6, 23.4] |
| 16 | 26.6% | 28.1% | -6.3 [−15.6, 3.1] | 1.6 [−10.9, 14.1] |
| 32 | 17.2% | 20.3% | -15.6 [−26.6, −4.7] | 3.1 [−6.3, 12.5] |
Table 10. Target-model evaluation accounting for the 256-token prompt-cache experiment. Refresh calls apply to both cached methods. The final two columns compare cached sequential CTMC with cached SpecCTMC at the same refresh interval.
| Refresh interval | Seq. target calls | Spec target calls | Refresh calls | Spec total calls | Call reduction | Time ratio with 95% interval |
|---|---|---|---|---|---|---|
| 8 | 253.9 | 100.6 | 32.9 | 133.5 | 2.530 | 1.697 [1.692, 1.700] |
| 16 | 253.9 | 98.4 | 17.0 | 115.3 | 2.586 | 1.940 [1.936, 1.949] |
| 32 | 253.9 | 92.7 | 9.0 | 101.6 | 2.751 | 2.211 [2.201, 2.217] |
caching changes the cost and the conditional probabilities of the target evaluator. Fast-dLLM-v2 self-drafting uses the same checkpoint to compute the proposal and the current target probabilities. In both cases, SpecCTMC verifies each proposed event against the declared sequential transition probabilities and samples the positive residual after the first rejection.
Prompt caching. The prompt-cache experiment uses LLaDA-8B-Instruct on five-shot GSM8K with 256 generated tokens. Both cached methods use target batch size three. Cached SpecCTMC uses speculation depth three. The cache stores key/value tensors for the fixed prompt, recomputes all generated positions, and refreshes the prompt representation after 8, 16, or 32 committed unmasking events. Because bidirectional attention allows generated tokens to change prompt representations, the cache defines an approximate target process relative to complete recomputation. SpecCTMC preserves the matching cached sequential process.
At every refresh interval in Table 9, the 95 percent interval for the accuracy difference between cached SpecCTMC and the matching cached sequential method contains zero. At refresh intervals 8 and 16, the interval for cached sequential accuracy relative to uncached DirectCTMC also contains zero. At interval 32, the cache lowers cached sequential accuracy from 32.8% to 17.2%. This quality change is caused by cache reuse, while SpecCTMC preserves the corresponding cached sequential process.
The evaluation comparison in Table 10 counts each cache reconstruction as an additional sequential model evaluation. It therefore includes work omitted by a target-call-only count. Cached SpecCTMC is 1,697, 1,940, and 2,211 times faster than cached sequential CTMC at refresh intervals 8, 16, and 32. Compared with approximately 256 dependent steps
Table 11. Fast-dLLM-v2 checkpoint transfer. The same checkpoint is used to compute the event-by-event reference, proposals, and current verification probabilities.
| Quantity | Event by event | SpecCTMC |
|---|---|---|
| Sequential target calls | 32.00 | 10.25 |
| Sequential-call reduction | 1.00 | 3.122 |
| Target states evaluated | 32.00 | 38.50 |
| Additional proposal calls | 0.00 | 1.50 |
| Total checkpoint calls | 32.00 | 11.75 |
| Accepted events per round | Not applicable | 2.631 |
| Proposal acceptance | Not applicable | 70.19% |
| Residual corrections | 0.00 | 5.75 |
| Median total generation time, seconds | 55.632 | 55.696 |
for 256-token autoregressive decoding. The totals of 133.5, 115.3, and 101.6 sequential model evaluations correspond to reductions of 1.92, 2.22, and 2.52 times. At intervals 8 and 16, the confidence interval for the cached sequential accuracy difference from uncached DirectCTMC contains zero. This comparison concerns sequential depth. One autoregressive model evaluation and one bidirectional SpecCTMC target-model evaluation perform different amounts of computation.
Fast-dLLM-v2 checkpoint transfer. The second experiment uses the Fast-dLLM-v2 7B checkpoint associated with DualDiffusion (Goyal et al., 2026). It evaluates GSM8K at 32 generated tokens. The event-by-event reference and SpecCTMC both use physical target batch four, and SpecCTMC uses depth four. Predictions from a previous call to the same checkpoint propose future events. SpecCTMC verifies each proposal using probabilities evaluated at its tentative state and corrects the first rejected proposal.
The experiment reduces sequential target calls by 3.122 times and total checkpoint evaluations from 32.00 to 11.75 after proposal calls are included. The elapsed times are nearly equal in this comparison. This experiment shows that SpecCTMC can use Fast-dLLM-v2 checkpoint probabilities for both proposal and exact verification. It omits the native cache updates and confidence-based multi-token commitment rule.
E RELATED WORK
Exact speculative sampling. Bortoli et al. (2025) extend speculative sampling to continuous diffusion transitions on a fixed denoising schedule. Their method establishes the linear-draft pattern used here: draft future states, evaluate target transitions in parallel, verify a prefix, correct the first rejection, and discard the suffix. AutoSpec exploits exchangeable increments to parallelize continuous denoising diffusion probabilistic models without an auxiliary drafter (Hu et al., 2025). Both operate on continuous fixed-schedule diffusion rather than a discrete marked CTMC whose event times are sampled before its marks. Soen et al. (2026) develop efficient continuous residual sampling and joint block verification for speculative diffusions. Joint block verification also improves autoregressive speculative decoding (Sun et al., 2025). The contribution here is the marked event construction for an event-driven discrete process, including a random clock and a joint categorical position/token residual. We identify the absorbing-mask condition under which event times sampled before the marks remain valid after mark correction.
Masked diffusion speculation and acceleration. Parallel masked-diffusion decoders select several positions from one model evaluation. Fast-dLLM and Fast-dLLM++ use confidence rules that mitigate dependency violations and can preserve a greedy mode under stated assumptions (Wu et al., 2026; Kasa et al., 2026). EB-Sampler controls an entropy-based proxy for dependence error, while PUNT tests approximate contextual independence (Ben-Hamu et al., 2025; Azangulov et al., 2026). None of these methods reconstructs the complete parallel update as the distribution of its sequential reference. Chen et al. (2025) characterize the expected Kullback-Leibler divergence of parallel masked sampling through the unmasking schedule and the target distribution's information curve. Their result establishes the general dependence-loss mechanism. Ringel et al. (2026) train a pairwise influence predictor and, under a subadditivity assumption, choose blocks whose factorized update lies within a selected total-variation tolerance of the corresponding joint update. Zhang et al. (2026) use randomized rejection increments so that practical clipping replaces the full within-block dependence error with a bounded clipping term. Both control the parallel factorization error without universally eliminating it. SpecCTMC instead uses target evaluation and residual correction to preserve its declared transition kernel. Sequential first-hitting sampling (FHS), which DirectCTMC instantiated, exactly simulates the reverse CTMC one event at a time; its parallel variant uses the same first-hitting times while freezing predictions across several unmasking events and is explicitly an approximation (Zheng et al., 2025). Liang et al. (2026) prove in total variation that FHS adds no sampling error beyond score-estimation error, while finite-step Euler sampling has a separate discretization contribution. Table 1 compares where parallelism enters and whether each method preserves exact event times, the natural-event CTMC law, and its stated sequential reference.
A method can add no parallel factorization error while preserving a sequential reference other than DirectCTMC. SpecCTMC may use previously computed factorized predictions because they determine only tentative proposals. Sequential target verification and positive-residual correction over the complete position/token mark space remove the proposal bias, so the committed process adds no parallel factorization error to DirectCTMC.
Self Speculative Decoding reproduces its deterministic step-wise reference through hierarchical verification (Gao et al., 2025). Spiffy is lossless when its batched draft probabilities equal the corresponding vanilla probabilities; its practical simple-mask implementation for fully bidirectional LLaDA and Dream is described as near-lossless (Agrawal et al., 2026). Spiffy uses the target model as its drafter and calibrates its directed draft graphs offline. Parallel Speculative Decoding constructs multi-depth drafts and selects the deepest draft consistent with updated predictions, reporting a speed and quality tradeoff rather than equality with a stochastic CTMC law (Sun et al., 2026). Trajectory-Level Speculative Decoding proves exactness for a restricted deterministic top-one setting with fixed cached states and no inter-block speculation, while its practical cross-block method permits trajectory drift (Pan et al., 2026). Self-Speculative Masked Diffusions trains a hybrid causal and noncausal architecture whose full-network conditionals define a new nonfactorized target (Campbell et al., 2026). Probability-ratio acceptance and residual resampling remove factorization error relative to that trained target. These methods establish single-model speculative decoding results for finite-step references, while SpecCTMC combines within-trajectory parallel verification with preservation of an unchanged denoiser's natural-event CTMC law.
SpecCTMC does not require the denoiser's per-position predictions across masking contexts to be conditional marginals of a single joint distribution. DirectCTMC and SpecCTMC target the sequential process specified by the state-dependent transition kernel. The exactness theorem therefore requires normalized transition rows but no compatible any-order conditional oracle.
Exact parallel sampling theory. Any-Subset Speculative Decoding samples from trained any-subset autoregressive models using their joint-density oracle (Guo & Ermon, 2026). Parallel Sampling via Autospeculation gives exact endpoint samples in parallel rounds when an oracle returns compatible conditional marginals of one target distribution (Anari et al., 2026). Liu & Yin (2025) faithfully parallelize general single-site dynamics under influence conditions in a parallel random-access machine model. Under the bounded-unmasking-influence assumption, Theorem 2 bounds full-network target evaluations for the joint position/token proposal based on cached target predictions, with finite batch capacity. It permits normalized state-dependent predictions that need not be conditional marginals of a single joint distribution.
Temporal point processes. TPP-SD uses a smaller draft transformer to propose multiple future temporal-point-process events and parallel target verification (Gong et al., 2025). Biloš et al. (2025) exactly sample multiple future events from unchanged parametric temporal point processes through rejection bounds. These works share continuous event times and marked sequences. Our condition and correction differ: absorbing-mask intensity is independent of mark identities after conditioning on event count, so event times sampled before the marks remain valid after categorical position/token correction through maximal coupling.
Exact and approximate discrete diffusion simulation. Discrete diffusion has a standard CTMC formulation, commonly simulated through tau-leaping (Campbell et al., 2022). Uniformization can remove time-discretization error by introducing a common candidate clock with virtual self transitions (Chen & Ying, 2024). Higher-order Runge-Kutta and trapezoidal solvers improve approximation order (Ren et al., 2025). Uniformization provides an exact serial reference, whereas tau-leaping and higher-order solvers provide approximate comparisons. SpecCTMC instead couples a proposed embedded transition to the target transition and batches neural evaluations at states preceding the drafted updates.
F IMPLEMENTATION DETAILS
Our implementation drafts by reusing previously computed target token probabilities, without the need for an auxiliary model. At each tentative state, the proposal selects a masked position uniformly and samples a token from the reused probability vector for that position. For both checkpoints, we remove the mask-token probability before normalizing the remaining token probabilities. Dream applies the checkpoint's one-position logit shift once before normalization.
Unless stated otherwise, we use temperature one, no classifier-free guidance, and cutoff . The proposal mixes previously computed target probabilities with a uniform distribution over replacement tokens using weight . The evaluation protocol, including depth selection, target-state grouping, timing, pairing, and code scoring, is described in appendix D.1.
Proposal and randomness. An initial target-model evaluation computes probabilities at the current state. Paired comparisons use the same event-time sequence across methods. Target-mark, draft-mark, verification, and residual draws use separate recorded random streams. Method order alternates across matched workloads.
Benchmarks and scoring. We follow the same procedure as described in (Wu et al., 2026; Kasa et al., 2026):GSM8K uses numeric exact extraction. MATH uses symbolic answer equivalence. MBPP and HumanEval use restricted execution that rejects unsafe or unsupported candidates and records the reason. IFEval uses the pinned first 300 prompts in
source order, giving 456 instruction instances. Prompt-level strict accuracy is the task score. Strict and loose checkers receive identical deterministic prompt-derived random choices. Dream text projection preserves raw sampled identifiers and maps undefined tokenizer identifiers to the Unicode replacement character only in scorer input.