Block Diffusion Language Models: How Dual-Mode Decoding Works and How to Tune It

    This article explains how block diffusion language models work and how to tune them for real workloads. Unlike full-sequence diffusion, a block diffusion model denoises several masked positions in parallel within a fixed-size block, commits the finished block causally to advance its state, and only then moves on to the next block. Using Clover-35B-A3B-Preview as a running example, it covers why the block is the right unit of generation, the separation between the read-only preview phase and the read/write commit phase, why a hybrid-attention backbone adapts almost for free, block-level routing for sparse MoE, a cost model centered on tokens produced per forward pass, and a practical tuning checklist. Readers will learn the three key knobs—block size B, confidence threshold τ, and expert-routing source—and how to compare block diffusion fairly against speculative sampling on a quality-versus-speed basis.

    Introduction: What Is a Block Diffusion Language Model?

    A block diffusion language model is a decoding paradigm that combines diffusion-style parallel denoising with autoregressive-style causal commitment. Within a fixed-size block, it runs multiple rounds of parallel denoising over several masked positions, uses a confidence threshold to decide which positions can be finalized, and once the whole block is finalized, feeds those tokens into the model in causal order to advance the KV cache, GDN state, and convolution state before starting the next block.

    Large-model inference is usually split into two phases: prefill and decode. Prefill processes the entire prompt in parallel at high compute utilization. Decode runs token by token, and each token requires moving all parameters from memory into the compute units to perform work on a single position—a classic memory-bound scenario. Acceleration ideas such as speculative sampling, multi-token prediction, and early exit all still run into the same “one forward pass maps to one position” dependency chain; they only improve efficiency through extra candidates, draft models, or early termination.

    Diffusion language models attack the problem from a different angle: starting from a fully masked sequence, they fill in multiple positions in parallel across several denoising steps, so a single forward pass can produce candidates for a batch of masked positions. But full-sequence, bidirectional, iterative denoising brings new costs of its own: the traditional KV cache is hard to reuse directly; output must be shaped over several iterations, making streaming difficult; and the inference stack needs to be rewritten.

    Block diffusion is a compromise: bidirectional parallel denoising within a block, causal ordering across blocks. Using Clover-35B-A3B-Preview as an example, this article discusses state management, expert routing, the cost model, and evaluation methods for this approach. A note on facts: model names, release dates, parameter counts, license terms, and other key facts should always be confirmed against the official release page, model card, or technical report. If they cannot be traced item by item in official documentation, treat them as “compiled from public sources” and re-verify before citing. According to public sources, the Clover-35B-A3B-Preview release page is dated October 28, 2025; it uses a sparse MoE on a Qwen3.6-35B-A3B backbone, with roughly 35 billion total parameters and 3 billion active parameters, under the Apache 2.0 license. Figures such as “about 740K new parameters, roughly 0.002%” should likewise be checked against the official model card or technical report.

    TL;DR

    1. The core of a block diffusion language model is not “full-sequence diffusion” but “intra-block parallel denoising + inter-block causal commitment.”
    2. The preview phase only reads state; the commit phase writes state back. This avoids contaminating fixed-length recurrent states such as GDN and convolution with half-finished context.
    3. The key metric for the speedup is “average tokens produced per forward pass,” which can be approximated as B/(N+1), where B is the block size and N is the average number of denoising steps.
    4. Compared with speculative sampling, block diffusion needs no draft model, but it faces risks such as wrong commitment via confidence, high state-rollback cost, and mutual invisibility among sibling positions within a block.
    5. Practical deployment requires jointly tuning the block size B, the confidence threshold τ, the fallback policy, the expert-routing source, and read/write separation in the inference framework.
    Question Quick answer
    What is block diffusion Multiple rounds of parallel denoising within a block, then committing the whole block causally to downstream generation
    What are the two modes preview reads state only; commit reads and writes state
    How to estimate the cost One block ≈ N denoising forward passes + 1 commit forward pass, producing about B/(N+1) tokens on average
    How does it differ from speculative sampling Speculative sampling typically uses a draft model or extra heads to produce and verify candidates; block diffusion produces candidates via the same model’s intra-block parallel denoising
    What are the main risks Wrong commitment, GDN state that is hard to roll back per position, missing intra-block context, deterministic routing that forces quality-versus-efficiency trade-offs

    1. Intra-Block Parallel, Inter-Block Causal: Why Use the Block as the Unit?

    Let the block size be B; in the Clover approach, B = 32 is common. Generating one block can be summarized in three steps:

    1. Initialization: All positions in the new block are set to the mask token. At this point the GDN state, convolution state, and KV cache hold the computed results for previously finalized content.
    2. Intra-block denoising: One forward pass outputs a probability distribution for all masked positions. Positions whose confidence exceeds the threshold τ are finalized at once; the rest stay masked and move to the next step. If no position clears the bar in a round, the single highest-confidence position is forced open, guaranteeing progress every round.
    3. Causal commit: Once the whole block is finalized, these B tokens pass through the model in order in one full pass, whose outputs update the GDN state, convolution state, and KV cache; then the next block begins.

    Illustrative pseudocode:

    1. B, TAU = 32, 0.95 # Block size and confidence threshold
    2. def decode_block(ro_states):
    3. """ro_states: GDN state, convolution state, KV cache; read-only within this block"""
    4. x = [MASK] * B
    5. mask_pos = set(range(B))
    6. while mask_pos:
    7. logits = forward(x, ro_states) # Bidirectional within the block; one forward pass covers all positions
    8. idx = logits.argmax(-1) # Predicted token id per position
    9. probs = softmax(logits)
    10. conf = probs.max(-1) # Max probability per position, i.e. confidence
    11. ready = [i for i in mask_pos if conf[i] >= TAU]
    12. if not ready: # Fallback: unlock at least one to avoid an infinite loop
    13. ready = [max(mask_pos, key=lambda i: conf[i])]
    14. for i in ready:
    15. x[i] = int(idx[i]) # Write a scalar token id, not a distribution tensor
    16. mask_pos.remove(i)
    17. # Commit phase: one causal forward pass over the whole block; reads and writes state, same as autoregressive prefill
    18. new_states = commit(x, ro_states)
    19. return x, new_states

    Here, forward returns log-probabilities or logits for all block positions in one call, and commit performs a single forward pass to write the finalized block into the state.

    Using the block rather than the entire sequence as the unit comes down to three considerations:

    • Intra-block bidirectionality: Each position can see the other masked positions in the block at the same time. Local dependencies such as subject and predicate, or a variable declaration and its first use, can be modeled—more fully than token-by-token autoregression.
    • Inter-block causality: Once a preceding block is finalized it never changes, so later blocks always condition on complete history. The cache and state can advance block by block, streaming output is supported, and engineering changes concentrate in the decoding loop itself.
    • Switchable modes: More denoising steps N mean fewer positions finalized per round. When N equals B, it simply means exactly one position is unlocked per round; the block is still bidirectional under masking and is not equivalent to autoregressive decoding. To degrade strictly into causal decoding, you must also change the intra-block mask to a causal mask, which is equivalent to B = 1. So the more accurate reading of “one set of weights, two usages” is: the same model can switch between batched diffusion-style decoding and causal-style decoding by changing the decoding schedule and the attention mask.

    The block size sets the parallelism granularity: a larger B means more tokens can be predicted in parallel per block and a higher theoretical ceiling, but the quality loss from missing intra-block context becomes more pronounced. The threshold τ sets the finalization bar: a higher τ finalizes fewer positions per round and takes more steps; a lower τ is faster but raises the risk of “confidently wrong.” The two must be tuned jointly against the task.

    One common misconception needs correcting here: it is not that “positions finalized later cannot see positions finalized earlier.” Under intra-block bidirectional attention, a later-finalized position can usually see tokens that are already finalized. The real issue is that positions finalized in the same round cannot see each other; and when an earlier token is finalized, it cannot see sibling tokens that will only be finalized later. The larger B is, the more of this missing context there is, and the more it affects long-range consistency, format constraints, and the stability of open-ended generation.

    2. One Set of Weights, Two Usages: Separating the Duties of preview and commit

    Clover splits block processing into two clearly-scoped phases:

    • preview: intra-block bidirectional, executed repeatedly; reads the GDN state, convolution state, and KV cache, and never writes back.
    • commit: intra-block causal, executed once per block; writes the finalized tokens into the state.
    Dimension preview commit
    Intra-block attention Bidirectional; masked positions see each other Causal; can only see the left
    Execution count Multiple times per block, equal to the number of denoising steps Once per block
    State operation Read-only Read/write
    Output Progressively more finalized tokens Whole block recomputed causally and state advanced

    Why not update the state at every denoising step and instead design a separate commit? The root cause is that the state types differ.

    • The KV cache stores “keys” and “values” per position. If a position’s content changes, you can discard or overwrite it by position, at a local and controllable cost.
    • The GDN state is a fixed-size matrix per attention head, updated sequentially via gated forgetting and the Delta rule. It compresses all history into a fixed-length matrix; once the content is written wrong, it is hard to bound the impact, and unlike the KV cache it cannot be rolled back by position. The convolution state is similar: it is a recurrent cache of local temporal information, and once written with wrong context, it keeps affecting later steps.

    During denoising, the hidden activations of masked positions come from “half-finished context”: the same position may be assigned different tokens at different steps, and its representation shifts accordingly. State computed from these activations is naturally unreliable. So Clover keeps preview read-only throughout and concentrates state updates in commit. In the commit phase all 32 tokens are finalized, so its forward pass is identical to an autoregressive model’s prefill over already-determined tokens, making the state update “clean.”

    This design also yields two extensions:

    1. Denoising is side-effect free. Intermediate activations from the preview phase can be discarded or recomputed without polluting later generation; it also fits naturally with inference accelerators such as operator fusion and CUDA Graph.
    2. It connects naturally with speculative sampling. Multiple candidate tokens produced by parallel denoising can be verified in one parallel pass by the same model’s causal commit phase, keeping only the prefix that agrees with the model’s own distribution. Note the rollback method carefully: entries for draft positions in the KV cache can be discarded directly by position; but fixed-length recurrent states such as GDN and convolution cannot be rolled back by position, so you must keep a snapshot from before the commit and replay from the longest accepted prefix, with cost that grows with the number of rejected positions. Risk note: under long contexts, large blocks, or frequent candidate rejection, the cost of rolling back GDN state can be significantly higher than rolling back the KV cache—do not assume every state can be “rolled back with one click.”

    3. Backbone Modification: Why a Hybrid-Attention Backbone Adapts Almost for Free

    Clover’s modification is quite restrained: the number of layers, the number of experts, and the shapes of all projections are unchanged, and the entire modification adds only about 740K parameters—roughly 0.002% of the 35 billion total. This figure should be confirmed against the official technical report or model card; if it cannot be traced, mark it as “compiled from public sources.” Three key conditions make this possible.

    1. Hybrid-attention layers are naturally compatible with both forward modes. The backbone inserts a few full-attention layers by ratio among the stacked GDN layers. GDN (the gated linear attention state module) maintains a fixed-length recurrent state with complexity that grows linearly with sequence length, and it naturally supports causal recurrence. Full-attention layers handle precise random access, filling the gap that linear attention leaves in long-range retrieval. Intra-block bidirectionality only changes the attention mask, not the number of layers, projection shapes, or weight semantics, so the modification concentrates on “how to schedule state reads and writes” rather than rebuilding the network.
    2. The attention mask itself is compatible with causal modeling. A standard decoder’s “each position can only see the left” is not insurmountable: the mask only decides the direction of information flow and does not change parameter meaning. Making intra-block attention bidirectional is equivalent to letting the model condition on masked context on both sides in one forward pass; commit then restores causality and dovetails seamlessly.
    3. Sparse MoE decouples parameter capacity from compute. Each token activates only a few experts, so while the model holds 35 billion total parameters, per-token compute stays at the level of 3 billion active parameters, keeping the cost of a single denoising forward pass controllable.

    4. Sparse MoE Block-Level Routing: Trading Determinism for Communication Efficiency

    In decoding, the bottleneck is usually memory bandwidth and the communication from expert parallelism rather than raw compute, and MoE is especially so. A hybrid-attention backbone is typically a stacked structure: most layers are linear attention, a few are full attention, followed by feed-forward layers such as SwiGLU. Most of the active parameters sit in the sparse expert FFNs of each layer, and they are invoked on every decoding step. Clover’s solution moves expert routing from “per token” up to “per block”:

    • One forward pass handles all 32 positions of a block; all tokens complete routing within their respective layers together, and expert dispatch (all-to-all) runs only once per step.
    • If the denoising steps within a block reuse the same routing result, the tokens involved in expert computation can be pre-gathered, the mixture-of-experts GEMM can run batched, and routing jitter is eliminated.

    There is an easily overlooked constraint here: MoE routing is usually decided by a gating network based on the current token’s hidden state, and the hidden state of the same position differs across denoising steps. To let all steps of a block reuse one routing result, you need a definite source. Two common options:

    1. Use the routing from the block’s first forward pass. Later denoising steps reuse that routing directly. The advantage is that it saves repeated gating computation, gives the best cross-step consistency, and makes it easier to cache expert dispatch results; the downside is that later steps’ hidden states have already changed, so the routing may no longer best match the current semantics.
    2. Use the routing from the causal commit phase. Each step’s routing is measured against the final whole-block causal context, which is semantically cleaner, but every step still computes routing, so gating computation is not saved—it only unifies the standard of judgment.

    So this is not a simple “which is better” but a trade-off: when the communication bottleneck is clear, intra-block state changes little, and you want lower scheduling overhead, first-forward reuse fits; if routing quality strongly affects final generation consistency and you can accept extra gating computation, consider using the commit phase as the standard and validate the net benefit experimentally.

    Block-level routing also involves several trade-offs:

    • The larger the batch size B, the more expert dispatch amortizes communication cost, but the more intra-block hidden-state differences are ignored;
    • Expert capacity factor and drop rate must be recalibrated on a “per block” rather than “per token” basis, otherwise smaller-capacity experts may overflow frequently;
    • The layout of expert parallelism and the determinism of routing affect each other and need to be tuned together.

    More generally, “raising the scheduling granularity and reducing the number of scheduling rounds” is a general principle of inference optimization. Beyond expert routing, attention kernels can also be designed per block, letting 32 positions share one loaded KV tile; and cross-layer GDN state advancement can overlap with expert communication.

    5. Cost Model: Tokens Produced per Forward Pass Is the Metric That Matters

    Let the average number of denoising steps per block be N. The cost of one block is N denoising forward passes plus 1 commit forward pass. As a formula:

    1. Average tokens produced per forward pass ≈ B / (N + 1)
    2. Theoretical speedup vs. autoregression ≈ B / (N + 1)

    Note that this speedup formula has preconditions: it holds only when forward time is dominated mainly by weight movement and when a block forward pass takes about as long as a single-token forward pass. As the sequence grows and B grows larger, a B-position forward pass costs about B times the linear-layer compute of token-by-token decoding, and full-attention layers add intra-block attention overhead on top, so the actual speedup will be lower than the formula suggests.

    N is determined jointly by B and τ:

    • The closer N is to B, the fewer positions are finalized per round—possibly close to unlocking just one position per round—but it is still not equivalent to causal decoding;
    • The closer N is to 1, the more obvious the speedup, but the larger the quality loss from “not seeing sibling positions” within the block.

    It is worth noting that block decoding does not reduce total compute. More precisely: the per-token linear-layer compute is unchanged, only intra-block attention compute is added, but the number of weight movements drops significantly. Its value lies in raising arithmetic intensity: turning a memory-bound operation that “moves weights once to compute one token” into a compute-bound operation that handles multiple tokens at once, thereby using the hardware more fully.

    Compared with speculative sampling, the two approaches differ clearly:

    Dimension Block diffusion Speculative sampling
    Candidate source Same model’s intra-block parallel denoising Draft model, extra head, or naive estimate
    Verification Causal commit forward pass + confidence filtering Target model parallel verification, accept/reject by rules
    Output quality Finalized once confidence exceeds the threshold; risk of wrong commitment Usually strictly equivalent to the target model distribution (greedy or sampling)
    Speedup ceiling Roughly the combined effect of block size B and average denoising steps Roughly draft length K + 1
    Extra cost Needs bidirectional intra-block forward passes, read/write state separation, and possible routing changes Needs a draft model or extra prediction heads

    Both center on “producing multiple tokens per forward pass,” but they trade off in different directions. Speculative sampling usually preserves the output distribution, while block diffusion trades a small amount of quality for the simplicity of needing no draft model. When evaluating block diffusion, speed numbers are only meaningful alongside quality numbers. For a fair comparison, follow this checklist:

    • Control variables: the same backbone, the same hardware and parallelism configuration, the same batch size and sequence length;
    • Quality metrics: perplexity, task accuracy, or human evaluation of grammar and consistency;
    • Speed metrics: report single-request latency and throughput separately, avoiding cross-comparison between different batch settings;
    • Breakdown metrics: record the average steps N per block, the average parallel width B/(N+1), and the extra overhead from the commit forward pass;
    • Ablations: vary the threshold τ and block size B, plot a “quality–speed” curve, and find the knee point suited to your business.

    6. Engineering Deployment: Tuning and System-Design Essentials

    • Tune per task tier. For tasks with strong local constraints—code completion, structured output (JSON, tables), information extraction—intra-block context clearly helps finalization, so start near B = 32 and τ = 0.95. Long-chain reasoning and open-ended generation demand high global consistency, so start near B = 8–16 and τ ≈ 0.9. Then fine-tune by “average steps per block N, fallback trigger rate, and downstream task accuracy.”
    • The fallback policy determines tail latency. If no position reaches the threshold, force open the single highest-confidence one. This guarantees at least one position is unlocked per round and no infinite loop, but it also injects errors when the model is broadly uncertain. Record how often the fallback triggers as a signal of whether the threshold is too strict; you can also set differentiated thresholds per field—stricter for format fields, looser for descriptive text.
    • The inference framework must support read/write separation. The GDN state, convolution state, and full-attention KV cache stay read-only during preview; graph-capture techniques such as CUDA Graph can freeze the repeated denoising steps into static graphs; the commit phase is isomorphic to autoregressive prefill, so it can reuse existing paged-cache management directly.
    • Sampling strategies must be redefined for the parallel setting. Autoregressive decoding samples position by position; when finalizing positions in parallel within a block, the randomness of each position may not be independent, and the effect of parameters such as temperature and Top-p shifts accordingly—run targeted evaluation before shipping.
    • When results fall short, troubleshoot in this order: first check whether the average steps per block N is too high; then whether the fallback trigger rate is too high; then whether quality metrics are dragged down by missing intra-block context; then whether expert routing jitters due to intra-block state changes; and finally adjust B, τ, or the routing source.

    7. FAQ

    How is block diffusion different from a diffusion language model?
    Block diffusion does not diffuse the whole sequence at once; it denoises in parallel within a block and keeps causal commitment between blocks. It more easily preserves the KV cache, streaming output, and the existing inference stack, whereas full-sequence diffusion usually requires rewriting the inference pipeline.

    How do I choose the block size B?
    For tasks with strong local constraints, start from B = 32; for open-ended generation and long-chain reasoning, start from B = 8–16. Watch the average number of steps, the fallback rate, task accuracy, and latency.

    Why can’t preview update the state?
    The preview phase sees half-finished context, and the same position may become a different token in a later step. If you write the GDN, convolution, or other fixed-length recurrent states at this point, you pollute later generation, and these states cannot be rolled back per position as simply as the KV cache can.

    Is block diffusion always faster than speculative sampling?
    Not necessarily. Whether it is faster depends on average parallel width, quality constraints, hardware bandwidth, routing overhead, and state-rollback cost. You must compare fairly on the same hardware and against the same quality target.

    Can it fully degrade into autoregression?
    N = B only means exactly one position is unlocked per round, but the block is still bidirectional under masking, which is not fully equivalent to autoregression. For strictly causal decoding, you need to change the intra-block mask to causal, which is equivalent to a block size of 1.

    Conclusion

    The technical highlight of Clover-35B-A3B-Preview is not how many parameters it adds, but that it unifies two modes—“intra-block parallel denoising” and “causal commit”—under one set of weights, and uses strict read/write separation to solve the engineering problem that recurrent states cannot be rolled back. For developers, the key takeaways are:

    • Block diffusion’s speedup depends on “how many tokens each forward pass produces on average,” not on how fast a single forward pass is;
    • The three knobs—block size B, confidence threshold τ, and expert-routing granularity—must be tuned jointly;
    • Any speed number should be evaluated within a “quality–speed” frame of reference;
    • Fixed-length states such as GDN and convolution must not be assumed freely rollback-able—you must design snapshot, replay, or commit-boundary strategies.

    In long-context, memory-bound decoding scenarios, block diffusion offers a path worth watching for “switching decoding modes on demand with the same set of weights.” This article is a technical analysis; model names, release dates, parameter counts, license terms, and implementation details should be confirmed against the official release page, model card, or technical report.