Skip to main content
QUICK REVIEW

[Paper Review] LightningDOT: Pre-training Visual-Semantic Embeddings for Real-Time Image-Text Retrieval

Siqi Sun, Yen-Chun Chen|arXiv (Cornell University)|Mar 16, 2021
Multimodal Machine Learning ApplicationsComputer Science50 references6 citations
TL;DR

LightningDOT proposes a fast, accurate image-text retrieval method that replaces computationally expensive cross-attention with efficient dot-product matching by pre-training visual and text encoders using three novel objectives: VMLM, SMRM, and CMR. It achieves state-of-the-art performance on Flickr30k, COCO, and Multi30K benchmarks while accelerating inference by up to 23,000× compared to existing pre-trained models.

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. 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.

Motivation & Objective

  • To address the high inference latency of large-scale vision-and-language pre-trained models, which limits real-time deployment.
  • To explore whether simple dot-product matching can achieve competitive performance without cross-attention mechanisms.
  • To develop a pre-training framework that enables fast, cached retrieval using offline-learned visual-semantic embeddings.
  • To maintain or improve accuracy despite removing cross-modal attention, through novel pre-training objectives.
  • To establish a new SOTA in image-text retrieval with minimal computational cost during inference.

Proposed method

  • Pre-trains separate visual and text encoders using a late-fusion approach, avoiding cross-attention during inference.
  • Introduces Visual-embedding Fused Masked Language Modeling (VMLM) to inject visual features into text representation learning.
  • Introduces Semantic-embedding Fused Masked Region Modeling (SMRM) to inject text semantics into visual representation learning.
  • Employs Cross-modal Retrieval (CMR) as a joint pre-training objective to align image and text embeddings.
  • Caches all image and text embeddings offline and uses instant dot-product matching for real-time retrieval.
  • Applies a lightweight re-ranking module post-dot-product to recover performance lost by removing attention.

Experimental results

Research questions

  • RQ1Can a vision-and-language model achieve SOTA image-text retrieval performance without using cross-attention during inference?
  • RQ2Can pre-training objectives that fuse cross-modal information without attention still yield strong visual-semantic alignment?
  • RQ3How does the combination of VMLM, SMRM, and CMR pre-training tasks affect retrieval accuracy and efficiency?
  • RQ4To what extent can offline-embedded indexing and dot-product matching replace attention-based retrieval in real-time systems?
  • RQ5Can a model trained only on English captions generalize effectively to multilingual retrieval via translate-test?

Key findings

  • LightningDOT achieves new state-of-the-art performance on Flickr30k, COCO, and Multi30K benchmarks, outperforming models that require 1000× more computational hours.
  • On COCO, LightningDOT achieves 83.7% average recall (AR), surpassing UNITER (86.6%) when re-ranking is applied.
  • Inference speed is accelerated by 600–1900× on Flickr30k and COCO, and up to 23,000× on larger candidate pools (>120K images).
  • The re-ranking mechanism recovers most of the performance gap from removing attention, achieving 86.8% AR on COCO, close to full UNITER performance.
  • Under translate-test, LightningDOT sets new SOTA on multilingual benchmarks, including German, French, Czech, Japanese, and Chinese, despite being trained only on English.
  • Ablation studies confirm that VMLM and SMRM jointly improve performance, with CMR alone boosting AR by +1.4, and all three tasks together yielding the best results.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.