DiM: Diffusion Mamba for Efficient High-Resolution Image Synthesis

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Teng, Yao, Wu, Yue, Shi, Han, Ning, Xuefei, Dai, Guohao, Wang, Yu, Li, Zhenguo, Liu, Xihui
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914864028450816
author Teng, Yao
Wu, Yue
Shi, Han
Ning, Xuefei
Dai, Guohao
Wang, Yu
Li, Zhenguo
Liu, Xihui
author_facet Teng, Yao
Wu, Yue
Shi, Han
Ning, Xuefei
Dai, Guohao
Wang, Yu
Li, Zhenguo
Liu, Xihui
contents 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\times 256$) and then finetune it on high-resolution images ($512 \times 512$). We further explore training-free upsampling strategies to enable the model to generate higher-resolution images (e.g., $1024\times 1024$ and $1536\times 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/}}.
format Preprint
id arxiv_https___arxiv_org_abs_2405_14224
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle DiM: Diffusion Mamba for Efficient High-Resolution Image Synthesis
Teng, Yao
Wu, Yue
Shi, Han
Ning, Xuefei
Dai, Guohao
Wang, Yu
Li, Zhenguo
Liu, Xihui
Computer Vision and Pattern Recognition
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\times 256$) and then finetune it on high-resolution images ($512 \times 512$). We further explore training-free upsampling strategies to enable the model to generate higher-resolution images (e.g., $1024\times 1024$ and $1536\times 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/}}.
title DiM: Diffusion Mamba for Efficient High-Resolution Image Synthesis
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2405.14224