Guiding Token-Sparse Diffusion Models

Felix Krause, Stefan Andreas Baumann, Johannes Schusterbauer, Olga Grebenkova, Ming Gui, Vincent Tao Hu, Björn Ommer

TL;DR

Token-sparse training significantly lowers the cost of training large Diffusion Transformers, but these models typically suffer from poor image quality at inference time because they are incompatible with Classifier-free Guidance (CFG). This paper introduces Sparse Guidance (SG), a finetune-free inference technique that uses the capacity gap between different token sparsity rates as a guidance signal. SG not only restores high-quality generation but also slashes inference compute costs by up to 58%.

Overview of Sparse Guidance providing effective, efficient, and structure-preserving guidance compared to CFG.

What Problem Does This Paper Address?

Diffusion Transformers (DiTs) excel at high-fidelity image synthesis but suffer from quadratic computational complexity relative to the number of visual tokens. To mitigate this, recent "token-sparse" training methods randomly mask or route tokens to skip layers, drastically reducing training costs.

However, there is a catch: at inference time, these sparsely trained models respond poorly to standard Classifier-free Guidance (CFG). CFG relies on an unconditional branch (where conditioning is dropped) to steer the conditional branch. In token-sparse models, this causes severe artifacts or mode collapse unless the model undergoes expensive dense finetuning. The authors address this train-test gap, aiming to unlock efficient inference for sparsely trained models without any extra training.

Methods

Instead of dropping text or class conditioning like CFG, Sparse Guidance (SG) alters the model's capacity at inference time by varying the token sparsity rate ($\gamma$).

The core algorithm works as follows:

  1. Two Conditional Branches: SG runs two distinct conditional predictions at each step: a high-capacity "strong" branch with low token sparsity ($\gamma_{strong}$) and a low-capacity "weak" branch with high token sparsity ($\gamma_{weak}$).
  2. The Capacity Gap: The difference between these two branches forms a guidance vector. SG extrapolates the prediction in the direction of the high-capacity branch.
  3. Natural Speedup: Because tokens are physically removed or routed past layers in the weak branch (and optionally the strong branch), the computational cost of inference drops naturally.

SG is highly flexible: it requires zero finetuning, works with both token masking and token routing architectures, and can be combined with standard CFG or other advanced guidance techniques like AutoGuidance.

Datasets

The authors evaluated their approach using several standard benchmarks and large-scale datasets:

  • ImageNet-256: Used for class-conditional image generation to benchmark FID, sFID, Inception Score, Precision, and Recall.
  • COYO-700M (100M subset): Used to train a large-scale 2.5B parameter text-to-image Diffusion Transformer from scratch using token routing.
  • JourneyDB & FLUX-6M: Synthetic datasets used to filter and fine-tune the 2.5B model for high aesthetics.
  • GenEval & HPSv3: Used to evaluate the text-to-image model's performance on compositional alignment and human preference, respectively.

Key Insights and Ideas

  • Sparsity as a Guidance Knob: Sparsity isn't just an efficiency trick; it acts as a continuous hyperparameter controlling distributional sharpness. High sparsity softens the conditional distribution, making it an ideal "weak predictor" baseline for guidance.
  • Embracing the Train-Test Gap: Instead of trying to force sparse models to act like dense models via post-hoc dense finetuning, SG embraces sparsity at inference time, turning a training artifact into a powerful guidance signal.
  • Preserving Structural Variance: CFG often causes over-saturation and variance collapse because it extrapolates away from an unconditional state. Because SG operates entirely within conditional states of varying capacity, it preserves the high-variance, creative expressivity of the base model much better.

Key Results

  • State-of-the-Art Efficiency: On ImageNet-256, SG achieved a Fréchet Inception Distance (FID) of 1.58, outperforming dense baselines while using 25% fewer FLOPs. At matched baseline quality, it yielded up to 58% FLOP savings.
  • No Finetuning Required: SG completely bypasses the irregular behavior and underwhelming performance that sparse models typically exhibit under CFG, even outperforming models that underwent extensive dense finetuning.
FID over training iterations showing that SG achieves superior sample quality without requiring a dense finetuning stage.
  • Billion-Parameter Scaling: When applied to a 2.5B text-to-image model, SG boosted the Human Preference Score (HPSv3) by 27% over the unguided baseline and 7% over CFG. This allowed the 2.5B model to outperform significantly larger models, including Gemini 2.0 Flash and CogView4, while increasing inference throughput from 0.32 to 0.49 images/second on an H200 GPU.

Limitations and Future Work

  • Hyperparameter Sensitivity: SG introduces a triplet of hyperparameters—the strong sparsity rate, weak sparsity rate, and guidance scale ($\gamma_{strong}, \gamma_{weak}, \omega$). While the authors map out a robust "valley" of optimal settings, finding the sweet spot still requires empirical tuning.
  • Masking vs. Routing Disparity: Models trained with token masking exhibit a narrower response surface and higher sensitivity to these hyperparameters than those trained with token routing. This is likely due to the irreversible information loss caused by token deletion in masking frameworks.

Summary updated

BibTeX
@inproceedings{krause2026guiding,
  author = {Felix Krause and Stefan Andreas Baumann and Johannes Schusterbauer and Olga Grebenkova and Ming Gui and Vincent Tao Hu and Björn Ommer},
  title = {{Guiding Token-Sparse Diffusion Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=ehoek3Xqu0},
}
Figure