MoCa: Modality-aware Continual Pre-training Makes Better Bidirectional Multimodal Embeddings

Haonan Chen, Hong Liu, Yuping Luo, Liang Wang, Nan Yang, Furu Wei, Zhicheng Dou

TL;DR

This paper introduces MoCa, a two-stage framework that significantly improves multimodal embedding models by adapting pre-trained Vision-Language Models (VLMs). MoCa leverages modality-aware continual pre-training with a novel joint reconstruction objective and heterogeneous contrastive fine-tuning on diverse data, achieving state-of-the-art results on key benchmarks.

What Problem Does This Paper Address?

Current multimodal embedding models, often built on Vision-Language Models (VLMs), face several limitations. Firstly, they typically inherit "causal attention" from their VLM backbones, which is suboptimal for embedding tasks compared to "bidirectional attention" that considers context from both directions. Secondly, training these models often relies on large, high-quality labeled image-text pairs for contrastive learning, which is expensive to scale and cannot leverage the vast amount of unlabeled multimodal data available. Finally, the limited diversity in training objectives and data can lead to models that overfit to specific data distributions and struggle to generalize.

Methods

MoCa tackles these issues with a two-stage approach:

  1. Modality-aware Continual Pre-training (CPT): This stage adapts pre-trained VLMs to become effective bidirectional encoders. It introduces a novel joint reconstruction objective that simultaneously denoises interleaved text and image inputs. For text, it uses Masked Language Modeling (MLM), and for images, it employs Masked Autoencoding (MAE). This forces the model to learn bidirectional context-aware reasoning across modalities, even with unlabeled data.
  2. Heterogeneous Contrastive Fine-tuning (CL): After CPT, the model is fine-tuned using a contrastive loss. Crucially, MoCa uses diverse, semantically rich multimodal data beyond simple image-caption pairs. This includes:
  3. Long-form multimodal pairs: Document-level data with extended text and images for complex reasoning.
  4. Curated multimodal pairs: Diverse image-text alignments from existing datasets.
  5. Text-only pairs: To enhance linguistic representations. The paper also introduces task-aware batching to create more effective in-batch negatives for heterogeneous data.

Datasets

  • Training Data for CPT: The paper uses a combination of text-only data (DCLM), common image-text pairs (PixelProse, CC12M, RedCaps, MAmmoTH-VL-Instruct, MMEB training set), and document-level multimodal data (DocMatix, VisRAG, ColPali training set). This amounts to approximately 30 billion tokens.
  • Training Data for CL: For fine-tuning, MoCa uses long-form multimodal pairs (VisRAG, ViDoRe training set), common multimodal pairs (MMEB, mmE5), and text-only pairs (E5 dataset), totaling around 2 million contrastive training pairs.
  • Evaluation Benchmarks:
    • MMEB (Massive Multimodal Embedding Benchmark): A comprehensive benchmark with 36 tasks across classification, VQA, retrieval, and visual grounding.
  • ViDoRe-v2: A benchmark for visually rich document retrieval.

Key Insights and Ideas

  • Bidirectional Attention is Key for Embeddings: The paper strongly advocates for bidirectional attention mechanisms in multimodal embedding models, showing they outperform causal attention.
  • Continual Pre-training with Joint Reconstruction is Scalable: The CPT stage effectively leverages massive unlabeled data by using a joint denoising objective (MLM + MAE), overcoming the scalability limitations of purely contrastive learning on labeled pairs.
  • Data Diversity is Crucial for Generalization: Fine-tuning with a wide range of multimodal data, including long-form documents and text-only pairs, significantly improves the model's ability to generalize to diverse tasks and domains.
  • CPT Boosts Bidirectional Models: The CPT stage is essential for unlocking the full potential of bidirectional architectures, making them performant even with smaller model sizes.

Key Results

  • MoCa consistently outperforms existing baselines on both the MMEB and ViDoRe-v2 benchmarks, achieving new state-of-the-art results on MMEB.
  • A 3B parameter MoCa model, after CPT, surpasses the performance of competitive 7B baselines trained only with contrastive learning.
  • Scaling MoCa to a 7B parameter model leads to substantial improvements across all MMEB task categories, demonstrating strong scalability with model size.
  • The paper shows that increasing the number of CPT steps leads to consistent downstream performance improvements, indicating that further scaling of CPT data and steps can yield even better results.

Limitations and Future Work

  • Future Modalities: The authors suggest extending CPT to incorporate more modalities like video, speech, or structured data to enhance embedding generality.
  • Advanced Objectives: Exploring more advanced denoising objectives or unified encoder-decoder architectures could further improve the efficiency and representation quality of bidirectional multimodal models.
  • Complex Scenarios: Evaluating MoCa on more complex real-world applications, such as multi-hop retrieval or interleaved-input scenarios, would further validate its robustness.
  • Computational Constraints: While findings suggest further scaling of CPT is beneficial, current computational resources limit extensive exploration.

Summary updated

BibTeX
@inproceedings{chen2026moca,
  author = {Haonan Chen and Hong Liu and Yuping Luo and Liang Wang and Nan Yang and Furu Wei and Zhicheng Dou},
  title = {{MoCa: Modality-aware Continual Pre-training Makes Better Bidirectional Multimodal Embeddings}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.34},
}
Figure