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

Maurits Bleeker, Andrew Yates, Maarten de Rijke · DOI

Abstract

To train image-caption retrieval (ICR) methods, contrastive loss functions are a common choice for optimization functions. Unfortunately, contrastive ICR methods are vulnerable to predictive feature suppression. Predictive features are features that correctly indicate the similarity between a query and a candidate item. However, in the presence of multiple predictive features during training, encoder models tend to suppress redundant predictive features, since these features are not needed to learn to discriminate between positive and negative pairs. While some predictive features are redundant during training, these features might be relevant during evaluation. We introduce an approach to reduce predictive feature suppression for resource-constrained ICR methods: latent target decoding (LTD). We add an additional decoder to the contrastive ICR framework, to reconstruct the input caption in a latent space of a general-purpose sentence encoder, which prevents the image and caption encoder from suppressing predictive features. We implement the LTD objective as an optimization constraint, to ensure that the reconstruction loss is below a bound value while primarily optimizing for the contrastive loss. Importantly, LTD does not depend on additional training data or expensive (hard) negative mining strategies. Our experiments show that, unlike reconstructing the input caption in the input space, LTD reduces predictive feature suppression, measured by obtaining higher recall@k, r-precision, and nDCG scores than a contrastive ICR baseline. Moreover, we show that LTD should be implemented as an optimization constraint instead of a dual optimization objective. Finally, we show that LTD can be used with different contrastive learning losses and a wide variety of resource-constrained ICR methods.

Introduction

Image-Caption Retrieval (ICR) is a fundamental task in multi-modal machine learning, aiming to bridge the semantic gap between visual and textual modalities. Most state-of-the-art models employ contrastive loss functions, which optimize a shared latent space by pulling matching image-caption pairs together and pushing non-matching pairs apart. However, this approach often suffers from a phenomenon known as "predictive feature suppression."

The Problem: Predictive Feature Suppression

Contrastive learning can be inherently "lazy." When a model is presented with a training batch, it naturally gravitates toward the easiest features to solve the immediate discrimination task. For instance, if a batch contains an image of a kitten and a negative sample of a dog, the model might only learn to recognize basic "kitten-ness" and "dog-ness" to distinguish the two. In doing so, it may completely ignore other predictive features, such as the color of a quilt or the specific orientation of the subject, because they are not strictly necessary to separate the positive pair from the negative samples in that specific batch.

Predictive feature suppression: models may ignore descriptive details (like the quilt or camera) if a single feature (like "kitten") is sufficient to distinguish pairs during training.

This suppression of redundant features is particularly problematic in resource-constrained settings. Without massive datasets or extremely large batch sizes to provide diverse "hard negatives," models are less likely to be forced into learning the full richness of the semantic space.

Proposed Method: Latent Target Decoding (LTD)

To mitigate predictive feature suppression, the authors propose Latent Target Decoding (LTD). The core concept is to introduce an auxiliary task that forces the encoders to retain more descriptive information than what is minimally required for contrastive discrimination.

The LTD framework architecture. The baseline contrastive model (left) is augmented with a decoder $h_\omega$ (right) that reconstructs captions in a latent semantic space.

Key Innovations

  1. Reconstruction in Latent Space: Unlike traditional autoencoders that reconstruct raw input tokens, LTD reconstructs the caption's representation within the latent space of a frozen, general-purpose sentence encoder (e.g., Sentence-BERT). This prevents the model from relying on internal language priors to "cheat" the reconstruction task and instead forces the encoder to capture the holistic meaning of the sentence.
  2. Constraint-Based Optimization: Rather than simply adding a reconstruction loss to the contrastive loss (a dual-loss approach), LTD treats reconstruction as an optimization constraint. Using Lagrange multipliers, the model ensures the reconstruction loss remains below a predefined threshold ($\eta$). This allows the model to prioritize the primary retrieval task while maintaining a necessary "budget" of descriptive semantic information.

Experimental Evaluation

The authors evaluated LTD across several standard benchmarks, including Flickr30k, MS-COCO, and CxC (Crisscrossed Captions). The method was tested using various architectures (such as VSRN and TERN) and loss functions (InfoNCE and Triplet loss) to demonstrate its broad applicability.

Key Results

  • Performance Gains: LTD consistently outperformed baseline contrastive models. On MS-COCO, LTD improved Recall@1 for image-to-text retrieval from 33.7% to 36.0%.
  • Enhanced Semantic Ranking: The method showed significant improvements in nDCG and R-precision, indicating that the resulting rankings are more semantically meaningful and robust.
  • Qualitative Improvements: Qualitative analysis revealed that LTD-trained models are better at capturing fine-grained details. For example, where a baseline might only identify a "man eating," an LTD-enabled model can correctly identify more specific actions, such as "taking a photo of food."

Conclusion and Future Work

LTD provides a robust, data-efficient way to reduce predictive feature suppression in ICR without requiring expensive negative mining or additional training data. While the method currently depends on pre-trained sentence encoders, it sets a new precedent for using latent reconstruction as a regularizer in multi-modal tasks. Future work may explore generating these latent targets without external models and integrating feature attribution methods to further interpret the specific features recovered by LTD.

Summary updated

BibTeX
@article{bleeker2023reducing,
  author = {Maurits 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