Papers › DiM: Diffusion Mamba for Efficient High-Resolution Image Synthesis

DiM: Diffusion Mamba for Efficient High-Resolution Image Synthesis

23 May 2024arXiv:2405.14224archive 2025-07-28

Yao Teng, Yue Wu, Han Shi, Xuefei Ning, Guohao Dai, Yu Wang, Zhenguo Li, Xihui Liu

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×256) and then finetune it on high-resolution images (512 ×512). We further explore training-free upsampling strategies to enable the model to generate higher-resolution images (e.g., 1024×1024 and 1536×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/}}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.14224")

Code

Syntology Ran 6 of 9 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 5 ran with no contract checked.

By repository: official repository: 9 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tyshiwo1/dim-diffusionmamba officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 6 ran; 1 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
5ran
3unverified

Licence: 9 of the 9 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from tyshiwo1/dim-diffusionmamba. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

interpolate_fn tyshiwo1/dim-diffusionmamba/dpm_solver_pp.py official repository ran fingerprinted no licence file found · pointer only · 86c7877e164664bc · report
model_wrapper tyshiwo1/dim-diffusionmamba/dpm_solver_pp.py official repository ran no licence file found · pointer only · 18e2f1d8dba04a34 · report
model_wrapper tyshiwo1/dim-diffusionmamba/dpm_solver_pytorch.py official repository ran no licence file found · pointer only · 876b54273bf5ba75 · report
mos tyshiwo1/dim-diffusionmamba/sde.py official repository ran no licence file found · pointer only · f3e8a4d9233487be · report
stable_diffusion_beta_schedule tyshiwo1/dim-diffusionmamba/eval_ldm_discrete.py official repository ran · honoured contract no licence file found · pointer only · 2ee6e353f1dd4cf3 · report
stp tyshiwo1/dim-diffusionmamba/eval_ldm_discrete.py official repository ran no licence file found · pointer only · 22379353b48c046e · report
get_sde tyshiwo1/dim-diffusionmamba/sde.py official repository unverified no licence file found · pointer only · 62391afb6538762f · report
get_skip tyshiwo1/dim-diffusionmamba/eval_ldm_discrete.py official repository unverified no licence file found · pointer only · 4423f3550826f012 · report
stp tyshiwo1/dim-diffusionmamba/sde.py official repository unverified no licence file found · pointer only · 4d33c2f525f1b1c0 · report

Tasks

Image GenerationMambaState Space Models

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Concatenated Skip ConnectionConvolutionDiffusionMax PoolingReLUU-Net

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections