Skip to main content
QUICK REVIEW

[Paper Review] Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts

Basil Mustafa, Carlos Riquelme|arXiv (Cornell University)|Jun 6, 2022
Multimodal Machine Learning ApplicationsComputer Science72 citations
TL;DR

LIMoE trains a single sparse mixture-of-experts Transformer backbone to learn multimodal (image and text) representations with a contrastive loss, achieving strong zero-shot ImageNet performance and efficient scaling compared to dense baselines.

ABSTRACT

Large sparsely-activated models have obtained excellent performance in multiple domains. However, such models are typically trained on a single modality at a time. We present the Language-Image MoE, LIMoE, a sparse mixture of experts model capable of multimodal learning. LIMoE accepts both images and text simultaneously, while being trained using a contrastive loss. MoEs are a natural fit for a multimodal backbone, since expert layers can learn an appropriate partitioning of modalities. However, new challenges arise; in particular, training stability and balanced expert utilization, for which we propose an entropy-based regularization scheme. Across multiple scales, we demonstrate remarkable performance improvement over dense models of equivalent computational cost. LIMoE-L/16 trained comparably to CLIP-L/14 achieves 78.6% zero-shot ImageNet accuracy (vs. 76.2%), and when further scaled to H/14 (with additional data) it achieves 84.1%, comparable to state-of-the-art methods which use larger custom per-modality backbones and pre-training schemes. We analyse the quantitative and qualitative behavior of LIMoE, and demonstrate phenomena such as differing treatment of the modalities and the organic emergence of modality-specific experts.

Motivation & Objective

  • Motivate and develop a sparse mixture-of-experts backbone that can process both images and text in a single model.
  • Stabilize multimodal MoE routing with entropy-based regularizers to prevent expert collapse and modality misbalance.
  • Demonstrate that LIMoE scales across model sizes and data, outperforming FLOP-matched dense baselines in zero-shot and retrieval tasks.
  • Show qualitative and quantitative analyses of how modalities are treated by the model and how modality-specific vs multimodal experts emerge.

Proposed method

  • Use a single Transformer-based backbone for both image and text modalities with modality-specific input projections and a shared encoder.
  • Introduce sparse MoE layers where each token is processed by K out of E experts via a gating router.
  • Apply entropy-based auxiliary losses (local entropy per token and global entropy across experts per modality) to stabilize routing and encourage diverse yet confident expert usage.
  • Incorporate Batch Priority Routing (BPR) to stabilize training and reduce token dropping during routing.
  • Train using a multimodal contrastive loss that aligns image and text representations, with per-modality linear projections before computing the contrastive objective.
  • Scale experiments from dense baselines to LIMoE variants across model sizes (including LIMoE-H/14 with 5.6B total parameters and 675M per token) and data.

Experimental results

Research questions

  • RQ1Can a single, sparse mixture-of-experts backbone effectively learn aligned image and text representations via contrastive learning?
  • RQ2What auxiliary losses and routing strategies are needed to stabilize multimodal MoE training and prevent modality misbalance or expert collapse?
  • RQ3How does LIMoE perform relative to FLOP-matched dense baselines across scales on zero-shot ImageNet, retrieval (MS-COCO), and linear probing tasks?
  • RQ4What is the behavior of modality-specific vs multimodal experts, and how does routing evolve across layers?
  • RQ5Does LIMoE maintain performance when scaling data, model size, and training objectives to large-scale setups?

Key findings

  • LIMoE achieves strong zero-shot ImageNet performance, reaching 78.6% with LIMoE-L/16 (vs 76.2% for CLIP-L/14) and 84.1% with LIMoE-H/14, on par with state-of-the-art methods using larger modality-specific backbones.
  • Across scales, LIMoE yields relative improvements of 7% to 13% in zero-shot accuracy over equivalent dense models, and dominates the cost-performance frontier versus dense baselines.
  • Large-scale LIMoE (5.6B parameters, 675M active per token) trained on 3.6B paired image-text examples (plus JFT-4B data for the largest run) demonstrates competitive zero-shot ImageNet performance without modality-specific pretraining.
  • Entropy-based regularizers (local and global entropy losses) address multimodal routing challenges, enabling stable training and diverse yet confident expert utilization; Batch Priority Routing (BPR) further stabilizes training and improves routing success rates.
  • Qualitative and quantitative analyses show emergence of modality-specific and multimodal experts, with some experts specializing in low-level features (colors, lines) and others in high-level semantics (faces/text); routing behavior can vary by layer and modality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.