[Paper Review] DiM: Diffusion Mamba for Efficient High-Resolution Image Synthesis
This paper proposes Diffusion Mamba (DiM), a novel Mamba-based backbone for efficient high-resolution image generation that overcomes the quadratic complexity of Transformers by leveraging State Space Models. By introducing multi-directional scanning, learnable padding tokens, and local feature enhancement, DiM achieves state-of-the-art FID scores (2.40 on ImageNet 512×512) with significantly reduced FLOPs, while enabling training-free upsampling to 1536×1536 resolution.
Diffusion models have achieved great success in image generation, with the backbone evolving from U-Net to Vision Transformers. However, the computational cost of Transformers is quadratic to the number of tokens, leading to significant challenges when dealing with high-resolution images. In this work, we propose Diffusion Mamba (DiM), which combines the efficiency of Mamba, a sequence model based on State Space Models (SSM), with the expressive power of diffusion models for efficient high-resolution image synthesis. To address the challenge that Mamba cannot generalize to 2D signals, we make several architecture designs including multi-directional scans, learnable padding tokens at the end of each row and column, and lightweight local feature enhancement. Our DiM architecture achieves inference-time efficiency for high-resolution images. In addition, to further improve training efficiency for high-resolution image generation with DiM, we investigate "weak-to-strong" training strategy that pretrains DiM on low-resolution images ($256 imes 256$) and then finetune it on high-resolution images ($512 imes 512$). We further explore training-free upsampling strategies to enable the model to generate higher-resolution images (e.g., $1024 imes 1024$ and $1536 imes 1536$) without further fine-tuning. Experiments demonstrate the effectiveness and efficiency of our DiM. The code of our work is available here: {\url{https://github.com/tyshiwo1/DiM-DiffusionMamba/}}.
Motivation & Objective
- To address the high computational cost of Transformer-based diffusion models in high-resolution image generation.
- To adapt Mamba, a linear-complexity sequence model, for 2D image data, which is inherently designed for 1D sequential modeling.
- To improve training efficiency for high-resolution image generation by proposing a 'weak-to-strong' fine-tuning strategy.
- To enable high-resolution image generation beyond fine-tuned resolution using training-free upsampling techniques.
Proposed method
- Adapt Mamba for 2D image tokens by employing multi-directional scanning (row-major, column-major, and reverse scans) to provide global receptive fields.
- Introduce learnable padding tokens between spatially adjacent but sequence-discontinuous tokens (e.g., end of row and start of next row) to preserve spatial continuity.
- Integrate lightweight 3×3 depth-wise convolution layers at input and output heads to enhance local feature coherence.
- Apply long skip connections between shallow and deep layers to improve pixel-level reconstruction in diffusion denoising.
- Implement a 'weak-to-strong' training strategy: pretrain on 256×256 images and fine-tune on 512×512 images to reduce training cost.
- Explore training-free upsampling by leveraging the model’s generalization capability after fine-tuning on 512×512, enabling direct generation at 1024×1024 and 1536×1536 without further tuning.

Experimental results
Research questions
- RQ1Can Mamba, a linear-complexity sequence model, effectively replace Transformers in diffusion models for high-resolution image generation?
- RQ2How can Mamba’s 1D causal modeling be adapted to preserve 2D spatial structure in image tokens?
- RQ3Does a 'weak-to-strong' fine-tuning strategy significantly reduce training cost for high-resolution diffusion models?
- RQ4Can DiM generate high-resolution images (e.g., 1024×1024 and 1536×1536) without additional fine-tuning using training-free upsampling?
- RQ5What architectural components (e.g., multi-scan, padding tokens, local convolutions) are most critical for performance and stability?
Key findings
- DiM-Huge achieves an FID score of 2.40 on ImageNet 512×512 using only 319 million training samples, comparable to U-ViT despite using 37% less data.
- With 15 million 512×512 images (3% of U-ViT’s data), DiM-Huge achieves 3.94 FID-50K, demonstrating high data efficiency.
- The multi-directional scanning strategy (four directions) yields the best performance, reducing FID by 1.48 points compared to single-direction scanning.
- The ablation study confirms that multiple scanning directions contribute most to performance, followed by long skip connections and padding tokens.
- DiM generates visually plausible 1024×1024 and 1536×1536 images directly from a 512×512-fine-tuned model using training-free upsampling, without further fine-tuning.
- DiM-Small achieves a FID of 2.92 on CIFAR-10, outperforming other models with similar parameter count, confirming strong performance at scale.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.