Neighbor-aware Instance Refining with Noisy Labels for Cross-Modal Retrieval

Yizhi Liu, Ruitao Pu, Shilin Xu, Yingke Chen, Quan-Hui Liu, Yuan Sun

TL;DR

This paper introduces NIRNL, a novel framework for cross-modal retrieval that tackles the pervasive issue of noisy labels in large datasets. By intelligently partitioning data into "pure," "hard," and "noisy" subsets and applying tailored learning strategies to each, NIRNL achieves state-of-the-art performance and remarkable robustness, especially under high noise conditions.

What Problem Does This Paper Address?

Cross-modal retrieval (CMR) aims to find semantically related data across different modalities, like matching images to text descriptions. While CMR has seen significant progress, its performance heavily relies on large, accurately labeled datasets. However, collecting such data is expensive and time-consuming, leading to inevitable noise (incorrect labels) in real-world datasets. This noise can severely degrade the performance of CMR models. Existing methods that try to handle noisy labels often fall short by either not fully utilizing all available data, struggling with calibration reliability, or failing to achieve optimal performance ceilings. This paper addresses the challenge of building robust CMR models that can effectively learn from noisy multi-modal data while maximizing data utilization and maintaining high performance.

Methods

The proposed framework, Neighbor-aware Instance Refining with Noisy Labels (NIRNL), comprises two core modules:

  1. Cross-modal Margin Preserving (CMP): This module aims to improve the discriminative power of the learned representations. It enforces a margin between positive (matching) and negative (non-matching) cross-modal pairs in a shared semantic space. This helps to push similar items closer and dissimilar items further apart, enhancing the overall structure of the embedding space.
  2. Neighbor-aware Instance Refining (NIR): This is the key innovation for handling noisy labels. NIR works by:
  3. Generating Soft Labels: It uses a K-Nearest Neighbors (KNN) approach and a Wasserstein barycenter to compute soft labels for each instance based on its neighbors in both modalities.
  4. Partitioning Instances: Based on the consistency between these soft labels and the original ground-truth labels, instances are partitioned into three distinct subsets:
  5. Pure Subset: Instances where the soft labels strongly agree with the ground truth in both modalities. These are treated as reliable.
  6. Hard Subset: Instances where there's consistency in only one modality or some uncertainty. These are handled with a weighted optimization strategy to balance the influence of potentially noisy labels.
  7. Noisy Subset: Instances where the soft labels indicate a high likelihood of mislabeling. These undergo label correction and are trained with a robust loss function (MAE) to mitigate overfitting.

By applying different optimization strategies (Cross-Entropy for pure, weighted CE for hard, and MAE for noisy) to these subsets, NIRNL aims to extract maximum semantic information while mitigating the negative impact of noise.

Datasets

The proposed NIRNL framework was evaluated on three widely-used benchmark datasets for cross-modal retrieval:

  • Wikipedia: Contains image-text pairs labeled with 10 semantic categories.
  • XMedia: Features 5 modalities with 20 semantic labels. The experiments used 5,000 image-text pairs.
  • INRIA-Websearch: A large dataset with over 70,000 image-text pairs across 353 semantic categories. A subset of 14,698 pairs was used for experiments.

The paper does not introduce new datasets but uses existing ones to demonstrate the effectiveness of the proposed method under various noise levels.

Key Insights and Ideas

  • The "Hard" Subset is Crucial: Simply discarding potentially noisy data or treating all uncertain data the same is suboptimal. NIRNL's approach of specifically handling a "hard" subset with weighted optimization is key to balancing performance and robustness.
  • Neighborhood Consensus is Powerful: Leveraging the collective "opinion" of an instance's neighbors across modalities provides a more reliable signal for identifying true labels versus noisy ones, especially in ambiguous cases.
  • Tailored Loss Functions Matter: Applying different loss functions (CE, weighted CE, MAE) to distinct data partitions (pure, hard, noisy) allows the model to exploit the varying reliability of labels more effectively.
  • Balancing Act is Key: The paper highlights the challenge of simultaneously optimizing for model performance, calibration reliability, and data utilization. NIRNL's unified framework directly addresses this trade-off.

Key Results

Experiments were conducted on Wikipedia, XMedia, and INRIA-Websearch datasets with varying noise rates (0.2 to 0.8). NIRNL consistently achieved state-of-the-art performance across these datasets and noise levels. For instance, on Wikipedia at 0.8 noise rate, NIRNL achieved a MAP score of 41.7 (I2T) and 39.4 (T2I), outperforming other methods. Precision-recall curves also showed NIRNL's superior performance. Ablation studies confirmed that each component of NIRNL (CMP, handling of noisy/hard subsets, barycenter alignment) contributes significantly to its overall effectiveness and robustness.

Limitations and Future Work

  • Computational Cost: While effective, the neighborhood consensus and barycenter computation in the NIR module might introduce additional computational overhead compared to simpler methods.
  • Hyperparameter Sensitivity: The performance of KNN and the weighting strategy for the hard subset might be sensitive to hyperparameter choices (e.g., K value).
  • Future Work: The authors suggest that further exploration into more efficient neighborhood consensus mechanisms and adaptive barycenter alignment could be beneficial. Investigating the framework's applicability to other noisy label scenarios or cross-modal tasks could also be promising.

Summary updated

BibTeX
@inproceedings{liu2026neighbor,
  author = {Yizhi Liu and Ruitao Pu and Shilin Xu and Yingke Chen and Quan-Hui Liu and Yuan Sun},
  title = {{Neighbor-aware Instance Refining with Noisy Labels for Cross-Modal Retrieval}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  url = {https://openreview.net/forum?id=wvmOjstpmp},
}
Figure