Reproduce “MoMa: Efficient Early-Fusion Pre-training with Mixture of Modality-Aware Experts” 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

Xi Victoria Lin, Akshat Shrivastava, Liang Luo, Srinivasan Iyer, Mike Lewis, Gargi Ghosh, Luke Zettlemoyer, Armen Aghajanyan

Meta FAIR researchers developed MoMa, a new sparse architecture for pre-training large-scale mixed-modal language models that categorizes Mixture-of-Experts (MoE) into modality-specific groups for text and image. This approach achieved up to 3.7x FLOPs savings during pre-training while maintaining strong performance on various downstream tasks compared to dense models.

Key insights

  • Explicitly leveraging modality heterogeneity through modality-aware expert specialization (MoMa) significantly enhances pre-training efficiency for early-fusion mixed-modal models.
  • Combining width-wise (MoMa) and depth-wise (MoD) sparsity offers further FLOPs savings during pre-training, though MoD's benefits are sensitive to auxiliary router accuracy during inference.
  • An upcycling strategy, where a simpler sparse model is initially trained and then expanded, improves the stability and effectiveness of learned routing mechanisms.

Summary by alphaXiv.

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