Text Diffusion LLMs Explained: How They Compare to Multi-Token Prediction and Quantization-Aware Training
A new open-source model built on discrete diffusion reframes how text is generated without changing the attention architecture or retraining the data pipeline. This article explains why the autoregressive "token-by-token" paradigm is the core inference bottleneck, breaks down three optimization routes—multi-token prediction, text diffusion, and quantization-aware training—and shows why they are orthogonal rather than competing. You will learn how each technique works, how they can be stacked, how to choose between them, and what it takes to serve them in production.
Introduction: Another Generation Method—and Why Developers Should Care
A recent open-source experimental model based on discrete diffusion has been released under a permissive license. It does not change the attention structure, and it does not overhaul the training data pipeline. What it actually rewrites is how text gets written out.
Autoregressive generation—producing tokens one at a time, left to right—has long dominated large-model text generation. The effectiveness, training stability, and engineering ecosystem around this paradigm are all mature. Yet in scenarios like local inference and high-concurrency serving, one characteristic remains a persistent performance bottleneck: every generated token requires a full forward pass.
Text diffusion changes the output from “writing character by character” to “laying down a draft, then revising it as a whole block.” Because the model’s parameter naming includes an MoE (mixture-of-experts) marker, many people’s first instinct is to compare it with multi-token prediction and quantization-aware training. The three are often lumped together, but they act on fundamentally different parts of the pipeline:
- Multi-token prediction (MTP): lets an autoregressive model guess and verify several tokens at once. The writing style stays the same.
- Text diffusion: shifts from “writing character by character” to “block-level denoising.” This is a switch of generation paradigm.
- Quantization-aware training (QAT): simulates low-bit quantization error during training so that each forward pass and weight read becomes cheaper.
In one sentence: the three sit at different layers of the inference stack, are orthogonal to each other, and can in principle be stacked.
The rest of this article walks through four questions in order: where the bottleneck is, how each of the three routes addresses it, how they combine, and how to put them into practice.
1. The Root Cause: Why “Token-by-Token Generation” Is the Main Bottleneck
1.1 Decoding Is Memory-Bound, Not Compute-Bound
Autoregressive inference has two phases:
- Prefill phase: All tokens in the input prompt are computed in parallel. This is essentially large-scale matrix multiplication. The phase is compute-bound, and for long prompts the time to first token (TTFT) is dominated by it.
- Decode phase: Each forward pass produces only one token, while the vector repeatedly reads billions of parameters and a growing KV cache. Against the vector-matrix operations for a single new token, these tensor multiply-adds are almost negligible. The phase is therefore memory-bound, and per-token latency (TPOT) is dominated by memory bandwidth and kernel-launch overhead.
The large language model inference community has a well-known rule of thumb: parameter count multiplied by numeric precision (in bytes) is the minimum number of weight bytes that must be moved to generate each token for a single request. Take a 26B-parameter model in BF16: each token requires moving more than 50 GB of data from memory—and that does not even count KV cache reads. Memory bandwidth is often only hundreds of GB to a few TB per second, so decoding speed is throttled by “moving data.” GPU compute sits largely idle during decode, to say nothing of on-device setups where compute itself is scarce.
1.2 Serial Dependency Cuts Off Parallelism
- Autoregressive models: generating token n depends on the previous n−1 tokens. There is no intra-sequence parallelism; throughput can only be raised with inter-sequence techniques like batching and continuous batching.
- Diffusion models: what repeats is a “add noise—remove noise” process. Each denoising step predicts and revises the entire block of tokens in parallel, so intra-sequence parallelism exists naturally.
1.3 Three Optimization Ideas: Produce More Tokens, Write Tokens in Parallel, Make Each Forward Pass Cheaper
Once you understand this bottleneck, the positioning of the three optimization routes becomes clear:
| Idea | Representative approaches | What it changes |
|---|---|---|
| Produce multiple tokens per forward pass | Multi-token prediction, speculative decoding, Medusa-style multi-head prediction | Output granularity |
| Generate and revise a block of tokens in parallel | Masked diffusion and other discrete diffusion models | Generation paradigm |
| Reduce data movement and compute per forward pass | Quantization-aware training and other quantization schemes, pruning, sparsification | Numeric precision |
The first two act on the decoding algorithm and can be called “algorithm-level acceleration”; the third acts on the model representation and is a form of “representation-level compression.” They do not conflict—and that is the key to understanding how the three relate.
2. Multi-Token Prediction and Speculative Decoding: A “Draft Accelerator” That Doesn’t Change How You Write
2.1 Two Levels: Training Objective and Inference Mechanism
Training level: Multi-token prediction adds supervision signals for “predicting the k-th future token” on top of standard next-token prediction. A conventional model has a single linear prediction head at each position; a multi-token prediction model instead sets up multiple output heads in parallel, each predicting tokens at several subsequent positions, with the corresponding backbone hidden states taking part in the computation. This serves two purposes:
- It forces the model to consider farther-ahead goals when making the current decision, mitigating “short-sightedness” and helping improve representation quality.
- At inference time, these prediction heads can be reused as a “drafting” mechanism.
Inference level: The general technique sharing the same lineage as multi-token prediction is speculative decoding. Its core insight is that verifying a draft is far cheaper than generating one. When an autoregressive model receives a draft, it can perform a single forward pass over k+1 positions using causal attention and obtain the probability distribution at each position conditioned on the true prefix. The significance is:
- The draft prefix is not “accepted all at once”; it is checked position by position, and at each accepted position the conditional probability is exactly the same as if the original model had generated step by step.
- Therefore, as long as the draft generation and acceptance algorithms are designed properly, speculative decoding can, in theory, keep the output distribution identical to the original autoregressive model.
2.2 One Complete Decoding Loop
Illustrative flow (pseudocode, not tied to any specific framework):
context = prompt_tokenswhile not finished:# 1. The drafter proposes gamma candidate tokens based on the current contextdraft = draft_model.propose(context, gamma=4)# 2. The target model runs one forward pass over gamma+1 positions to get each distributionprobs = target_model.forward(context, draft)# 3. Accept position by position: continue on a hit, resample or roll back on a mismatchaccepted = verify_and_accept(draft, probs)# 4. Write the accepted tokens + 1 correction token at once, and trim excess KV cachecontext = context + accepted
A single forward pass of the target model can advance up to gamma+1 tokens. In practice, however, the actual speedup depends on the average accepted length and on the cost ratio between the target model and the drafter.
2.3 Typical Sources for the Draft
- Standalone small model: usually a fraction to a tenth of the target model’s parameters; simple to train and use, but requires maintaining an extra set of weights.
- Self-speculation: uses the target model’s own shallow layers or intermediate features as the drafter, with no extra model.
- Multi-head prediction: uses the multi-token prediction heads or parallel heads attached during training, sharing the backbone with the main model.
- Model-free n-gram/retrieval drafts: uses retrieval or rules to generate candidates, decoupled from model training; well suited to highly repetitive scenarios like code completion and templated text.
2.4 Results Depend on “Acceptance Rate” and “Draft Cost”
The theoretical speedup ceiling is roughly the average accepted length, i.e. “1 + average number of accepted tokens.” In practice, you must also subtract draft overhead and factor in how predictable the generated content is within the model’s distribution:
- High-entropy scenarios: open-ended writing and complex reasoning, where uncertainty between tokens is high and draft hit rates are naturally low.
- Low-entropy scenarios: code completion, structured output (such as JSON), and format conversion, where patterns are highly predictable and acceptance rates tend to be higher.
A few easily overlooked engineering details also matter:
- At small batch sizes, the extra forward pass from drafting is almost “free,” because weight reads were already being amortized; at large batch sizes, the draft’s extra compute competes with the main requests for compute, and the benefit can reverse.
- The gains from speculative decoding rest on the premise that the decode phase is memory-bound. If the model has already cut weight movement through aggressive quantization, the relative gain from speculative decoding shrinks accordingly.
2.5 Summary
Multi-token prediction and speculative decoding are a well-compatible, relatively stable optimization: the generation logic stays the same—the model simply “guesses a few more and keeps them if right.” But its speedup ceiling is limited by two factors:
- It cannot break the fundamental constraint of per-token serial generation.
- It depends on the drafter and target model distributions being close enough, so effectiveness fluctuates with task type.
3. Text Diffusion: Lay Down a Draft, Then Revise as a Whole
3.1 From Image Diffusion to Discrete Diffusion
The intuition behind image diffusion models is easy to grasp: starting from pure noise, contour and detail gradually emerge at each denoising step until a complete image is produced.
Migrating this to text, the key difference is that text is discrete. There is no “half a token,” so Gaussian noise cannot be applied directly. A common industry approach is masked diffusion:
- Forward process: for a given sequence, randomly replace some tokens with a special [MASK] marker according to a noise schedule; the masking ratio increases with the “time step,” and in the extreme case the entire sequence becomes masks.
- Reverse process: at each step the model predicts, in parallel, the tokens at all masked positions based on the currently visible part, then fills in a subset according to strategies like confidence, gradually “developing” the whole block of text.
3.2 Per-Step Prediction and the Denoising Plan
Worth noting: what the model outputs at each position is a distribution “for that token conditioned on the currently visible context.” The model itself does not require every position to be correct at once.
This shares something with autoregressive models: the latter also outputs, at each position, a distribution over the next token “conditioned on all content to its left,” and is essentially also a conditional predictor. In other words, diffusion models can equally reuse cross-entropy loss, which is highly similar to how masked language models are trained—one reason they are relatively compatible with the existing large-model training stack.
But diffusion introduces a new problem that autoregressive models don’t have: the denoising plan (noise schedule). How many positions to fill and which ones at each step affects both quality and speed:
| Decoding strategy | Approach | Characteristics |
|---|---|---|
| Fill a few positions per step | Fill only a small number of high-confidence positions each step, with many steps | Usually more stable quality, but more forward passes |
| Aggressive parallel filling | Fill many positions each step, with few steps | Faster, but early mis-fills may be uncorrectable |
| Confidence-ranked | Select the highest-confidence batch of positions each step | Simple to implement, requires confidence calibration |
| Random-ratio schedule | Randomly select how many to fill each step along a preset curve | Similar to image diffusion, stronger sampling randomness |
From this angle, text diffusion’s sampling strategy is itself a tunable “knob”: the same model gives different speed-quality tradeoffs under different denoising plans. This is a flexibility autoregressive models usually lack.
3.3 Reading the Public Model’s Configuration: 26B MoE, 256-Token Canvas
Back to the experimental model mentioned earlier. Its public configuration is roughly as follows (for understanding only; defer to the official documentation):
- Scale and structure: ~25.2B total parameters, ~3.8B activated per token, 30 layers.
- Expert structure: 8 of 128 experts activated per token, plus 1 shared expert.
- Context: supports a 256K context.
- Canvas length: 256 tokens.
Three clear design logics sit behind these numbers:
- Canvas length 256: turns “produce 1 token per forward pass” into “produce up to 256 token candidates in parallel per block,” raising parallelism from 1 to the hundreds.
- MoE structure: ~25B total parameters, ~3.8B activated per token. Parameter capacity is carried mainly by the experts, while actual compute relates only to the activated portion. This sharply reduces the per-step forward-pass cost, partly offsetting the extra overhead of “multi-step denoising.”
- 256K context: long-context capability does not depend on attention optimization alone—it also relies on the whole-block parallelism from the 256-token canvas. Otherwise the time cost of generating long text would be nearly unacceptable.
3.4 Block Autoregression + Multiple Canvases: Intra-Block Parallel, Inter-Block Serial
One common misconception needs clearing up: this kind of model’s “diffusion” is not denoising the entire long text at once, but rather block-autoregressive:
- Split the output into blocks of 256 tokens each.
- Each block is first initialized as a blank “canvas” of all masks, then denoised in parallel over several steps until filled.
- The filled block becomes a prefix, and denoising of the next block begins.
“Multiple canvases” is usually understood as maintaining several canvas candidates and denoising them in parallel. This can mean selecting the best among multiple candidates, or dividing the whole output into multiple canvas partitions processed in parallel; the exact semantics should follow the official documentation.
Structurally, it is a hybrid of intra-block diffusion + inter-block autoregression: intra-block serial dependency between tokens is broken, while the autoregressive order between blocks is preserved. This also explains its kinship with autoregressive models and why it can relatively naturally fit into prefix-caching mechanisms in existing inference frameworks.
3.5 Advantages and Costs
Advantages:
- High decode parallelism: generating a single block needs only several parallel forward passes, turning “token-level serial” into “block-level serial,” which can significantly improve compute utilization in the decode phase and single-stream generation speed.
- Local-friendly: MoE’s sparse activation lowers per-step compute, making deployment on a single GPU or consumer-grade graphics card friendlier.
- Revision-friendly: a generated block can be modified like “local inpainting”—re-denoising only the part that needs changing rather than rewriting from the point of error.
- Global consistency potential: whole-block parallel prediction means each position’s prediction can “see” the entire context within the block rather than only left-side content, which in theory helps paragraph-level coherence.
Costs:
- New paradigm, thin ecosystem: engineering techniques built up around autoregressive models—quantization, speculative decoding, structured-output constraints, KV cache management—all need to be re-adapted.
- Schedule-sensitive: the number of denoising steps and the noise schedule directly determine quality and speed, leaving a large tuning space that also relies on experience.
- Higher engineering complexity: requires extra modules such as mask scheduling, confidence estimation, and parallel sampling.
- Still experimental: as a new paradigm, its performance on instruction following, multi-turn dialogue, and code tasks needs larger-scale comparative evaluation to validate.
4. How the Three Relate: Orthogonal, Not Replacement
Placing all three in one table makes the relationship clear at a glance:
| Dimension | Multi-token prediction / Speculative decoding | Text diffusion generation | Quantization-aware training |
|---|---|---|---|
| Layer | Decoding algorithm | Generation paradigm | Model representation & training method |
| Changes how you generate? | No, still autoregressive | Yes, switches to intra-block parallel denoising | No |
| Source of speedup | Fewer target-model forward passes | Higher decode-phase parallelism | Lower weight movement and compute demand |
| Effect on output distribution | Identical to original when designed well | Determined by training and the denoising plan together | Quantization error exists; needs evaluation |
| Main dependencies | Drafter quality, target-model cost, scenario predictability | Denoising schedule, model training quality | Calibration/fine-tuning data, quantization granularity |
| Best-fit scenarios | Existing autoregressive models, good compatibility, seeking stable speedup | Local deployment, high single-stream speed, exploratory scenarios | Memory-constrained, on-device deployment, cost reduction at high concurrency |
More concretely:
- Multi-token prediction vs. text diffusion: both aim for “multiple outputs per forward pass,” but one relies on “guess + verify” and the other on “parallel fill + iterative revise.” The former does not change how you write; the latter does. Their acceleration mechanisms don’t conflict because they attack different bottlenecks.
- QAT vs. text diffusion: QAT doesn’t care whether the model is autoregressive or diffusion; it compresses the representation precision of weights and activations. A cheaper per-step forward pass in diffusion neatly offsets the extra overhead of multi-step denoising.
- QAT vs. multi-token prediction: combined, they form the “compress + speculation” acceleration scheme common in today’s inference serving.
On “Shifting the Decode Bottleneck”
The model’s public description emphasizes that it moves the decode bottleneck from “serial token-by-token generation” to a parallelizable denoising process. This can be understood as:
- Autoregressive models: compute is relatively idle; the bottleneck is serial dependency and memory access.
- Text diffusion: pack more compute into a few forward passes, trading compute utilization for wall-clock time.
This is a classic “trade compute for latency” approach, and MoE sparse activation is precisely what makes the trade worthwhile. In practice, what’s worth watching is this: the decode bottleneck is shifting from “moving weights” to “computing activations.” The accompanying optimization focus is likewise moving from KV cache management and speculative decoding toward expert-routing scheduling, parallel attention kernels, and similar directions.
Can They Be Stacked?
In theory, yes:
- Quantization + diffusion: use quantization to make each denoising forward pass cheaper.
- Multi-token prediction + diffusion: have a lightweight drafter propose candidate blocks first, then let the diffusion model revise them in parallel—a research direction.
- All three at once: no mature public practice observed yet.
But it must be stressed that these combinations mostly remain at the level of theoretical feasibility. Whether they can reliably deliver gains depends on inference-framework support and extensive real-world testing; their benefits should not be baked into a design as assumptions.
5. Selection Checklist: Which One Should You Use
5.1 Decision Tree
Must output match the original model's per-token distribution exactly?├─ Yes → Prefer multi-token prediction / speculative decoding (can preserve distributional equivalence when designed well)└─ No ↓Is the bottleneck mainly memory access (weights read repeatedly) or serial latency (per-token dependency)?├─ Memory → Quantization (e.g., QAT) + speculative decoding combo└─ Serial latency, and the ecosystem cost of a new paradigm is acceptable → Evaluate text diffusion models
5.2 Evaluation Metrics: Don’t Look at “Tokens per Second” Alone
| Metric | Meaning | Scenarios to watch |
|---|---|---|
| TTFT (time to first token) | Time from request sent to first token returned | Interactive apps, code completion |
| TPOT / ITL (per-token latency) | Average time per token in the decode phase | Long-form streaming output |
| Single-stream speed | Tokens generated per second for a single request | Local inference, single-user experience |
| Overall throughput | Total tokens produced across all requests per unit time | High-concurrency online serving |
| Speedup ratio | Ratio of optimized time to baseline (original autoregressive + original precision) | Comparing different schemes |
| Quality metrics | Performance on general knowledge, math reasoning, code generation, long-form writing, etc. | All schemes |
Here, the speedup ratio must always be measured against the same baseline to avoid misjudgments from “comparing against an unoptimized version” or “comparing across different hardware.”
5.3 Selection Advice
- Existing mature autoregressive model, seeking stable speedup: multi-token prediction / speculative decoding is a low-risk first choice thanks to good compatibility and predictable gains.
- Local GPU or consumer-grade device, seeking single-stream generation speed: models like these, via MoE + intra-block parallelism, offer an acceleration path different from the traditional one and are worth evaluating as candidates.
- Memory-constrained, on-device deployment, cost reduction at high concurrency: quantization (such as QAT) is necessary infrastructure and can be stacked with the other two.
- Long-document rewriting and local-revision tasks: diffusion-style “local inpainting” may deliver a better interactive experience, but this needs validation on real tasks.
6. Serving in Production: Getting the New Paradigm to Actually Run
From an engineering standpoint, text diffusion models pose new requirements for inference serving. At minimum, watch these points:
- Canvas management: the 256-token canvas length, the sparse structure of 128 experts with 8 activated, the 256K context, and the 30-layer depth all affect memory usage and kernel scheduling. Just as autoregressive models maintain a KV cache, you need to maintain “canvas state.”
- Batching strategy: traditional continuous batching schedules by token, whereas diffusion models schedule by canvas. Different requests progress through denoising at different rates; how to align and schedule them is a problem that needs redesigning.
- Sampling-parameter semantics change: how temperature, top-p, and similar parameters map to “which position to fill, and how many” under mask filling does not fully match the semantics of autoregressive models, so parameters need recalibration when migrated.
- Quantization and sparsity working together: MoE routing may show uneven expert load at each denoising step, so watch the communication overhead of expert parallelism.
- Observability: it’s advisable to bring metrics like TTFT, TPOT, time to first character, output length, and request queue time into your collection scope, using monitoring and alerting capabilities, to make before/after comparisons around launch.
If a team plans to quickly stand up a validation environment in the cloud, these general-purpose building blocks can close the loop: container platforms to deploy the inference service, object storage to manage model weights and evaluation datasets, and logging plus monitoring and alerting services to observe performance metrics. General-purpose cloud platforms—Baidu AI Cloud being one example—can serve as candidate test environments; the final choice should depend on actual requirements.
7. Conclusion: Not Replacement, Only Stacking
Back to the opening question: what is the relationship between text diffusion models, multi-token prediction, and quantization-aware training?
- Multi-token prediction is a “draft accelerator that doesn’t change how you write”—stable gains, but a ceiling constrained by per-token serialization.
- Text diffusion is a paradigm switch that “changes how you write”—trading intra-block parallel denoising for decode speed, with a higher ceiling but an ecosystem still maturing.
- Quantization-aware training is the infrastructure that “makes each forward pass cheaper”—independent of generation method, and the shared foundation for the other two.
They are not replacements but complementary optimizations at different layers. For developers, the pragmatic path is:
- Nail the baseline first: quantization + mature inference optimizations are the prerequisite for everything else.
- Stack on demand: only when the bottleneck is clearly serial latency should you evaluate speculative decoding or text diffusion.
- Let data decide in the end: no matter which scheme, you always return to measured comparisons on TTFT, TPOT, throughput, and quality.
The value of text diffusion lies not only in that it may be faster, but more in that it proves one thing: there is still room to redesign how a large model generates in the first place.
