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

Focus Your Attention: A Bidirectional Focal Attention Network for Image-Text Matching

About

Learning semantic correspondence between image and text is significant as it bridges the semantic gap between vision and language. The key challenge is to accurately find and correlate shared semantics in image and text. Most existing methods achieve this goal by representing the shared semantic as a weighted combination of all the fragments (image regions or text words), where fragments relevant to the shared semantic obtain more attention, otherwise less. However, despite relevant ones contribute more to the shared semantic, irrelevant ones will more or less disturb it, and thus will lead to semantic misalignment in the correlation phase. To address this issue, we present a novel Bidirectional Focal Attention Network (BFAN), which not only allows to attend to relevant fragments but also diverts all the attention into these relevant fragments to concentrate on them. The main difference with existing works is they mostly focus on learning attention weight while our BFAN focus on eliminating irrelevant fragments from the shared semantic. The focal attention is achieved by pre-assigning attention based on inter-modality relation, identifying relevant fragments based on intra-modality relation and reassigning attention. Furthermore, the focal attention is jointly applied in both image-to-text and text-to-image directions, which enables to avoid preference to long text or complex image. Experiments show our simple but effective framework significantly outperforms state-of-the-art, with relative Recall@1 gains of 2.2% on both Flicr30K and MSCOCO benchmarks.

Chunxiao Liu, Zhendong Mao, An-An Liu, Tianzhu Zhang, Bin Wang, Yongdong Zhang• 2019

Related benchmarks

TaskDatasetResultRank
Text-to-Image RetrievalFlickr30k (test)
Recall@150.8
423
Image-to-Text RetrievalFlickr30k (test)
R@168.1
370
Image RetrievalFlickr30k (test)
R@150.8
195
Image RetrievalMS-COCO 1K (test)
R@159.4
128
Text-to-Image RetrievalMS-COCO
R@588.4
79
Text RetrievalMS-COCO 1K (test)
R@174.9
53
Cross-modal retrievalFlickr30k (test)
Image-to-text Recall@168.1
17
Sentence RetrievalFlickr30k (test)
R@168.1
15
Image-to-Text matchingMSCOCO
R@174.9
12
Showing 9 of 9 rows

Other info

Follow for update