Stacked Cross Attention for Image-Text Matching

Kuang-Huei Lee, Xi Chen, Gang Hua, Houdong Hu, Xiaodong He
3/21/2018
1,474 citations
cs.CVcs.AIcs.LG
transformer-attention

Official code: kuanghuei/SCAN (583 stars, Python, Apache-2.0, PyTorch, last commit 2023-05-18).

Abstract

In this paper, we study the problem of image-text matching. Inferring the latent semantic alignment between objects or other salient stuff (e.g. snow, sky, lawn) and the corresponding words in sentences allows to capture fine-grained interplay between vision and language, and makes image-text matching more interpretable.

Show full abstract

Prior work either simply aggregates the similarity of all possible pairs of regions and words without attending differentially to more and less important words or regions, or uses a multi-step attentional process to capture limited number of semantic alignments which is less interpretable. In this paper, we present Stacked Cross Attention to discover the full latent alignments using both image regions and words in a sentence as context and infer image-text similarity. Our approach achieves the state-of-the-art results on the MS-COCO and Flickr30K datasets. On Flickr30K, our approach outperforms the current best methods by 22.1% relatively in text retrieval from image query, and 18.2% relatively in image retrieval with text query (based on Recall@1). On MS-COCO, our approach improves sentence retrieval by 17.8% relatively and image retrieval by 16.6% relatively (based on Recall@1 using the 5K test set). Code has been made available at: https://github.com/kuanghuei/SCAN.

View on arXivView PDF

Code Implementations(1)

kuanghuei/SCANOfficial100%
PyTorchApache-2.0

PyTorch source code for "Stacked Cross Attention for Image-Text Matching" (ECCV 2018)

583118PythonMay 11, 20183 years agoApache-2.0
computer-visioncross-modaldeep-learningimage-captioningneural-network+2 more

Similar Papers

Cite this paper

@article{lee2018stacked,
  title  = {Stacked Cross Attention for Image-Text Matching},
  author = {Kuang-Huei Lee and Xi Chen and Gang Hua and Houdong Hu and Xiaodong He},
  year   = {2018},
  eprint = {1803.08024},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1803.08024}
}

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

Discussion