HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Plug-and-Play Regulators for Image-Text Matching

Haiwen Diao Ying Zhang Wei Liu Xiang Ruan Huchuan Lu

Plug-and-Play Regulators for Image-Text Matching

Abstract

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.

Code Repositories

paranioar/rcar
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
cross-modal-retrieval-on-coco-2014RCAR
Image-to-text R@1: 61.3
Image-to-text R@10: 92.6
Image-to-text R@5: 86.1
Text-to-image R@1: 44.3
Text-to-image R@10: 83.2
Text-to-image R@5: 73.2
cross-modal-retrieval-on-flickr30kRCAR
Image-to-text R@1: 82.3
Image-to-text R@10: 98.4
Image-to-text R@5: 96.0
Text-to-image R@1: 62.6
Text-to-image R@10: 91.1
Text-to-image R@5: 85.8
image-retrieval-on-flickr30k-1k-testRCAR
R@1: 62.6
R@10: 91.1
R@5: 85.8

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Plug-and-Play Regulators for Image-Text Matching | Papers | HyperAI