TL;DR
STDec (Spatio-Temporal Stability Guided Decoding) accelerates discrete Diffusion Large Language Models (dLLMs) by replacing rigid global confidence thresholds with dynamic, token-adaptive ones. By leveraging the spatial clustering and temporal consistency inherent in the denoising process, STDec achieves up to a 14.17× speedup on text generation and over 3× on multimodal tasks without sacrificing model performance.
What Problem Does This Paper Address?
Discrete diffusion large language models (dLLMs) are emerging as a powerful alternative to traditional autoregressive (left-to-right) LLMs because they can predict and refine multiple tokens in parallel. However, during the iterative denoising process, standard dLLM decoders rely on a conservative global confidence threshold (such as a fixed value or a top-$k$ selection) to decide which tokens to finalize at each step.
This approach treats every token position in isolation, completely ignoring two crucial dimensions:
- Spatial context: How many tokens around the target position have already been successfully decoded?
- Temporal history: Has the model consistently predicted the exact same token ID for this position over the last few steps?
By ignoring these signals, standard decoders waste valuable compute cycles unnecessarily re-evaluating tokens that are already stable, creating a massive bottleneck for fast inference.
Methods
The authors introduce STDec, a training-free, plug-and-play decoding strategy that computes a unique, adaptive threshold for every single masked token position. It consists of two core modules:
- Spatial-aware Decoding: The authors observed that decoding tends to expand outward from already-resolved tokens. STDec creates an initial threshold map (assigning a low threshold to already-decoded tokens and a high threshold to masked ones) and applies a Gaussian smoothing operation. As a result, masked tokens surrounded by a high number of already-decoded neighbors get their thresholds lowered, allowing them to be finalized sooner.
- Temporal-aware Decoding: This module tracks the historical consistency of token predictions across denoising steps. If a masked token has consistently been predicted as the exact same token ID for at least two consecutive steps, STDec applies a relaxation factor ($\alpha < 1$) to lower its decoding threshold.
The final token-adaptive threshold is simply the product of the spatial threshold and the temporal relaxation factor. To prevent rare deadlock scenarios where no tokens meet the adaptive criteria, STDec includes a fallback mechanism that forces the decoding of the single most confident token.
Datasets
The authors evaluated STDec across a wide variety of benchmarks spanning multiple modalities:
- Textual Reasoning & Code Generation: HumanEval and MBPP (Python function synthesis).
- Mathematics & Science: GSM8K (grade-school math), MATH (advanced math word problems), and GPQA (graduate-level science QA).
- Multimodal Math Reasoning: MathVerse, MathVision, and MathVista (visual/diagram-based math problems).
- Text-to-Image Generation (Extension): GenEval and DPGBench (evaluated using the Lumina-DiMOO diffusion model).
Key Insights and Ideas
- The Spatial Cluster Effect: Empirical analysis revealed that over 90% of newly decoded tokens are located within a small radius (distance of 2) of an already decoded token. Decoding behaves like crystal growth, expanding outward from established context rather than appearing randomly across the sequence.
- The "Under-Confident but Correct" Phenomenon: Approximately 95% of tokens settle on their final, correct token ID several steps before their confidence scores actually cross the strict global threshold. Global thresholds force the model to waste denoising steps on tokens that are already correct but just "under-confident."
- Perfect Composability: Because STDec modifies only the decoding policy at inference time without changing model weights, it is fully complementary to existing hardware-level acceleration techniques. It can be stacked directly on top of KV-caching methods (like dKV-Cache or Prefix-DLM) for multiplicative speedups.
Key Results
STDec delivers substantial throughput improvements across the board while maintaining comparable task performance scores:
- Textual Reasoning (LLaDA): Achieved an average 7.60× speedup across five benchmarks. Notably, on the MBPP coding benchmark, it achieved a massive 14.17× speedup in tokens per second (TPS).
- Textual Reasoning (Dream): Delivered an average 10.03× speedup across the same five benchmarks.
- Multimodal Understanding (LaViDa): Improved throughput by an average of 3.57× across MathVerse, MathVision, and MathVista.
- Image Generation: When extended to 2D image lattices via Lumina-DiMOO, it sped up generation by 3.53× on GenEval and 2.46× on DPGBench.
Limitations and Future Work
The primary limitation of STDec is its dependency on sequence length. Because its acceleration mechanism relies on parallel token generation and spatial/temporal context accumulation, it is highly optimized for tasks requiring long token sequences. For tasks that generate very short outputs (e.g., simple "yes/no" answers or single-word completions), the overhead of calculating adaptive thresholds yields negligible speedups. The authors note that for short-sequence tasks, future work should focus instead on optimizing the raw denoising feature extraction speed of the underlying diffusion models.
Summary updated