Adaptive Hierarchical Similarity Metric Learning With Noisy Labels

Jiexi Yan, Lei Luo, Cheng Deng, Heng Huang

TL;DR

Standard Deep Metric Learning (DML) often breaks down when faced with noisy labels because it relies on rigid "same-vs-different" binary logic. This paper introduces an Adaptive Hierarchical Similarity approach that uses hyperbolic geometry to map complex class relationships and contrastive self-supervision to create noise-resistant anchors, significantly boosting performance on real-world, imperfectly labeled datasets.

What Problem Does This Paper Address?

Deep Metric Learning (DML) is the engine behind image retrieval and face recognition; its goal is to learn an embedding space where similar objects are close together and dissimilar ones are far apart. However, most DML algorithms assume "binary similarity"—either two items are in the same class, or they aren't.

In the real world, labels are often "noisy" (incorrect). If a "Sooty Albatross" is accidentally labeled as a "Black Footed Albatross," a standard DML model will aggressively try to pull these different birds together, ruining the embedding space's discriminative power. Furthermore, binary similarity ignores the fact that some different classes are more related than others (e.g., two different bird species are more similar to each other than a bird is to a car).

Methods

The authors propose a framework that moves beyond binary labels by integrating three key components:

  1. Class-wise Divergence in Hyperbolic Space: Instead of Euclidean space, the authors use Hyperbolic Geometry (specifically the Poincaré ball model). Hyperbolic space is mathematically better suited for representing hierarchical or tree-like structures. They calculate average similarities between and within classes to determine how "close" different categories actually are.
  2. Sample-wise Consistency: To combat label noise, they borrow a trick from self-supervised learning. For every image, they create a "weak" augmentation (simple crop/flip) and a "strong" augmentation (complex transformations). Since these are derived from the same image, they are guaranteed to be a positive pair, regardless of whether the class label is wrong. This provides a "noise-free" anchor for the model.
  3. Adaptive Hierarchical Strategy: The model doesn't use a single fixed margin (the distance it tries to maintain between clusters). Instead, it dynamically assigns margins ($M_a, M_p, M_n$) based on the class-wise hierarchy and sample-wise consistency. This allows the model to be "forgiving" of similar classes while remaining strict with totally unrelated ones.

Datasets

The researchers evaluated their method on three standard DML benchmarks:

  • Cars196: 16,185 images of 196 car types.
  • CUB-200-2011: 11,788 images of 200 bird species (noted for its rich natural hierarchy).
  • Standard Online Products (SOP): A large-scale dataset of ~120k product images from eBay.

To test robustness, they injected simulated label noise by randomly flipping labels at rates of 30%, 50%, and 70%.

Key Insights and Ideas

  • Hierarchy as a Buffer: By recognizing that some classes are naturally similar, the model avoids "over-correcting" when it encounters a noisy label. If the model knows two classes are related, a mislabeled pair won't cause as much distortion in the embedding space.
  • Self-Supervision as Ground Truth: The use of contrastive augmentations acts as a safety net. Even if the provided label is "Dog" but the image is a "Cat," the model still learns that the "Cat" image and its augmented version belong together, preserving local feature consistency.
  • Hyperbolic Advantage: The paper reinforces that Euclidean space is often too "flat" for complex data. Moving to the Poincaré ball allows the model to naturally "discover" the parent-child relationships between species or products.

Key Results

The proposed method (denoted with an asterisk, e.g., MS*) consistently outperformed baseline models like Triplet Loss, Lifted Structure Loss, and Multi-Similarity (MS) Loss.

  • Clean Data: On the CUB dataset, the adaptive strategy improved the Recall@1 of MS loss from 65.7% to 66.8%.
  • Noisy Data (30% noise): This is where the method shines. On CUB with 30% noise, the baseline MS loss dropped to 62.0%, while the proposed method maintained 65.3%.
  • Extreme Noise (70% noise): Even when 70% of the labels were wrong, the method outperformed the baseline by 7.2% in Recall@1 on the CUB dataset, demonstrating remarkable robustness.
  • Ablation Study: Removing the Hyperbolic Geometry (HG) component led to a drop in performance (from 64.3% to 63.7% on CUB), proving that the geometric choice is a meaningful contributor to the model's success.

Limitations and Future Work

While the paper demonstrates strong results, a few areas remain for exploration:

  • Computational Overhead: Calculating class-wise divergence and operating in hyperbolic space adds complexity compared to standard Euclidean DML.
  • Hierarchy Discovery: The current method calculates class-wise similarity based on the current state of the model. If the initial pre-training is very poor, the "discovered" hierarchy might be inaccurate.
  • Real-world Noise: The study uses "symmetric" noise (random flipping). Future work could investigate "asymmetric" noise, where visually similar classes are more likely to be confused by human annotators.

Summary updated

BibTeX
@article{yan2023adaptive,
  author = {Jiexi Yan and Lei Luo and Cheng Deng and Heng Huang},
  title = {{Adaptive Hierarchical Similarity Metric Learning With Noisy Labels}},
  journal = {IEEE Trans. Image Process.},
  year = {2023},
  doi = {10.1109/tip.2023.3242148},
}
Figure