Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Stacked Cross Attention for Image-Text Matching

About

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

Kuang-Huei Lee, Xi Chen, Gang Hua, Houdong Hu, Xiaodong He• 2018

Related benchmarks

TaskDatasetResultRank
Text-to-Image RetrievalFlickr30K
R@148.6
460
Image-to-Text RetrievalFlickr30K 1K (test)
R@167.7
439
Text-to-Image RetrievalFlickr30k (test)
Recall@148.6
423
Image-to-Text RetrievalFlickr30K
R@167.4
379
Text-to-Image RetrievalFlickr30K 1K (test)
R@148.6
375
Image-to-Text RetrievalFlickr30k (test)
R@167.4
370
Image-to-Text RetrievalMS-COCO 5K (test)
R@162.2
299
Text-to-Image RetrievalMSCOCO 5K (test)
R@150.4
286
Text-to-Image RetrievalMS-COCO 5K (test)
R@146.2
223
Image RetrievalMS-COCO 5K (test)
R@138.6
217
Showing 10 of 95 rows
...

Other info

Code

Follow for update