LightningDOT: Pre-training Visual-Semantic Embeddings for Real-Time Image-Text Retrieval

Siqi Sun, Yen-Chun Chen, Linjie Li, Shuohang Wang, Yuwei Fang +1 more
3/16/2021
94 citations
cs.CLcs.CV

Official code: intersun/LightningDOT (72 stars, Python, MIT, PyTorch, last commit 2022-11-14).

Abstract

Multimodal pre-training has propelled great advancement in vision-and-language research. These large-scale pre-trained models, although successful, fatefully suffer from slow inference speed due to enormous computation cost mainly from cross-modal attention in Transformer architecture.

Show full abstract

When applied to real-life applications, such latency and computation demand severely deter the practical use of pre-trained models. In this paper, we study Image-text retrieval (ITR), the most mature scenario of V+L application, which has been widely studied even prior to the emergence of recent pre-trained models. We propose a simple yet highly effective approach, LightningDOT that accelerates the inference time of ITR by thousands of times, without sacrificing accuracy. LightningDOT removes the time-consuming cross-modal attention by pre-training on three novel learning objectives, extracting feature indexes offline, and employing instant dot-product matching with further re-ranking, which significantly speeds up retrieval process. In fact, LightningDOT achieves new state of the art across multiple ITR benchmarks such as Flickr30k, COCO and Multi30K, outperforming existing pre-trained models that consume 1000x magnitude of computational hours. Code and pre-training checkpoints are available at https://github.com/intersun/LightningDOT.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

source code and pre-trained/fine-tuned checkpoint for NAACL 2021 paper LightningDOT

728Python, ShellMar 15, 20214 years agoMIT
image-retrievalnaacl2021pytorchtransformersvision-and-language

Similar Papers

Cite this paper

@article{sun2021lightningdot,
  title  = {LightningDOT: Pre-training Visual-Semantic Embeddings for Real-Time Image-Text Retrieval},
  author = {Siqi Sun and Yen-Chun Chen and Linjie Li and Shuohang Wang and Yuwei Fang and Jingjing Liu},
  year   = {2021},
  eprint = {2103.08784},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.08784}
}

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/2103.08784.svg)](https://codeofpaper.com/paper/2103.08784)

Discussion