Dash: Semi-Supervised Learning with Dynamic Thresholding

Yi Xu, Lei Shang, Jinxing Ye, Qi Qian, Yu-Feng Li, Baigui Sun, Hao Li, Rong Jin

Introduction

Semi-supervised learning (SSL) has emerged as a critical paradigm for training deep neural networks when labeled data is scarce but unlabeled data is abundant. A dominant approach in SSL is pseudo-labeling, where the model generates labels for unlabeled samples and incorporates them into the training set if the model's confidence exceeds a certain threshold. However, state-of-the-art methods like FixMatch rely on a fixed threshold, which acts as a significant bottleneck.

The Problem with Fixed Thresholds

A static threshold is often a "blunt instrument" that fails to account for the model's evolving state during training:

  1. Early Training: The model is initially weak and produces low-confidence predictions. A high fixed threshold discards potentially useful unlabeled data that could accelerate learning.
  2. Late Training: As the model matures, it may become overconfident in incorrect predictions. A fixed threshold might fail to filter these "poisonous" pseudo-labels, leading to performance degradation.

The Dash Framework: Dynamic Thresholding

To address these limitations, the authors propose Dash, a framework that employs a dynamic threshold that adapts as training progresses. Instead of a static value, Dash uses a threshold $\rho_t$ that decreases over time, typically following an exponential decay function: $\rho_t = C\gamma^{-(t-1)}\hat{\rho}$.

Comparison of dynamic threshold decay curves (different $\gamma$ values) against a standard fixed threshold.

This strategy allows the model to be more "permissive" early on, capturing a wider variety of unlabeled examples, and more "selective" later, ensuring only the most reliable pseudo-labels are used. Furthermore, Dash utilizes cross-entropy loss rather than simple prediction confidence to filter examples, allowing the model to consider the entire probability distribution.

Dash is also grounded in theoretical analysis; the authors provide a convergence guarantee for non-convex optimization, proving that their dynamic selection strategy leads the model toward a global optimum under the Polyak-Lojasiewicz condition.

Key Insights: More "Right," Fewer "Wrong"

The primary advantage of Dash is its ability to better manage the quality of pseudo-labels throughout the training lifecycle. By matching the threshold to the typical decay of a training loss curve, Dash effectively mimics the natural learning process.

Dash consistently selects more correct pseudo-labels (left) and fewer incorrect ones (right) than FixMatch as training progresses.

As shown in the experimental analysis, Dash identifies significantly more correct labels in the early epochs compared to FixMatch. More importantly, it successfully filters out incorrect labels as the model reaches maturity, preventing the "poisoning" effect common in fixed-threshold methods.

Experimental Results

Dash was evaluated on standard benchmarks including CIFAR-10, CIFAR-100, SVHN, and STL-10, focusing on "low-label" regimes where SSL is most valuable.

  • CIFAR-10 (40 labels): Dash achieved a 9.16% error rate, a substantial improvement over FixMatch's 11.39%.
  • SVHN (40 labels): Dash reached a 3.03% error rate, outperforming FixMatch (3.96%).
  • Robustness: On the STL-10 dataset, which contains out-of-distribution unlabeled data, Dash maintained state-of-the-art performance (3.96% error), demonstrating its safety and robustness.

Conclusion

Dash represents a significant step forward for semi-supervised learning by replacing rigid thresholds with a dynamic, loss-based selection mechanism. By adaptively filtering unlabeled data, Dash achieves superior performance in extremely low-data regimes while maintaining robustness against noisy or out-of-distribution examples. Future work may explore the application of dynamic thresholding in other domains such as Natural Language Processing and Speech Recognition.

Summary updated

BibTeX
@inproceedings{xu2021dash,
  author = {Yi Xu and Lei Shang and Jinxing Ye and Qi Qian and Yu-Feng Li and Baigui Sun and Hao Li and Rong Jin},
  title = {{Dash: Semi-Supervised Learning with Dynamic Thresholding}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=NTObQ5Lz66U},
}
Figure