Sparse-LaViDa: Sparse Multimodal Discrete Diffusion Language Models

Shufan Li, Jiuxiang Gu, Kangning Liu, Zhe Lin, Zijun Wei, Aditya Grover, Jason Kuen

TL;DR

Sparse-LaViDa introduces a sparse parameterization framework for Masked Discrete Diffusion Models (MDMs) that dynamically truncates redundant masked tokens during inference, achieving up to a 2.8× speedup across image generation, editing, and reasoning tasks. Crucially, unlike prior acceleration methods, it maintains the bidirectional context essential for multimodal tasks while enabling KV-cache acceleration.

What Problem Does This Paper Address?

Masked Discrete Diffusion Models (MDMs) have become a powerful alternative to autoregressive (AR) models for unified multimodal tasks like text-to-image generation, image editing, and visual understanding. Unlike AR models that generate tokens sequentially from left to right, MDMs can predict tokens in any order and leverage bidirectional context, making them naturally suited for tasks like image inpainting.

However, MDMs suffer from a major efficiency bottleneck: dense parameterization. During inference, the model must repeatedly process the entire sequence—including hundreds of redundant [MASK] tokens—at every single diffusion step. Prior attempts to fix this, such as Block Diffusion, truncate these masked tokens but force a strict left-to-right generation order. This destroys the bidirectional context, rendering the model ineffective for non-sequential tasks like image editing and inpainting.

Figure 2. Overall design of Sparse-LaViDa. Left: Vanilla MDMs materialize all masked tokens and support arbitrary-order decoding (top-down). Unlike AR models, they have bidirectional context and naturally support tasks such as image generation and inpainting. Middle: Block Diffusion truncates redundant masked tokens from the right but imposes a left-to-right generation order using a block- causal attention mask, losing many benefits of MDMs. Right: Sparse-LaViDa is an alternative parameterization of vanilla MDMs. It preserves all benefits of standard MDMs while achieving the efficiency gains of Block Diffusion by allowing mask truncation at arbitrary positions. Special register tokens serve as compressed representations of truncated tokens.

Methods

Sparse-LaViDa solves this efficiency-versus-flexibility dilemma through three key innovations:

  1. Sparse Parameterization of Masked Sequences: Masked tokens carry no substantive information other than their positions. Instead of materializing all masks, Sparse-LaViDa inputs only the prompt tokens, previously decoded tokens, and the specific subset of masked tokens to be decoded in the current step. The positions of the remaining masked tokens are implicitly determined by providing the total sequence length.
  2. Specialized Register Tokens: Aggressively truncating masked tokens reduces the model's capacity and degrades generation quality. To counteract this, the authors introduce a constant number (64) of special "register tokens" at the end of the sequence. These tokens serve as compact, learnable representations that recover lost modeling capacity and enhance fine-grained visual details.
  3. Step-Causal Attention Mask: To enable KV-caching during inference and maintain consistency during training, the authors design a step-causal attention mask. During training, the sequence is partitioned into blocks where clean tokens can only attend to previous blocks, and masked tokens can interact with clean tokens but not with masked tokens in other blocks. This faithfully simulates the incremental token caching behavior of inference without sacrificing bidirectional flexibility.
Figure 3. Inference pipeline of Sparse-LaViDa. (a) At a specific decoding step (top-down), the input of Sparse-LaViDa consists of four types of tokens: (1) previously decoded tokens stored in the KV cache; (2) newly decoded tokens from the previous step, which will be added to the cache at this step; (3) masked tokens to be decoded at the current step; and (4) register tokens. (b) During sampling, we apply a specialized attention mask such that tokens of type (2) cannot attend to tokens of type (3) or (4). In this example, tokens at positions 2 and 7 are of type (2) (newly decoded), while tokens at positions 1 and 10 correspond to types (3) and (4) (mask and register), respectively.

Datasets

The model is initialized from the state-of-the-art unified MDM, LaViDa-O (10.4B), and undergoes supervised fine-tuning (SFT) on a high-quality data mix:

  • Image Understanding: MAmmoth-VL and VisualWebInstruct.
  • Text-to-Image Generation: A 20-million image-text pair subset from LAION-2B, COYO-700M, SA-1B, JourneyDB, BLIP3o-60k, and ShareGPT4o-Image.
  • Image Editing: GPT-Edit-1.5M.

Evaluation is conducted across several established benchmarks: GenEval, DPG-bench, and MJHQ-30k for text-to-image generation; ImgEdit for image editing; and MathVista, MME-C, MMMU, ChartQA, DocVQA, and MathVerse for image understanding and reasoning.

Key Insights and Ideas

  • Masks are placeholders, not data: The fundamental realization is that explicitly processing [MASK] tokens through self-attention layers is computationally wasteful. Tracking them implicitly via sequence length and position IDs unlocks massive computational savings.
  • The Capacity-Efficiency Tradeoff: Truncating tokens shortchanges the transformer's attention mechanism. The introduction of register tokens acts as a fixed-size buffer that preserves the model's expressive power without scaling up computational costs as the sequence grows.
  • Order-Agnostic Caching: Standard KV-caching assumes a causal, left-to-right progression. Sparse-LaViDa proves that you can cache tokens out-of-order as long as the attention mask prevents newly decoded tokens from corrupting the historical cache of previously finalized tokens.

Key Results

Sparse-LaViDa achieves substantial end-to-end latency reductions across the board while matching or exceeding the generation quality of the baseline LaViDa-O model:

  • Text-to-Image Generation: Achieves a 1.96× speedup, cutting latency from 21.27 seconds to 10.86 seconds per image on GenEval, while slightly improving overall alignment scores.
  • Image Editing: Delivers a 2.83× speedup (22.55s vs. 63.98s) on the ImgEdit benchmark, outperforming state-of-the-art unified models like BAGEL.
  • Visual Math Reasoning: Reaches a 2.80× speedup on MathVista while maintaining identical accuracy to the base model.
Figure 1. We propose Sparse-LaViDa, a novel modeling tech- nique for unified multimodal masked discrete diffusion models. Sparse-LaViDa achieves substantial speedup across a wide range of tasks, including text-to-image generation, image editing, and visual math reasoning, compared with the baseline LaViDa-O.

Qualitative evaluations confirm that Sparse-LaViDa successfully retains complex bidirectional capabilities like image inpainting/outpainting and parallel object grounding, which are impossible with traditional causal block-diffusion methods.

Limitations and Future Work

The primary limitation of Sparse-LaViDa is that it is not training-free. Transitioning from a dense MDM to a sparse parameterization requires an additional post-training or fine-tuning phase to adapt the model to the step-causal attention mask and register tokens.

Due to compute constraints, the authors evaluated Sparse-LaViDa purely in a post-training setup. They note that a promising future direction is to integrate this sparse parameterization directly into the pre-training phase of large discrete diffusion models from scratch, which could yield even higher efficiency and representation scaling.

Summary updated

BibTeX
@inproceedings{li2026sparse,
  author = {Shufan Li and Jiuxiang Gu and Kangning Liu and Zhe Lin and Zijun Wei and Aditya Grover and Jason Kuen},
  title = {{Sparse-LaViDa: Sparse Multimodal Discrete Diffusion Language Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=HmrWyrQzr0},
}
Figure