Abstract
Image-Text Retrieval (ITR) is a fundamental task in cross-modal understanding, yet current methods are often limited by uniform negative sampling and a lack of semantic context. We present CODER (Coupled Diversity-Sensitive Momentum Contrastive Learning), a framework designed to address these bottlenecks. CODER introduces a diversity-sensitive loss that adaptively weights negative samples based on their semantic ambiguity and a dual-branch architecture that incorporates external commonsense knowledge. Experimental results on MSCOCO and Flickr30K demonstrate that CODER achieves state-of-the-art performance while offering significant improvements in inference speed compared to cross-attention models.
Introduction
Image-Text Retrieval (ITR) aims to bridge the gap between visual and linguistic modalities by learning a shared embedding space. While contrastive learning has become the standard paradigm, three major challenges persist:
- Batch Size Constraints: Standard contrastive methods are limited by the number of negatives available in a single mini-batch.
- Uniform Weighting: Existing models often treat all negative samples equally, failing to account for semantically ambiguous cases that require finer-grained distinction.
- Semantic Gap: Models typically rely solely on provided data, ignoring broader commonsense knowledge that can help align abstract concepts across modalities.
CODER addresses these issues by combining large-scale momentum dictionaries with a novel diversity-sensitive weighting mechanism and a concept-level reasoning branch.
Proposed Methodology
Dual-Branch Architecture
CODER utilizes a dual-branch structure to capture both fine-grained instance details and high-level semantic concepts.
- Instance-Level Branch: Extracts features from image regions (using Faster R-CNN) and text (using BERT). It employs Momentum Contrastive Learning (MCL) to maintain large queues of negative samples, ensuring robust training even with small batch sizes.
- Concept-Level Branch: Integrates external knowledge by extracting concepts and processing them through a Graph Convolutional Network (GCN). This branch provides a "commonsense" basis that helps align the two modalities in a more structured space.
Diversity-Sensitive Contrastive Learning (DCL)
The core innovation of CODER is the DCL loss. The authors define "Diversity" as the statistical distribution of negative samples around an anchor.
As illustrated in Figure 2, "low-diversity" scenarios occur when multiple negatives are semantically similar to the anchor (e.g., several captions describing different dogs jumping). DCL adaptively assigns higher weights to these difficult, ambiguous cases, forcing the model to learn more discriminative features. This is mathematically captured by the standard deviation of similarities between the anchor and its negatives.
Alignment and Clustering
To ensure the two branches remain synchronized, CODER uses Prototype-Guided Classification (PGC). It performs online K-means clustering on instance features to create prototypes, which the concept branch then learns to predict. This grounding ensures that abstract commonsense concepts remain tied to actual data instances.
Experimental Results
CODER was evaluated on the MSCOCO and Flickr30K benchmarks, showing substantial improvements over previous state-of-the-art methods like SGRAF.
- Accuracy: On the MSCOCO 1K test set, CODER achieved a Recall@1 of 82.1% for text retrieval and 65.5% for image retrieval, outperforming previous benchmarks by over 2%.
- Efficiency: By utilizing a dual-stream approach instead of heavy cross-attention, CODER is approximately 6x faster during inference, making it highly suitable for real-world applications.
- Robustness: The use of momentum dictionaries (MCL) ensures that performance remains stable regardless of training batch size, lowering the hardware barrier for high-performance ITR.
Conclusion
CODER represents a significant advancement in image-text retrieval by moving beyond uniform contrastive learning. By quantifying semantic diversity and incorporating commonsense knowledge, the model achieves superior accuracy and efficiency. Future work will explore scaling this diversity-sensitive paradigm to larger vision-language pre-training models and expanding the fixed concept vocabulary used in the commonsense branch.
Summary updated