S2D2: Self-Speculative Decoding for Diffusion LLMs
- S2D2 is a training-free self-speculative decoding framework that reuses one pretrained model as both drafter and verifier to improve the accuracy–speed tradeoff in block-diffusion language models.
- It combines block-diffusion drafting with block-size-1 autoregressive verification, using local acceptance tests to correct high-energy token proposals.
- Empirical evaluations across models like SDAR, Fast-dLLM v2, and LLaDA2.1-Mini report up to 4.7× speedup and significant accuracy gains compared to traditional decoding methods.
S2D2 is a training-free self-speculative decoding framework for block-diffusion LLMs that improves the accuracy–speed tradeoff by reusing the same pretrained model as both drafter and verifier. The central observation is that a block-diffusion model becomes autoregressive when the block size is reduced to $1$, so diffusion proposals generated in parallel can be locally checked by the model’s own autoregressive mode before commitment. Introduced for mainstream block-diffusion families including SDAR, Fast-dLLM v2, and LLaDA2.1-Mini, S2D2 addresses the brittleness of few-step confidence-thresholded decoding and reports up to speedup over autoregressive decoding on SDAR, up to over a tuned dynamic decoding baseline while improving accuracy by up to $4.5$ points, and a conservative LLaDA2.1-Mini setting that is faster than a static baseline with slightly higher accuracy (Han et al., 26 Mar 2026).
1. Problem setting in block-diffusion decoding
Block-diffusion LLMs combine block-wise autoregressive generation, to preserve KV cache reuse, with within-block parallel denoising. Given a prompt , decoding proceeds block-by-block with block size , initializing a masked block and iterating few denoising steps to unmask tokens. Under masked absorbing-state diffusion with the SUBS parameterization,
and, for a masked position 0,
1
Each masked position is independently unmasked with probability
2
and, if unmasked, its token is sampled from the model prediction 3 (Han et al., 26 Mar 2026).
In practical systems such as LLaDA and SDAR, few-step decoding replaces exact posterior sampling with confidence-thresholded acceptance. A draft forward pass yields token proposals 4 and confidences 5 from logits 6, then finalizes a subset of masked positions by a schedule or threshold 7. A common dynamic baseline accepts
8
where 9 at step 0. The difficulty is that few-step regimes make confidence-thresholding brittle: aggressive thresholds cause premature commits and quality drops, while conservative thresholds commit too few tokens and waste steps. S2D2 is defined against this failure mode rather than against block-diffusion decoding in general.
2. Self-speculation with a single pretrained model
The core idea is to insert a speculative verification step before committing drafted tokens. The same pretrained block-diffusion model is used in two roles. As drafter, it performs standard block-diffusion decoding at block size 1 and proposes tokens in parallel. As verifier, it is run in block-size-2 autoregressive mode and computes left-to-right probabilities of drafted tokens. This produces a hybrid decoding trajectory in which diffusion proposes tokens in parallel, while the autoregressive mode acts as a local sequence-level critic (Han et al., 26 Mar 2026).
Verification operates on the first contiguous masked span 3 in the current block. The verifier returns autoregressive probabilities 4 for the drafted tokens 5 with draft probabilities 6, and performs rejection sampling left-to-right with acceptance probability
7
At the first rejection, residual resampling draws a replacement token and terminates the speculative segment. S2D2 therefore does not attempt global autoregressive correction of the entire block; it verifies only a local drafted span and then returns to diffusion decoding.
The same mechanism admits an energy interpretation. Let
8
Then
9
Lower residual energy proposals are more likely to be accepted, while higher-energy proposals are corrected by residual resampling. This suggests that S2D2 reframes draft confidence as a verifier-normalized local consistency test rather than a raw marginal-confidence test.
3. Routing policies and decoding procedure
Because verification incurs an extra forward pass, S2D2 uses lightweight routing policies to invoke verification only when it is expected to accept multiple tokens and amortize the cost. Otherwise, it falls back to confidence-thresholded diffusion decoding. The formal decoding state uses blocks $4.5$0 of size $4.5$1; within a block and step $4.5$2, masked positions are $4.5$3, and $4.5$4 denotes the first contiguous mask span (Han et al., 26 Mar 2026).
The expected accepted prefix length estimator is
$4.5$5
where acceptance proxies $4.5$6 include a margin-based proxy,
$4.5$7
with $4.5$8 equal to the top-1 minus top-2 draft probability, and an entropy-based proxy,
$4.5$9
with normalized entropy 0. The static score mapping is
1
Routing then applies one of several decision rules: minimum-span, score-threshold, hysteresis, or a contextual bandit with UCB. The minimum-span rule verifies if 2; the score-threshold rule verifies if 3; hysteresis maintains a state 4 and switches according to 5 and 6; the contextual bandit buckets contexts by span length, progress, and entropy, and uses reward
7
where 8 with verification and 9 otherwise.
Algorithmically, S2D2 is inserted into an existing block-wise autoregressive decoding framework. The outer loop initializes the KV cache from the prompt, starts a new masked block, calls SampleBlock, appends the decoded block, and updates the cache. Within SampleBlock, each denoising step drafts token proposals, identifies 0 and 1, and either performs verifier-based speculative acceptance or reverts to the baseline confidence rule. For position-aligned models such as SDAR and LLaDA, S2D2 uses a single forward with a 2L mask to parallelize verifier scores for all positions in the drafted span; for right-shifted models such as Fast-dLLM v2, the standard causal mask suffices. An optional partially causal drafting and caching mask can make the trajectory more autoregressive-like.
4. Complexity and empirical performance
If the per-forward cost is 2 and verifier cost is comparable, then with diffusion running 3 denoising steps and verification invoked in a fraction 4 of steps, expected wall-clock cost per block is
5
If 6 is the expected number of tokens accepted per verified step and 7 is the corresponding baseline quantity, then expected steps to finish a block are approximately 8. Relative speedup to autoregressive decoding can be expressed as
9
and the reported SDAR-1.7B config-B value reaches 0 (Han et al., 26 Mar 2026).
Five models from three mainstream block-diffusion families—SDAR (1.7B/4B/8B), Fast-dLLM v2, and LLaDA2.1-Mini—were evaluated on GSM8K, MBPP, HumanEval, and IFEval. Representative reported results are summarized below.
| Family | Setting | Reported outcome |
|---|---|---|
| SDAR-1.7B | config-B | 1 over AR; about 2 faster than tuned dynamic baseline; 3 vs. 4 average accuracy |
| SDAR-8B | config-A / config-B | 5 at 6 speed; config-B reached 7 speed with modest accuracy tradeoff |
| Fast-dLLM v2 | 8, 9 | 0 vs. baseline 1 and 2 points average accuracy |
| LLaDA2.1-Mini | quality mode | 3 vs. 4 average accuracy with moderate speed loss |
| LLaDA2.1-Mini | conservative mode | 5 vs. 6 and 7 vs. 8; relative to static baseline, 9 faster with slightly higher accuracy |
The ablations refine the operational picture. AR-ness diagnostics and confidence trajectories show task-dependent behavior and match where S2D2 gains most, especially at larger blocks where diffusion degrades. Entropy-based 0 estimation often yields higher downstream accuracy than margin-based estimation, despite the margin proxy being more accurate for 1 prediction. Minimum-span and score-threshold policies are effective, hysteresis reduces oscillations, contextual bandits are viable but more involved and not best-performing here, and ratio tempering 2 yields only minor accuracy–speed tradeoff adjustments, with default 3 sufficient.
5. Relation to prior decoding strategies, trade-offs, and limits
Confidence-threshold baselines commit tokens using draft-only confidence, which is brittle in few-step regimes: overly aggressive thresholds harm accuracy, and overly conservative thresholds waste steps. S2D2 replaces draft-only confidence with verifier-normalized acceptance via 4, providing a local sequence-level test that corrects high-energy mismatches through residual resampling. In this sense, it is closely related to autoregressive speculative decoding, since it mirrors the same rejection-sampling rule 5, but it remains hybrid: drafting and caching follow block-diffusion attention, verification is optional and local, and decoding returns to diffusion after the first rejection (Han et al., 26 Mar 2026).
The framework is also positioned against prior sequence-level correction approaches. EDLM is cited as introducing additional training and/or multi-sample test-time overhead, whereas S2D2 is training-free and single-pass, using the same model in autoregressive mode as a local verifier. It is likewise complementary to built-in self-correction. LLaDA2.1’s token editing, described as “unmask early, correct later,” modifies previously committed tokens when confidence exceeds 6 but does not perform verifier-based acceptance. S2D2 complements this mechanism with verifier-normalized commits and improves the accuracy–speed tradeoff under conservative settings.
The limitations are explicit. Verification overhead can outweigh benefits on very short spans or when draft confidence is uniformly high and well-calibrated. Miscalibrated confidences or poorly chosen routing thresholds can cause under-verification, with lost quality, or over-verification, with lost speed. S2D2 verifies only the first contiguous masked span per step; it is not equivalent to global autoregressive decoding and remains a hybrid trajectory. These constraints explain why the method is presented as a routing problem as much as a verification problem.
6. Acronym ambiguity across fields
The acronym “S2D2” is not unique to diffusion-language-model decoding. In other literatures it denotes unrelated concepts, including “sd2 graphene” in condensed-matter physics (Zhou et al., 2014), the SIDDHARTA-2 Silicon Drift Detector system and apparatus for kaonic-atom spectroscopy at DA7NE (Miliucci et al., 2021, Sirghi et al., 2023), “Sequential Stackelberg Drone Defense” in security games (Mutzari et al., 15 Aug 2025), “Two Determinant Distinguishable Cluster” in electronic-structure theory (Schraivogel et al., 2024), and “Small-scale Significant substructure DBSCAN Detection” in star-formation studies (González et al., 2020, González et al., 19 Mar 2026).
| Usage of “S2D2” | Domain | Representative paper |
|---|---|---|
| Training-free self-speculative decoding for block-diffusion LLMs | Machine learning | (Han et al., 26 Mar 2026) |
| sd2 graphene | Condensed matter | (Zhou et al., 2014) |
| SIDDHARTA-2 SDD system / apparatus | Experimental hadronic physics | (Miliucci et al., 2021, Sirghi et al., 2023) |
| Sequential Stackelberg Drone Defense | Security games | (Mutzari et al., 15 Aug 2025) |
| Two Determinant Distinguishable Cluster | Quantum chemistry | (Schraivogel et al., 2024) |
| Small-scale Significant substructure DBSCAN Detection | Astrophysics | (González et al., 2020, González et al., 19 Mar 2026) |
A plausible implication is that acronym-only retrieval is unreliable without disciplinary context. Within large-language-model research, however, S2D2 specifically denotes the verifier-routed, training-free self-speculative decoding method for block-diffusion models, whose defining contribution is the reuse of the same pretrained model as both block-diffusion drafter and block-size-8 autoregressive verifier.