Reducing Predictive Feature Suppression in Resource-Constrained Contrastive Image-Caption Retrieval

Maurits J. R. Bleeker, Andrew Yates, Maarten de Rijke

Abstract: In Image-Caption Retrieval (ICR), models are typically trained using contrastive loss to align visual and textual representations. However, these models often fall victim to "predictive feature suppression," where they learn only the most salient features required to distinguish between samples in a training batch, ignoring finer details. This issue is exacerbated in resource-constrained environments where small batch sizes limit exposure to hard negatives. We propose Latent Target Decoding (LTD), a regularization technique that tasks the model with reconstructing a dense semantic representation of the caption. By formulating this as a constrained optimization problem, LTD ensures the model retains semantically rich features without compromising the primary retrieval objective. Our experiments on Flickr30k and MS-COCO demonstrate significant performance improvements in low-resource settings.

Introduction

The primary objective of Image-Caption Retrieval (ICR) is to map images and their corresponding textual descriptions into a shared embedding space where matching pairs are close and non-matching pairs are distant. While contrastive learning frameworks like InfoNCE have been successful, they are prone to learning "shortcuts." If a training batch contains a "dog" and a "car," the model may only learn to identify the "dog" feature to satisfy the loss, effectively suppressing other descriptive features like "frisbee" or "yard" that might be crucial for more difficult retrieval tasks later.

Illustration of predictive feature suppression in contrastive learning.

As shown in Figure 1, the model might focus solely on the primary subjects (kitten vs. dog) while ignoring the background or secondary objects. This suppression is particularly damaging in resource-constrained scenarios where limited compute and data prevent the use of large batches or complex hard-negative mining strategies.

Methods

To combat feature suppression, the authors introduce Latent Target Decoding (LTD). Unlike standard autoencoding which reconstructs raw input (e.g., tokens), LTD reconstructs a latent semantic representation.

  1. Latent Target Generation: The system utilizes a frozen, pre-trained sentence encoder (such as Sentence-BERT) to generate a "target" embedding for each caption. This target captures the holistic meaning of the text, forcing the caption encoder to preserve semantic depth.
  2. Decoder Architecture: A lightweight three-layer feed-forward network, $h_\omega$, is appended to the caption encoder. It maps the encoder's output back to the Sentence-BERT embedding space.
  3. Constrained Optimization: Instead of a simple weighted sum of losses, the authors treat the reconstruction task as a constraint. They minimize the contrastive loss $\mathcal{L}_{cont}$ subject to the reconstruction error $\mathcal{L}_{rec}$ remaining below a specific threshold ($\eta$). This ensures that the model prioritizes retrieval while maintaining a minimum level of semantic fidelity.
The Latent Target Decoding (LTD) architecture.

Figure 2 illustrates how the LTD module interacts with the baseline image and caption encoders. The "Target generator" provides the semantic anchor, while the "Decoder" $h_\omega$ ensures the caption encoder $g_\phi$ does not discard useful information during the training process.

Datasets and Evaluation

The researchers evaluated their method on standard ICR benchmarks:

  • Flickr30k (F30k): 31,000 image-caption tuples.
  • MS-COCO: Approximately 123,000 image-caption tuples.
  • Crisscrossed Captions (CxC): An extension of the COCO validation/test sets with additional semantic similarity annotations to better measure fine-grained retrieval.

Key Results

LTD consistently outperformed baseline contrastive models across different architectures (like VSRN and TERN) and different loss functions (InfoNCE and Triplet Loss).

  • Quantitative Gains: On the F30k dataset (Image-to-Text retrieval), the baseline Recall@1 was 47.4. Adding LTD boosted this to 49.6. On the COCO dataset, the improvement was even more pronounced, jumping from 33.7 to 36.0.
  • Qualitative Improvements: Qualitative analysis showed that LTD-enhanced models were much better at capturing fine-grained concepts. For example, a baseline model might match a "man eating pizza" to any pizza image, whereas the LTD model correctly identified a "man taking a photo of food" by not suppressing the "photo" feature.

Conclusion and Future Work

Latent Target Decoding provides an efficient and effective way to mitigate predictive feature suppression in ICR models. By leveraging pre-trained semantic models as targets and employing a constrained optimization strategy, LTD allows models to learn richer representations from limited data without the need for expensive hard-negative mining.

While effective, the method currently relies on high-quality teacher models (sentence encoders). Future work may explore how to apply LTD to massive "foundation-scale" models like CLIP and investigate more detailed feature attribution to understand exactly which suppressed features are recovered by the reconstruction constraint.

Summary updated

BibTeX
@article{bleeker2023reducing,
  author = {Maurits J. R. Bleeker and Andrew Yates and Maarten de Rijke},
  title = {{Reducing Predictive Feature Suppression in Resource-Constrained Contrastive Image-Caption Retrieval}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=xumfQQqU0y},
}
Figure