Taming Overconfident Prediction on Unlabeled Data From Hindsight

Jing Li, Yuangang Pan, Ivor W. Tsang

TL;DR

This paper introduces ADaptive Sharpening (ADS), a novel plug-in module for semi-supervised learning (SSL) that tackles the problem of "overconfident predictions" in unlabeled data. By adaptively focusing on "informed" predictions and avoiding over-sharpening, ADS significantly improves the performance of existing SSL methods.

What Problem Does This Paper Address?

Semi-supervised learning (SSL) relies heavily on leveraging unlabeled data to improve model performance. A key component in many SSL methods is "prediction distillation," which aims to reduce the uncertainty in predictions made on unlabeled data. This is often done by encouraging the model to produce low-entropy (i.e., confident) predictions. However, current methods often fall into a trap: they either blindly accept the most probable class as the true label or suppress less probable ones. This can lead to "overconfident predictions," where the model becomes too certain about incorrect predictions, hindering effective learning. The paper addresses this by proposing a more nuanced approach to distillation that avoids these pitfalls.

Methods

The core contribution is the ADaptive Sharpening (ADS) mechanism, a dual-stage approach:

  1. Adaptive Selection via Sparsemax: Instead of relying on fixed thresholds (like in Pseudo-Labeling or Negative Sampling), ADS uses the sparsemax function. Sparsemax is a novel activation function that produces sparse probability distributions by adaptively identifying and selecting a subset of "promising" classes for each unlabeled sample. This is more flexible and less biased than hard thresholds, as it adapts to individual samples and training stages.
  2. Sharpening on Sparse Probabilities: After sparsemax has identified the informed classes, ADS then "sharpens" these probabilities. This is done by raising the sparse probabilities to a power, similar to the Sharpening (SH) method. However, ADS's sharpening is applied only to the informed predictions identified by sparsemax, and it's designed to avoid aggressively pushing already confident predictions to be even more certain, thus mitigating overconfidence.

The paper also discusses how ADS integrates with other SSL components like consistency regularization and supervised loss, proposing a modified supervised loss that works well with sparsemax.

Datasets

The paper evaluates ADS on standard image classification benchmarks:

  • MNIST
  • CIFAR-10
  • CIFAR-100
  • SVHN
  • STL-10

Key Insights and Ideas

  • Overconfidence is a real problem: The paper convincingly argues that existing distillation methods, by aiming for low-entropy predictions, can inadvertently lead to overconfident and incorrect predictions, which harms generalization.
  • Sparsemax is a powerful tool for adaptive selection: The use of sparsemax for selecting relevant classes is a key innovation. It offers a more principled and adaptive way to handle uncertainty compared to fixed thresholds.
  • "Informed" predictions are key: ADS's strategy of focusing only on "informed" predictions (those that are neither too certain nor too uncertain) is crucial for avoiding the overconfidence trap.
  • ADS as a plug-in: The method is designed to be easily integrated into existing SSL frameworks, making it a versatile tool for researchers.

Key Results

  • Significant improvements: When integrated with state-of-the-art SSL methods like Virtual Adversarial Training (VAT), MixMatch, and FixMatch, ADS consistently achieved lower test errors across various datasets.
  • Best performance on VAT: ADS demonstrated the lowest test error when combined with VAT on both MNIST and CIFAR-10 datasets, outperforming other distillation strategies.
  • Robustness: The method showed effectiveness even with different backbone architectures (ResNet and CNN13) and in scenarios with scarce labeled data.
  • Ablation studies confirmed: Experiments showed that both the sparsemax selection and the sharpening components of ADS contribute to its success.

Limitations and Future Work

  • Theoretical bounds: While the paper provides theoretical analysis and bounds for the thresholds used by ADS, the practical implementation relies on these derived bounds.
  • Future work: The authors suggest applying ADS to more diverse SSL tasks and unseen class scenarios. They also mention exploring its potential in other areas of machine learning.

Summary updated

Abstract

Minimizing prediction uncertainty on unlabeled data is a key factor to achieve good performance in semi-supervised learning (SSL). The prediction uncertainty is typically expressed as the entropy computed by the transformed probabilities in output space. Most existing works distill low-entropy prediction by either accepting the determining class (with the largest probability) as the true label or suppressing subtle predictions (with the smaller probabilities). Unarguably, these distillation strategies are usually heuristic and less informative for model training. From this discernment, this article proposes a dual mechanism, named adaptive sharpening (ADS), which first applies a soft-threshold to adaptively mask out determinate and negligible predictions, and then seamlessly sharpens the informed predictions, distilling certain predictions with the informed ones only. More importantly, we theoretically analyze the traits of ADS by comparing it with various distillation strategies. Numerous experiments verify that ADS significantly improves state-of-the-art SSL methods by making it a plug-in. Our proposed ADS forges a cornerstone for future distillation-based SSL research.
BibTeX
@article{li2024taming,
  author = {Jing Li and Yuangang Pan and Ivor W. Tsang},
  title = {{Taming Overconfident Prediction on Unlabeled Data From Hindsight}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2024},
  doi = {10.1109/tnnls.2023.3274845},
}
Figure