Semantic-Consistent Bidirectional Contrastive Hashing for Noisy Multi-Label Cross-Modal Retrieval

Likang Peng, Chao Su, Wenyuan Wu, Yuan Sun, Dezhong Peng, Xi Peng, Xu WangarXiv 2025 · DOI

TL;DR

This paper introduces SCBCH, a novel framework for cross-modal hashing that tackles the significant challenge of noisy labels in multi-label datasets. By combining a semantic-consistent classification module to reweight samples and a bidirectional soft contrastive hashing module to create adaptive sample pairs, SCBCH achieves superior robustness and retrieval performance compared to existing methods under noisy conditions.

What Problem Does This Paper Address?

Cross-modal hashing (CMH) is crucial for efficient information retrieval across different data types like images and text. It achieves this by converting complex data into compact binary codes for fast searching. However, a major hurdle in real-world applications is the prevalence of noisy labels, especially in multi-label datasets where an item can have multiple associated labels, some of which might be incorrect. Existing CMH methods often assume clean data, leading to performance degradation when faced with noisy annotations. Furthermore, they tend to overlook the nuanced semantic overlaps present in multi-label data, limiting their ability to generalize and adapt to imperfect information. This paper aims to bridge this gap by developing a robust CMH method that can effectively handle noisy multi-label data.

Methods

The proposed framework, Semantic-Consistent Bidirectional Contrastive Hashing (SCBCH), is built upon two core modules:

  1. Cross-modal Semantic-Consistent Classification (CSCC): This module addresses label noise by leveraging semantic consistency across modalities. For each "anchor" sample, it identifies its most similar neighbors in the feature space from both modalities. The label similarities with these neighbors are then used to compute a weighted classification loss. This adaptive reweighting mechanism allows the model to retain all training samples while downplaying the influence of potentially incorrect labels, thereby improving training stability and robustness.
  2. Bidirectional Soft Contrastive Hashing (BSCH): This module focuses on improving the contrastive learning aspect by generating "soft" contrastive sample pairs. Instead of relying on strict positive/negative pairs, BSCH considers partial label overlap in multi-label scenarios. It uses a Jaccard Index to quantify label similarity and constructs pairs that are either:
  3. Positive (Attraction): Samples with identical labels or significant overlap.
  4. Negative (Repulsion): Samples with no shared labels.
  5. Soft: Samples with partial label overlap. This allows for a more nuanced assessment of semantic similarity, explicitly attracting similar pairs and repelling dissimilar ones, leading to more discriminative hash codes. The BSCH module includes an "Attraction Component" to align semantically similar pairs and a "Repulsion Component" to push apart semantically dissimilar pairs that might otherwise be confused due to high feature similarity.

Datasets

The authors evaluated their method on four widely-used cross-modal retrieval benchmark datasets:

  • NUS-WIDE (NUS)
  • MS-COCO (COCO)
  • MIRFlickr-25K (Flickr)
  • IAPR TC-12 (IAPR)

These datasets are used for both training and evaluation, and the experiments involve injecting mixed symmetric label noise at rates of 20%, 50%, and 80% to assess robustness.

Key Insights and Ideas

  • Noisy labels are a critical bottleneck: The paper strongly emphasizes that real-world data is rarely perfectly clean, and existing CMH methods suffer significantly from this.
  • Semantic consistency is key to noise robustness: By looking at how well samples align semantically across modalities, we can infer the reliability of their labels. This insight forms the basis of the CSCC module.
  • Soft contrastive pairs are more informative than hard ones: In multi-label settings, strict positive/negative pairs miss valuable information. Using soft pairs that account for partial label overlap allows for a more granular understanding of semantic relationships.
  • Bidirectional learning (attract/repel) is crucial: The BSCH module's dual approach of pulling similar samples together and pushing dissimilar ones apart is essential for learning discriminative hash codes in the presence of noise.
  • Adaptive reweighting is better than filtering: Instead of discarding potentially noisy samples (which might be informative), the CSCC module adaptively reweights them, preserving more data for learning.

Key Results

  • State-of-the-art performance: SCBCH consistently outperforms 12 competing methods across all tested datasets and noise levels.
  • Significant robustness gains: For example, with a 64-bit hash code and 80% noise, SCBCH achieved performance gains of 1.1% to 2.3% over the second-best method on the evaluated datasets.
  • Improved precision-recall curves: Figure 4 demonstrates that SCBCH consistently achieves the highest area under the precision-recall curves for both image-to-text (I2T) and text-to-image (T2I) retrieval tasks, indicating superior overall retrieval quality.
  • Ablation studies confirm component importance: Removing any of the core components (CSCC, BSCH, semantic-consistency weighting, or attraction) led to a decrease in performance, highlighting the synergistic contribution of each part.

Limitations and Future Work

  • Computational Cost: While the paper doesn't explicitly state limitations regarding computational cost, complex frameworks like SCBCH can sometimes be more computationally intensive than simpler methods. However, the use of pre-trained backbones and efficient hashing techniques aims to mitigate this.
  • Hyperparameter Tuning: Like most deep learning models, SCBCH likely requires careful tuning of hyperparameters (e.g., $\gamma$, $\alpha$, $\beta$) for optimal performance on different datasets.
  • Future Work: The paper implicitly suggests future work could involve exploring more advanced noise detection and correction mechanisms, investigating different contrastive learning strategies, and applying the framework to other cross-modal tasks beyond retrieval. The authors also highlight the potential for further research into handling more complex forms of label noise and exploring unsupervised or semi-supervised extensions.

Summary updated

BibTeX
@misc{peng2025semantic,
  author = {Likang Peng and Chao Su and Wenyuan Wu and Yuan Sun and Dezhong Peng and Xi Peng and Xu Wang},
  title = {{Semantic-Consistent Bidirectional Contrastive Hashing for Noisy Multi-Label Cross-Modal Retrieval}},
  year = {2025},
  eprint = {2511.07780},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.07780},
}
Figure