DiMSUM: Diffusion Mamba -- A Scalable and Unified Spatial-Frequency Method for Image Generation
Hao Phung, Quan Dao, Trung Dao, Hoang Phan, Dimitris Metaxas, Anh Tran
TL;DR
DiMSUM introduces a scalable diffusion architecture that merges spatial processing in Mamba with wavelet-based frequency analysis to better capture local structure and long-range frequency relations in images. By embedding frequency subbands via Wavelet Mamba and fusing them with spatial features through a cross-attention layer, plus augmenting with a globally-shared transformer, the method reduces inductive bias from fixed scanning orders while preserving global context. Empirical results on CelebA-HQ, LSUN Church, and ImageNet demonstrate state-of-the-art FID and recall with faster convergence and competitive parameter counts. This hybrid spatial-frequency diffusion approach advances image generation by leveraging multi-scale frequency information and efficient long-range modeling, with potential for broader diffusion and multimodal tasks.
Abstract
We introduce a novel state-space architecture for diffusion models, effectively harnessing spatial and frequency information to enhance the inductive bias towards local features in input images for image generation tasks. While state-space networks, including Mamba, a revolutionary advancement in recurrent neural networks, typically scan input sequences from left to right, they face difficulties in designing effective scanning strategies, especially in the processing of image data. Our method demonstrates that integrating wavelet transformation into Mamba enhances the local structure awareness of visual inputs and better captures long-range relations of frequencies by disentangling them into wavelet subbands, representing both low- and high-frequency components. These wavelet-based outputs are then processed and seamlessly fused with the original Mamba outputs through a cross-attention fusion layer, combining both spatial and frequency information to optimize the order awareness of state-space models which is essential for the details and overall quality of image generation. Besides, we introduce a globally-shared transformer to supercharge the performance of Mamba, harnessing its exceptional power to capture global relationships. Through extensive experiments on standard benchmarks, our method demonstrates superior results compared to DiT and DIFFUSSM, achieving faster training convergence and delivering high-quality outputs. The codes and pretrained models are released at https://github.com/VinAIResearch/DiMSUM.git.
