Reproduce “MaskMamba: A Hybrid Mamba-Transformer Model for Masked Image Generation” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Wenchao Chen, Liqiang Niu, Ziyao Lu, Fandong Meng, Jie Zhou

MASKMAMBA, a hybrid Mamba-Transformer model from WeChat AI, Tencent Inc., advances non-autoregressive masked image generation by outperforming Transformer-XL in FID scores and enhancing efficiency. The model achieves 1.5 times faster inference at 2048x2048 resolution and significantly reduces GPU memory usage compared to pure Transformer architectures.

Key insights

  • Hybrid architectures effectively combine Mamba's linear-time complexity with Transformer's global context modeling to improve both generation quality and computational efficiency for image synthesis.
  • Optimal performance is achieved by placing Transformer layers in the later stages of the model (serial scheme v2) and locating conditional embeddings in the middle of the input sequence.
  • Modifications to the Mamba architecture, such as enabling bidirectional context through standard convolutions and using concatenation in SSM branches, are crucial for its effective application in masked image generation.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.