Plug-and-Play Regulators for Image-Text Matching

23 Mar 2023  ·  Haiwen Diao, Ying Zhang, Wei Liu, Xiang Ruan, Huchuan Lu ·

Exploiting fine-grained correspondence and visual-semantic alignments has shown great potential in image-text matching. Generally, recent approaches first employ a cross-modal attention unit to capture latent region-word interactions, and then integrate all the alignments to obtain the final similarity. However, most of them adopt one-time forward association or aggregation strategies with complex architectures or additional information, while ignoring the regulation ability of network feedback. In this paper, we develop two simple but quite effective regulators which efficiently encode the message output to automatically contextualize and aggregate cross-modal representations. Specifically, we propose (i) a Recurrent Correspondence Regulator (RCR) which facilitates the cross-modal attention unit progressively with adaptive attention factors to capture more flexible correspondence, and (ii) a Recurrent Aggregation Regulator (RAR) which adjusts the aggregation weights repeatedly to increasingly emphasize important alignments and dilute unimportant ones. Besides, it is interesting that RCR and RAR are plug-and-play: both of them can be incorporated into many frameworks based on cross-modal interaction to obtain significant benefits, and their cooperation achieves further improvements. Extensive experiments on MSCOCO and Flickr30K datasets validate that they can bring an impressive and consistent R@1 gain on multiple models, confirming the general effectiveness and generalization ability of the proposed methods. Code and pre-trained models are available at: https://github.com/Paranioar/RCAR.

PDF Abstract
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Cross-Modal Retrieval COCO 2014 RCAR Image-to-text R@1 61.3 # 22
Image-to-text R@10 92.6 # 21
Image-to-text R@5 86.1 # 22
Text-to-image R@1 44.3 # 24
Text-to-image R@10 83.2 # 21
Text-to-image R@5 73.2 # 22
Cross-Modal Retrieval Flickr30k RCAR Image-to-text R@1 82.3 # 13
Image-to-text R@10 98.4 # 13
Image-to-text R@5 96.0 # 13
Text-to-image R@1 62.6 # 14
Text-to-image R@10 91.1 # 14
Text-to-image R@5 85.8 # 14
Image Retrieval Flickr30K 1K test RCAR R@1 62.6 # 2
R@10 91.1 # 2
R@5 85.8 # 2

Methods


No methods listed for this paper. Add relevant methods here