Skip to main content
QUICK REVIEW

[Paper Review] CAMP: Cross-Modal Adaptive Message Passing for Text-Image Retrieval

Zihao Wang, Xihui Liu|arXiv (Cornell University)|Sep 12, 2019
Multimodal Machine Learning ApplicationsComputer Science36 references31 citations
TL;DR

CAMP proposes a cross-modal adaptive message passing framework for text-image retrieval that models fine-grained interactions between images and text via cross-modal attention and adaptive gating. By fusing modality-specific features with context-aware messages and using a hardest negative binary cross-entropy loss, CAMP achieves state-of-the-art performance on COCO and Flickr30k, outperforming prior joint embedding methods.

ABSTRACT

Text-image cross-modal retrieval is a challenging task in the field of language and vision. Most previous approaches independently embed images and sentences into a joint embedding space and compare their similarities. However, previous approaches rarely explore the interactions between images and sentences before calculating similarities in the joint space. Intuitively, when matching between images and sentences, human beings would alternatively attend to regions in images and words in sentences, and select the most salient information considering the interaction between both modalities. In this paper, we propose Cross-modal Adaptive Message Passing (CAMP), which adaptively controls the information flow for message passing across modalities. Our approach not only takes comprehensive and fine-grained cross-modal interactions into account, but also properly handles negative pairs and irrelevant information with an adaptive gating scheme. Moreover, instead of conventional joint embedding approaches for text-image matching, we infer the matching score based on the fused features, and propose a hardest negative binary cross-entropy loss for training. Results on COCO and Flickr30k significantly surpass state-of-the-art methods, demonstrating the effectiveness of our approach.

Motivation & Objective

  • To address the limitation of prior methods that independently embed images and text without modeling cross-modal interactions.
  • To enable fine-grained, interactive cross-modal reasoning by allowing alternating attention between image regions and words.
  • To suppress irrelevant or mismatched information during cross-modal message passing using an adaptive gating mechanism.
  • To improve matching accuracy by learning a matching score from fused features rather than relying on joint embedding space distances.
  • To design a training objective that emphasizes hard negative examples for better generalization.

Proposed method

  • CAMP employs a Cross-modal Message Aggregation module that uses cross-attention to pass salient information from image regions to words and from words to image regions.
  • It introduces a Cross-modal Gated Fusion module that adaptively controls fusion intensity using soft gates, preserving original features when modality alignment is low.
  • The adaptive gate mechanism learns to suppress fusion of mismatched or irrelevant features, especially in negative pairs.
  • Fused features are aggregated using an attention-based mechanism to produce global image and sentence representations.
  • Matching scores are predicted via a multi-layer perceptron (MLP) on the fused features, replacing traditional cosine similarity in joint embedding space.
  • The model is trained with a hardest negative binary cross-entropy loss to emphasize difficult negative examples and improve discrimination.

Experimental results

Research questions

  • RQ1Can adaptive message passing across modalities improve fine-grained alignment in text-image retrieval?
  • RQ2How can irrelevant or mismatched features be suppressed during cross-modal interaction?
  • RQ3Does learning a matching score from fused features outperform similarity computation in a joint embedding space?
  • RQ4Can a hardest negative binary cross-entropy loss improve retrieval performance compared to ranking loss?
  • RQ5Is adaptive gating more effective than fixed fusion strategies in handling negative pairs?

Key findings

  • CAMP achieves state-of-the-art performance on both COCO and Flickr30k benchmarks, significantly outperforming prior methods.
  • The ablation study shows that removing adaptive gating or residual connections leads to a significant drop in performance, validating their necessity.
  • The average gate value for positive pairs is 0.971, while for negative pairs it is nearly zero (2.7087×10⁻⁹), confirming effective suppression of mismatched features.
  • Replacing attention-based feature aggregation with average pooling degrades performance, demonstrating the importance of context-aware aggregation.
  • Using a simple MLP with hardest negative BCE loss outperforms both joint embedding with cosine similarity and ranking loss, proving the effectiveness of the proposed training scheme.
  • The model successfully identifies subtle mismatches—such as incorrect object descriptions—by leveraging cross-modal interactions, as shown in qualitative examples.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.