InstanT: Semi-supervised Learning with Instance-dependent Thresholds

Muyang Li, Runze Wu, Haoyu Liu, Jun Yu, Xun Yang, Bo Han, Tongliang Liu

Introduction

Semi-supervised learning (SSL) aims to leverage large amounts of unlabeled data alongside a small set of labeled examples. A cornerstone of modern SSL is pseudo-labeling, where a model generates labels for unlabeled data. These labels are only accepted if the model's confidence exceeds a predefined threshold. However, traditional approaches using uniform or class-dependent thresholds often fail to account for the varying difficulty of individual data points, leading to "confirmation bias" where the model reinforces its own errors on ambiguous samples.

The Problem with Fixed Thresholds

Most SSL frameworks use either a uniform threshold (a single value for all data) or a class-dependent threshold (adjusting the bar based on class-level difficulty). While class-dependent methods are an improvement, they still treat all instances within a class as equally difficult. In reality, some samples are much harder to identify than others due to occlusion, lighting, or inherent ambiguity. InstanT addresses this by introducing the highest degree of freedom: instance-level thresholds.

Comparison of uniform, class-dependent, and instance-dependent thresholds. InstanT provides the highest flexibility by tailoring the bar to each specific sample.

The InstanT Framework

The authors propose InstanT (Instance-dependent Thresholding), a framework that treats every unlabeled instance as a unique case. The system consists of two primary components working in parallel: a standard classifier and a Noise Transition Estimator.

1. Noise Transition Estimator

To determine a custom threshold, the model must estimate the likelihood of error for a specific sample. InstanT employs a parallel neural network called the Noise Transition Estimator to approximate the instance-dependent transition matrix $T(x)$. This matrix models the probability that a sample with true label $i$ will be misclassified as label $j$.

2. Dynamic Instance-level Thresholds

Instead of a static value (e.g., 0.95), the threshold $\tau(x_u)$ for an unlabeled instance $x_u$ is dynamically calculated using the estimated noise rates. If the estimator identifies a sample as being in a high-noise region of the feature space, the threshold is automatically raised to prevent incorrect pseudo-labels from entering the training set.

3. Forward Loss Correction

To further mitigate the impact of potentially noisy pseudo-labels, InstanT uses the estimated noise matrix to "correct" the classifier's loss function. This technique ensures the model's softmax predictions approximate the true, clean class distribution rather than the noisy one.

The InstanT architecture. A classifier and a Noise Transition Estimator work in parallel to generate instance-specific thresholds and correct for label noise.

Experimental Results

InstanT was evaluated on standard benchmarks including CIFAR-10, CIFAR-100, and STL-10, using both Vision Transformer (ViT) and Wide ResNet backbones. It consistently outperformed state-of-the-art (SOTA) methods like AdaMatch and FlexMatch.

  • Extreme Label Scarcity: On CIFAR-10 with only 10 labeled samples (1 per class), InstanT achieved 87.32% accuracy, outperforming the previous best by over 2%.
  • Robust Performance: On CIFAR-100 with 400 labels, the method reached 78.80% accuracy, a nearly 3% improvement over existing baselines.
  • Computational Efficiency: Despite the extra noise estimator, the computational overhead is minimal. On STL-10, training time per epoch was 31.1s, compared to 30.1s for AdaMatch—a negligible difference for a significant accuracy gain.

Key Insights and Theoretical Contributions

  • Theoretical Guarantees: The paper provides a mathematical proof (Theorem 1) showing that as noise estimation improves, the probability of assigning a correct pseudo-label asymptotically approaches 1.
  • Identifiability: A major theoretical contribution is showing that the complex instance-dependent noise matrix can be identified in an SSL setting with as few as three informative labeled samples per class.
  • Quality vs. Quantity: InstanT finds a superior equilibrium in the "quality-quantity trade-off." While it might accept fewer unlabeled samples initially, the samples it does accept are significantly more likely to be correctly labeled, leading to more stable training.

Conclusion

InstanT represents a significant shift from generic to personalized thresholds in SSL. By explicitly modeling instance-level noise, it achieves superior performance, particularly in low-data regimes. Future work may extend this approach to other domains such as Natural Language Processing (NLP) or imbalanced datasets where instance difficulty varies significantly.

Summary updated

BibTeX
@inproceedings{li2023instant,
  author = {Muyang Li and Runze Wu and Haoyu Liu and Jun Yu and Xun Yang and Bo Han and Tongliang Liu},
  title = {{InstanT: Semi-supervised Learning with Instance-dependent Thresholds}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=txv7TnPvOi},
}
Figure