Papers
Topics
Authors
Recent
Search
2000 character limit reached

S2D2: Self-Speculative Decoding for Diffusion LLMs

Updated 8 July 2026
  • 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 4.7×4.7\times speedup over autoregressive decoding on SDAR, up to 1.57×1.57\times over a tuned dynamic decoding baseline while improving accuracy by up to $4.5$ points, and a conservative LLaDA2.1-Mini setting that is 4.4×4.4\times 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 x1:mx_{1:m}, decoding proceeds block-by-block with block size BB, initializing a masked block xb[MASK]Bx^b \leftarrow [MASK]^B and iterating few denoising steps TT to unmask tokens. Under masked absorbing-state diffusion with the SUBS parameterization,

pθ(zszt)=q(zszt, x=xθ(zt,t)),p_{\theta}(z_s \mid z_t) = q\bigl(z_s \mid z_t,\ x = x_{\theta}(z_t,t)\bigr),

and, for a masked position 4.7×4.7\times0,

4.7×4.7\times1

Each masked position is independently unmasked with probability

4.7×4.7\times2

and, if unmasked, its token is sampled from the model prediction 4.7×4.7\times3 (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.7×4.7\times4 and confidences 4.7×4.7\times5 from logits 4.7×4.7\times6, then finalizes a subset of masked positions by a schedule or threshold 4.7×4.7\times7. A common dynamic baseline accepts

4.7×4.7\times8

where 4.7×4.7\times9 at step 1.57×1.57\times0. 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.57×1.57\times1 and proposes tokens in parallel. As verifier, it is run in block-size-1.57×1.57\times2 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 1.57×1.57\times3 in the current block. The verifier returns autoregressive probabilities 1.57×1.57\times4 for the drafted tokens 1.57×1.57\times5 with draft probabilities 1.57×1.57\times6, and performs rejection sampling left-to-right with acceptance probability

1.57×1.57\times7

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

1.57×1.57\times8

Then

1.57×1.57\times9

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 4.4×4.4\times0. The static score mapping is

4.4×4.4\times1

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 4.4×4.4\times2; the score-threshold rule verifies if 4.4×4.4\times3; hysteresis maintains a state 4.4×4.4\times4 and switches according to 4.4×4.4\times5 and 4.4×4.4\times6; the contextual bandit buckets contexts by span length, progress, and entropy, and uses reward

4.4×4.4\times7

where 4.4×4.4\times8 with verification and 4.4×4.4\times9 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 x1:mx_{1:m}0 and x1:mx_{1:m}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 x1:mx_{1:m}2 and verifier cost is comparable, then with diffusion running x1:mx_{1:m}3 denoising steps and verification invoked in a fraction x1:mx_{1:m}4 of steps, expected wall-clock cost per block is

x1:mx_{1:m}5

If x1:mx_{1:m}6 is the expected number of tokens accepted per verified step and x1:mx_{1:m}7 is the corresponding baseline quantity, then expected steps to finish a block are approximately x1:mx_{1:m}8. Relative speedup to autoregressive decoding can be expressed as

x1:mx_{1:m}9

and the reported SDAR-1.7B config-B value reaches BB0 (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 BB1 over AR; about BB2 faster than tuned dynamic baseline; BB3 vs. BB4 average accuracy
SDAR-8B config-A / config-B BB5 at BB6 speed; config-B reached BB7 speed with modest accuracy tradeoff
Fast-dLLM v2 BB8, BB9 xb[MASK]Bx^b \leftarrow [MASK]^B0 vs. baseline xb[MASK]Bx^b \leftarrow [MASK]^B1 and xb[MASK]Bx^b \leftarrow [MASK]^B2 points average accuracy
LLaDA2.1-Mini quality mode xb[MASK]Bx^b \leftarrow [MASK]^B3 vs. xb[MASK]Bx^b \leftarrow [MASK]^B4 average accuracy with moderate speed loss
LLaDA2.1-Mini conservative mode xb[MASK]Bx^b \leftarrow [MASK]^B5 vs. xb[MASK]Bx^b \leftarrow [MASK]^B6 and xb[MASK]Bx^b \leftarrow [MASK]^B7 vs. xb[MASK]Bx^b \leftarrow [MASK]^B8; relative to static baseline, xb[MASK]Bx^b \leftarrow [MASK]^B9 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 TT0 estimation often yields higher downstream accuracy than margin-based estimation, despite the margin proxy being more accurate for TT1 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 TT2 yields only minor accuracy–speed tradeoff adjustments, with default TT3 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 TT4, 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 TT5, 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 TT6 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 DATT7NE (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-TT8 autoregressive verifier.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to S2D2.