TL;DR
This paper introduces Diffusion State Space Models (DiS), a novel architecture that replaces the traditional U-Net or Transformer backbone in diffusion models with a bidirectional State Space Model (SSM). DiS achieves state-of-the-art image generation quality (e.g., 2.10 FID on ImageNet 256x256) while offering superior scalability and significantly lower computational overhead compared to Transformer-based models.
What Problem Does This Paper Address?
Diffusion models have revolutionized generative AI, but their efficiency is heavily tied to their "backbone"—the neural network responsible for predicting noise. Traditionally, this has been a CNN-based U-Net. Recently, Transformer-based backbones (like DiT) have shown better scalability but come with a major drawback: the self-attention mechanism scales quadratically ($O(N^2)$) with the number of input tokens (image patches).
As we push toward higher-resolution images or "gigapixel" applications, this quadratic cost becomes a massive bottleneck. The authors ask: Can we build a diffusion backbone using State Space Models (SSMs) that scales linearly ($O(N)$) while maintaining or exceeding the generation quality of Transformers?
Methods
The authors propose DiS, which treats image generation as a sequence modeling task using a bidirectional version of the Mamba architecture.
- Tokenization: Similar to Vision Transformers, DiS "patchnifies" the input (either raw pixels or latent representations from a VAE). Every input—noisy image patches, time steps, and class conditions—is treated as a discrete token.
- Bidirectional SSM Blocks: While standard SSMs (like Mamba) are causal and process sequences in one direction (ideal for text), images are spatial. DiS employs bidirectional SSM blocks that process hidden state sequences in both forward and backward directions to capture full spatial context.
- Long Skip Connections: The architecture uses a "U-shaped" logic by categorizing blocks into shallow and deep groups, then using long skip connections (specifically via concatenation and linear projection) to link them.
- Conditioning: The authors found that simply prepending time and condition embeddings as tokens (prefix conditioning) was more effective than more complex methods like Adaptive Layer Normalization (AdaLN).
Datasets
The models were rigorously tested across several standard benchmarks:
- Unconditional Generation: CIFAR-10 (32x32) and CelebA (64x64).
- Class-Conditional Generation: ImageNet at 256x256 and 512x512 resolutions.
Key Insights and Ideas
- Linear Complexity is the Future: The theoretical analysis confirms that while Transformers struggle with long sequences, SSMs remain efficient. This makes DiS a prime candidate for high-resolution synthesis where token counts are high.
- The "Low-Level" Advantage: The authors observed that smaller patch sizes (which increase the total number of tokens) significantly improve performance. They hypothesize this is because noise prediction is inherently a low-level vision task that benefits from the finer granularity provided by smaller patches.
- Skip Connections are Critical: Ablation studies showed that adding long skip connections between shallow and deep layers drastically accelerates training and optimizes the final FID score.
Key Results
DiS demonstrates impressive empirical performance, often outperforming much heavier models:
- ImageNet 256x256: DiS-H/2 (the "Huge" configuration) achieved an FID of 2.10, surpassing the Transformer-based DiT-XL/2 (2.27) and the U-ViT (2.29).
- ImageNet 512x512: It achieved an FID of 2.88, outperforming established models like ADM-G.
- Efficiency: On smaller datasets like CIFAR-10, DiS achieved comparable results to U-Net and Transformer models while using approximately 50% fewer parameters.
- Scaling Laws: The paper clearly demonstrates that as you increase Gflops (by making the model deeper, wider, or using more tokens), the image quality (FID) consistently improves without hitting a plateau.
Limitations and Future Work
While the results are strong, the authors note that:
- Convergence: In some scaling experiments, the models had not yet fully converged, suggesting that even better performance could be reached with longer training.
- Future Scaling: The next logical step is scaling DiS to even larger parameter counts and much higher token counts to fully exploit the linear scaling of the SSM backbone.
- Cross-Modality: Exploring how this architecture handles multi-modal data (like text-to-image) is a promising future direction.
Summary updated