ZigMa: A DiT-style Zigzag Mamba Diffusion Model

Vincent Tao Hu, Stefan Andreas Baumann, Ming Gui, Olga Grebenkova, Pingchuan Ma +2 more
3/20/2024
cs.CVcs.AIcs.CL

No official code found. Best implementation: CompVis/zigma (351 stars, Apache-2.0, last commit 2025-03-17).

Abstract

The diffusion model has long been plagued by scalability and quadratic complexity issues, especially within transformer-based structures. In this study, we aim to leverage the long sequence modeling capability of a State-Space Model called Mamba to extend its applicability to visual data generation. Firstly, we identify a critical oversight in most current Mamba-based vision methods, namely the lack of consideration for spatial continuity in the scan scheme of Mamba. Secondly, building upon this insight, we introduce a simple, plug-and-play, zero-parameter method named Zigzag Mamba, which outperforms Mamba-based baselines and demonstrates improved speed and memory utilization compared to transformer-based baselines. Lastly, we integrate Zigzag Mamba with the Stochastic Interpolant framework to investigate the scalability of the model on large-resolution visual datasets, such as FacesHQ $1024\times 1024$ and UCF101, MultiModal-CelebA-HQ, and MS COCO $256\times 256$ . Code will be released at https://taohu.me/zigma/

View on arXivView PDF

Code Implementations(1)

CompVis/zigmaCommunity100%
Apache-2.0

A PyTorch implementation of the paper "ZigMa: A DiT-Style Mamba-based Diffusion Model" (ECCV 2024)

35122C, C++Mar 21, 20241 years agoApache-2.0
diffusion-modelsflow-matchingmambastate-space-modelstochastic-interpolant+1 more

Similar Papers

Cite this paper

@article{hu2024zigma,
  title  = {ZigMa: A DiT-style Zigzag Mamba Diffusion Model},
  author = {Vincent Tao Hu and Stefan Andreas Baumann and Ming Gui and Olga Grebenkova and Pingchuan Ma and Johannes Schusterbauer and Björn Ommer},
  year   = {2024},
  eprint = {2403.13802},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.13802v3},
  journal = {ECCV 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.13802.svg)](https://codeofpaper.com/paper/2403.13802)

Discussion