mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections

Chenliang Li, Haiyang Xu, Junfeng Tian, Wei Wang, Ming Yan, Bin Bi, Jiabo Ye, Hehong Chen, Guohai Xu, Zheng Cao, Ji Zhang, Songfang Huang, Fei Huang, Jingren Zhou, Luo SiEMNLP 2022 · DOI

TL;DR

This paper introduces mPLUG, a novel vision-language model that tackles the challenges of computational inefficiency and information asymmetry in cross-modal learning. By employing "cross-modal skip-connections," mPLUG achieves state-of-the-art performance on various vision-language tasks while significantly speeding up training and inference.

What Problem Does This Paper Address?

Large-scale pre-trained vision-language models have shown great promise, but they often struggle with two main issues:

  1. Computational Inefficiency: Processing long visual sequences (like high-resolution images) with full self-attention is computationally expensive.
  2. Information Asymmetry: Textual descriptions are often concise, while images contain a wealth of detailed information. Existing models can struggle to effectively bridge this gap, leading to suboptimal fusion of modalities.

Previous approaches have either used computationally heavy object detectors to extract salient image regions or relied on full self-attention across concatenated visual and textual features, both leading to inefficiencies. Other methods use separate encoders with cross-attention but still face computational bottlenecks.

Methods

mPLUG introduces a new architecture featuring cross-modal skip-connections to address these problems. The core ideas are:

  • Asymmetric Co-Attention: The model uses an asymmetric co-attention mechanism in its fusion blocks. This means it doesn't always apply full cross-attention between modalities at every layer. Instead, it prioritizes certain interactions, reducing computational load.
  • Skip-Connections: These connections act as shortcuts, allowing information to bypass a certain number of layers. This helps alleviate vanishing gradients during training and, crucially, allows for more flexible fusion at different levels of abstraction across modalities. This is particularly useful for handling the information asymmetry between images and text.
  • Unified Architecture: mPLUG is designed for both vision-language understanding (e.g., VQA, retrieval) and generation (e.g., image captioning) tasks.
  • Pre-training Objectives: The model is pre-trained end-to-end on a combination of discriminative (Image-Text Contrastive - ITC, Image-Text Matching - ITM) and generative (Masked Language Modeling - MLM, Prefix Language Modeling - PrefixLM) objectives.

Datasets

Training: * MS COCO * Visual Genome * Conceptual Captions * Conceptual 12M * SBU Captions

Evaluation: * Image Captioning: COCO Caption, NoCaps * Visual Question Answering (VQA): VQA2.0, Visual Genome * Image-Text Retrieval: MS COCO, Flickr30K * Visual Grounding: RefCOCO, RefCOCO+, RefCOCOg * Visual Reasoning: NLVR2, SNLI-VE * Video-Language Tasks (Zero-shot): MSRVTT (retrieval, QA, caption), MSVD-QA, VATEX-Cap

Key Insights and Ideas

  • Skip-connections are key for efficiency and effectiveness: The paper demonstrates that strategically skipping layers in the cross-modal fusion process significantly reduces computation without sacrificing (and often improving) performance. This is a powerful insight for building more scalable multimodal models.
  • Addressing information asymmetry is crucial: By allowing fusion at disparate levels, the skip-connections help the model better leverage the rich information in images while aligning it with concise text, tackling a fundamental challenge in V+L tasks.
  • Asymmetric attention is a smart trade-off: Using asymmetric co-attention in the initial layers provides a computational advantage, showing that not all cross-modal interactions need to be equally complex.
  • Zero-shot transferability is impressive: mPLUG shows strong generalization to video-language tasks without any specific video pre-training, highlighting the robustness of its learned representations.

Key Results

  • State-of-the-art performance: mPLUG achieves SOTA results on a wide range of vision-language tasks, including image captioning, VQA, and image-text retrieval, often outperforming models trained on significantly more data.
  • Significant speedup: The cross-modal skip-connected network achieves up to 4x speedup compared to traditional fusion methods like co-attention and connected-attention, with comparable or better performance.
  • Improved efficiency: Through techniques like ZeRO and gradient checkpointing, mPLUG achieves a 3x increase in training throughput.
  • Strong zero-shot capabilities: mPLUG demonstrates competitive zero-shot performance on video-language tasks, even outperforming models specifically pre-trained on video data. For example, on VQA, mPLUG achieves 81.27 on Test-std, outperforming models trained on 100x more data.

Limitations and Future Work

  • Stride value optimization: While the paper explores different stride values (S), finding the optimal balance between efficiency and performance might require further tuning for specific tasks or architectures. The paper suggests setting S=6 for mPLUG-ViT-L for faster pre-training.
  • Further exploration of skip-connection strategies: The paper focuses on a specific implementation of skip-connections. Future work could explore other ways to integrate these shortcuts for even greater efficiency and effectiveness.
  • Video-language tasks: While mPLUG shows promising zero-shot transfer to video tasks, dedicated pre-training on video data could potentially unlock even higher performance.

Summary updated

BibTeX
@misc{li2022mplug,
  author = {Chenliang Li and Haiyang Xu and Junfeng Tian and Wei Wang and Ming Yan and Bin Bi and Jiabo Ye and Hehong Chen and Guohai Xu and Zheng Cao and Ji Zhang and Songfang Huang and Fei Huang and Jingren Zhou and Luo Si},
  title = {{mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections}},
  year = {2022},
  eprint = {2205.12005},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.12005},
}
Figure