Understanding and Mitigating Human-Labelling Errors in Supervised Contrastive Learning

Zijun Long, Lipeng Zhuang, George Killick, Richard McCreadie, Gerardo Aragon-Camarasa, Paul Henderson

Abstract

Supervised Contrastive Learning (SCL) has emerged as a robust alternative to cross-entropy loss for training deep visual representations. However, its performance is heavily contingent on the accuracy of training labels. While existing literature extensively explores synthetic label noise (random flips at high rates), real-world human-labeling errors are typically low-rate and non-random, often occurring between visually similar classes. This paper introduces SCL-RHE (SCL with Robustness to Human-labelling Errors), a novel objective function that mitigates the impact of human errors by deprioritizing "easy positives" and integrating a Positive-Unlabeled (PU) learning framework. Our method improves representation quality and computational efficiency, achieving state-of-the-art results on ImageNet-1K and various transfer learning benchmarks.

1. Introduction

Supervised Contrastive Learning (SCL) operates by pulling "positive pairs" (images sharing the same label) closer in a latent feature space while pushing "negative pairs" (images with different labels) further apart. While effective, this mechanism is highly sensitive to label noise. A single mislabeled image can introduce a false positive pair, leading the model to collapse distinct semantic features into the same region of the embedding space.

Most research into noisy labels focuses on synthetic noise, where labels are randomly flipped at rates as high as 40–80%. In contrast, human-annotated datasets like ImageNet exhibit much lower error rates (typically <5%). Crucially, human errors are not random; they are often the result of visual similarity (e.g., mislabeling a "fox" as a "dog"). Existing noise-mitigation techniques often struggle with these subtle errors, either overfitting to the noise or introducing significant computational overhead through auxiliary models. SCL-RHE addresses this gap by specifically targeting the characteristics of human-induced labeling errors.

2. Methodology

2.1 Deprioritizing "Easy Positives"

The authors observe that human errors typically result in "easy positives." Because a mislabeled image usually looks like the assigned (incorrect) class, it naturally sits close to the anchor in the feature space. Standard SCL rewards this proximity, effectively reinforcing the human mistake. SCL-RHE introduces a mechanism to reduce the weight of these "easy" pairs. By down-weighting pairs that are already close in the feature space, the model is forced to focus on "hard positives"—images that belong to the same class but look different—thereby learning more abstract and robust features.

2.2 Positive-Unlabeled (PU) Learning Integration

To handle the uncertainty of labels without explicit cleaning, the authors reformulate the SCL objective using a Positive-Unlabeled (PU) learning framework. This allows the model to mathematically estimate the true distribution of latent classes. By incorporating an estimated human error rate ((\tau)), the loss function is reweighted to counterbalance expected mislabeling. Unlike competing methods that require complex graph calculations or extra neural networks to estimate label confidence, SCL-RHE is a direct modification of the loss function, maintaining high efficiency.

3. Experimental Setup

The researchers evaluated SCL-RHE across several benchmarks to test its generalizability and robustness:

  • Core Benchmarks: CIFAR-10, CIFAR-100, and ImageNet-1K.
  • Transfer Learning: Evaluation on specialized datasets including CUB-200-2011, Caltech-256, Oxford 102 Flowers, Oxford-IIIT Pets, iNaturalist 2017, and Places365.
  • Clean Benchmarks: Testing on "corrected" versions of standard test sets to determine if the learned representations truly reflect underlying semantic categories rather than just fitting noisy training data.

4. Key Insights

4.1 The 99% Rule

Analysis revealed that in SCL, approximately 99% of incorrect learning signals in high-class-count datasets stem from false positives (different classes labeled the same). False negatives (same class labeled differently) are statistically rare enough to be negligible, allowing SCL-RHE to focus its robust mechanisms primarily on the false positive problem.

4.2 Human Error vs. Synthetic Noise

Because human errors are visually consistent with the assigned label, they provide a strong but incorrect learning signal. SCL-RHE’s focus on hard positives ensures that the model does not simply "memorize" these visually similar but semantically distinct errors.

5. Results

5.1 Performance and Robustness

On ImageNet-1K, SCL-RHE achieved a Top-1 accuracy of 84.21% using a BEiT-3 base, significantly outperforming standard SCL (82.57%) and specialized noise-mitigation methods like Sel-CL and TCL. Furthermore, SCL-RHE showed the highest gains when tested on "corrected" clean benchmarks, suggesting it learns a more accurate representation of the world.

5.2 Computational Efficiency

SCL-RHE offers a substantial reduction in training time compared to other robust SCL variants. It is 29.9% faster than Sel-CL and 37.6% faster than TCL. This efficiency is attributed to the fact that SCL-RHE does not require auxiliary models or multi-stage training to estimate label confidence.

6. Limitations and Future Work

While SCL-RHE is highly effective for real-world human noise and moderate synthetic noise (up to 20%), it trails slightly behind specialized methods when synthetic noise reaches extreme levels (40%+). This is expected, as the method is specifically tailored for the visual similarity characteristic of human error rather than total randomness. Additionally, the method requires an estimate of the human error rate ((\tau)) as a hyperparameter. While the model is relatively insensitive to minor fluctuations in this value, future work could focus on automated methods for estimating (\tau) in novel datasets.

7. Conclusion

SCL-RHE provides a computationally efficient and theoretically grounded approach to mitigating human-labeling errors in supervised contrastive learning. By focusing on hard positives and leveraging a PU learning framework, it bridges the gap between synthetic noise research and the practical realities of human-annotated data.

Summary updated

BibTeX
@inproceedings{long2024understanding,
  author = {Zijun Long and Lipeng Zhuang and George Killick and Richard McCreadie and Gerardo Aragon-Camarasa and Paul Henderson},
  title = {{Understanding and Mitigating Human-Labelling Errors in Supervised Contrastive Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72949-2\_25},
}
Figure