NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

COSMO: COntrastive Streamlined MultimOdal Model with Interleaved Pre-Training

Alex Jinpeng Wang, Linjie Li, Kevin Qinghong Lin, Jianfeng Wang, Zhengyuan Yang, Lijuan Wang, Mike Zheng ShouarXiv 2024

Abstract

In the evolution of Vision-Language Pre-training (VLP), shifting from short-text comprehension to encompassing extended textual contexts is pivotal. Recent autoregressive vision-language models, leveraging the long-context capability of Large Language Models (LLMs), have excelled in few-shot text generation tasks but face challenges in alignment tasks. Addressing this gap, we introduce the COntrastive-Streamlined MultimOdal framework (COSMO), strategically partitioning the language model into dedicated unimodal text processing and adept multimodal data handling components. COSMO merges unimodal and multimodal elements, enhancing model performance for tasks involving textual and visual data while notably reducing learnable parameters. Furthermore, we introduce Howto-Interlink7M, an inaugural interleaved video-text dataset featuring comprehensive captions. Our model demonstrates significant superiority over OpenFlamingo, achieving higher performance with only 34% of the learnable parameters.

Introduction: The Shift to In-Context Learning

The landscape of Vision-Language Pre-training is undergoing a significant transformation. Traditional models were primarily designed for short visual-text pairs, often using BERT-based architectures. However, modern requirements demand models capable of "in-context learning" — the ability to learn new tasks from a few examples provided within a long, interleaved document context.

Evolution of Vision-Language Pre-training models.

While autoregressive models like Flamingo have pioneered this space, they often struggle with the "Generation-Alignment Gap." These models are optimized for predicting the next token (generation) but may fail at tasks requiring precise cross-modal matching (alignment), such as retrieval or classification.

Methodology: Streamlining Multimodal Fusion

COSMO addresses these challenges through a "streamlined" architecture and a dual-objective training strategy.

Split Architecture

Instead of treating the LLM as a single monolithic block, COSMO partitions it. The first half of the LLM functions as a dedicated unimodal text encoder. The second half incorporates gated cross-attention layers to handle multimodal fusion. This separation allows the model to maintain strong linguistic representations while efficiently integrating visual information.

Dual Loss Function

To bridge the generation-alignment gap, COSMO is trained with a combination of standard Language Modeling Loss (next-token prediction) and Contrastive Loss. This dual objective ensures the model is proficient at both generating descriptive text and understanding the fine-grained alignment between images and words.

Efficiency via Bottlenecks

To minimize the computational overhead, the authors introduce bottlenecks in the cross-attention layers. By placing these layers only every few blocks and restricting their parameter count, COSMO achieves state-of-the-art results with just 34% of the learnable parameters compared to traditional approaches.

Datasets: Introducing Howto-Interlink7M

A major bottleneck in training interleaved VLMs is the lack of high-quality data. Existing datasets are often noisy or limited to static images. COSMO introduces Howto-Interlink7M, the first large-scale interleaved video-text dataset.

An example of interleaved video-text data from the Howto-Interlink7M dataset.

By processing the Howto100M dataset through a pipeline involving shot detection, dense captioning (via BLIP-2/GRIT), and GPT-4 synthesis, the authors created coherent narratives where multiple video clips are linked by descriptive text. This "natural" interleaving in video provides a much richer training signal than randomly scraped web pages.

Experimental Results

COSMO was evaluated across 14 diverse benchmarks, demonstrating significant gains in both efficiency and performance.

  • Parameter Efficiency: COSMO-3.4B outperforms OpenFlamingo-4B while using significantly fewer learnable parameters and less training data (72% of the available data).
  • Few-Shot Performance: In the 4-shot Flickr30k captioning task, COSMO improved performance from 57.2% to 65.1%.
  • Video-Text Tasks: The inclusion of Howto-Interlink7M led to dramatic improvements. For instance, MSVD captioning (CIDER score) jumped from 61.4 to 80.2 in a 0-shot setting.
  • Zero-Shot Alignment: Unlike previous generative VLMs, COSMO maintains strong performance on zero-shot image classification and retrieval, proving the effectiveness of the added contrastive loss.

Conclusion and Future Work

COSMO represents a significant step forward in creating efficient, high-performing multimodal models. By combining contrastive learning with a streamlined autoregressive architecture and training on high-quality interleaved video data, it overcomes the limitations of previous generation-only models. Future work will focus on scaling to longer sequence lengths and exploring higher frame-rate video processing to further enhance multimodal reasoning.

Summary updated

BibTeX
@misc{wang2024cosmo,
  author = {Alex Jinpeng Wang and Linjie Li and Kevin Qinghong Lin and Jianfeng Wang and Kevin Lin and Zhengyuan Yang and Lijuan Wang and Mike Zheng Shou},
  title = {{COSMO: COntrastive Streamlined MultimOdal Model with Interleaved Pre-Training}},
  year = {2024},
  eprint = {2401.00849},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.00849},
}
Figure