Align before Fuse: Vision and Language Representation Learning with Momentum Distillation

Junnan Li, Ramprasaath R. Selvaraju, Akhilesh Deepak Gotmare, Shafiq Joty, Caiming Xiong +1 more
7/16/2021
cs.CVcs.AI

Official code: salesforce/ALBEF (1,753 stars, BSD-3-Clause, last commit 2022-09-20). 1 more implementation below.

Abstract

Large-scale vision and language representation learning has shown promising improvements on various vision-language tasks. Most existing methods employ a transformer-based multimodal encoder to jointly model visual tokens (region-based image features) and word tokens. Because the visual tokens and word tokens are unaligned, it is challenging for the multimodal encoder to learn image-text interactions. In this paper, we introduce a contrastive loss to ALign the image and text representations BEfore Fusing (ALBEF) them through cross-modal attention, which enables more grounded vision and language representation learning. Unlike most existing methods, our method does not require bounding box annotations nor high-resolution images. In order to improve learning from noisy web data, we propose momentum distillation, a self-training method which learns from pseudo-targets produced by a momentum model. We provide a theoretical analysis of ALBEF from a mutual information maximization perspective, showing that different training tasks can be interpreted as different ways to generate views for an image-text pair. ALBEF achieves state-of-the-art performance on multiple downstream vision-language tasks. On image-text retrieval, ALBEF outperforms methods that are pre-trained on orders of magnitude larger datasets. On VQA and NLVR$^2$, ALBEF achieves absolute improvements of 2.37% and 3.84% compared to the state-of-the-art, while enjoying faster inference speed. Code and pre-trained models are available at https://github.com/salesforce/ALBEF/.

View on arXivView PDF

Code Implementations(2)

salesforce/ALBEFOfficial100%
BSD-3-Clause

Code for ALBEF: a new vision-language pre-training method

1,753222Python, Jupyter NotebookJul 13, 20214 years agoBSD-3-Clause
contrastive-learningimage-textrepresentation-learningvision-and-languageweakly-supervised-learning
salesforce/LAVISCommunity100%
BSD-3-Clause

LAVIS - A One-stop Library for Language-Vision Intelligence

11,2611,108Shell, PythonAug 24, 20221 years agoBSD-3-Clause
deep-learningdeep-learning-libraryimage-captioningmultimodal-datasetsmultimodal-deep-learning+6 more

Similar Papers

Cite this paper

@article{li2021align,
  title  = {Align before Fuse: Vision and Language Representation Learning with Momentum Distillation},
  author = {Junnan Li and Ramprasaath R. Selvaraju and Akhilesh Deepak Gotmare and Shafiq Joty and Caiming Xiong and Steven Hoi},
  year   = {2021},
  eprint = {2107.07651},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.07651}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.07651.svg)](https://codeofpaper.com/paper/2107.07651)

Discussion