Abstract
Semi-supervised learning (SSL) often relies on pseudo-labeling, where a model generates labels for unlabeled data to expand its own training set. However, deep neural networks frequently suffer from over-confidence, assigning high probability scores to incorrect predictions, particularly near decision boundaries. This paper introduces Energy-Based Pseudo-Labeling (EBPL), a framework that addresses this calibration gap. By integrating an Energy-Based Model (EBM) with a standard classifier, EBPL learns the underlying data distribution to produce better-calibrated confidence scores. Experimental results across various benchmarks, including CIFAR-10 and MedMNIST, demonstrate that EBPL significantly improves classification accuracy and reduces calibration error in scenarios with extremely limited labeled data.
Introduction
In the realm of semi-supervised learning, the scarcity of labeled data is the primary bottleneck. Pseudo-labeling (PL) offers a solution by leveraging a small labeled dataset to train an initial model, which then "labels" a larger pool of unlabeled data. Samples that meet a specific confidence threshold are incorporated into the training process as if they were ground-truth labels.
The fundamental flaw in this approach is the "over-confidence" of modern neural networks. These models often output high posterior probabilities for samples they are actually misclassifying. While techniques like temperature scaling can mitigate this, they typically require a separate validation dataset to tune hyperparameters—a luxury not available in low-data regimes where every labeled sample is critical for training. EBPL seeks to calibrate confidence scores during the training process itself, using the unlabeled data already present in the pipeline.
Methodology: Energy-Based Pseudo-Labeling
1. Joint Hybrid Architecture
EBPL utilizes a hybrid model architecture where a classifier and an Energy-Based Model (EBM) share the same feature extraction layers. While the classifier focuses on learning the decision boundaries between classes, the EBM is tasked with learning the underlying distribution of the input data, $p(x)$.
2. Density-Driven Calibration
By estimating the data density, the model gains a "sense of place" for each input. When a sample falls into an ambiguous or low-density region—such as the "no-man's land" between two clusters—the EBM's influence naturally pushes the classifier to output lower posterior probabilities. This mechanism ensures that the model's confidence is grounded in how well the sample fits the known data distribution, rather than just its proximity to a decision boundary.
3. Soft Pseudo-labels and Curriculum Selection
Unlike traditional PL methods that use "hard" labels (assigning a sample 100% to a single class), EBPL employs "soft" labels. These preserve the full probability distribution, maintaining vital uncertainty information for subsequent training iterations. Furthermore, the algorithm follows a curriculum-inspired selection process, gradually increasing the percentage of unlabeled data incorporated into training, starting with the most confident and well-calibrated samples.
4. Stochastic Gradient Langevin Dynamics (SGLD)
To address the mathematical intractability of training EBMs, the authors utilize Stochastic Gradient Langevin Dynamics (SGLD). This sampling technique allows the model to effectively explore the data manifold and refine its understanding of the input distribution without requiring explicit normalization.
Experimental Evaluation
The researchers evaluated EBPL across seven diverse datasets to ensure its robustness:
- Standard Benchmarks: CIFAR-10, SVHN, and Fashion-MNIST.
- Medical Benchmarks (MedMNIST): Blood-MNIST, OrganA-MNIST, OrganC-MNIST, and OrganS-MNIST.
To simulate real-world data scarcity, labeled data was reduced to approximately 1% of the original training sets. For instance, in some tests, the model was provided with as few as one labeled image per class.
Key Results
Superior Accuracy
EBPL consistently outperformed baseline pseudo-labeling methods. On the CIFAR-10 dataset with only 350 labels, EBPL achieved an accuracy of 53.63%, a substantial improvement over the baseline's 41.42%. The performance gap was particularly pronounced in the lowest-data regimes, where EBPL's accuracy curve rose much more steeply as unlabeled data was introduced.
Improved Calibration
The Expected Calibration Error (ECE)—which measures the discrepancy between a model’s predicted confidence and its actual accuracy—was significantly reduced. On the Blood-MNIST dataset, EBPL lowered the ECE from approximately 14.5% to 9.8%, indicating that the model's confidence scores are much more reliable indicators of truth.
Diversity and Bias Reduction
Qualitative analysis using t-SNE plots revealed that EBPL selects a more diverse and representative set of unlabeled samples. Traditional methods often suffer from selection bias, over-sampling from "easy" classes and ignoring complex samples, whereas EBPL’s density-aware approach ensures a more balanced representation of the data manifold.
Conclusion and Future Work
EBPL represents a significant step forward for semi-supervised learning by providing a validation-free method for confidence calibration. By forcing the model to act as both a classifier and a generative model, it gains the ability to recognize its own uncertainty in low-density regions.
While the results are promising, the approach does introduce higher computational costs due to the SGLD sampling process. Additionally, scaling EBMs to high-resolution imagery remains a challenge. Future research may explore using the EBM component for outlier detection, allowing the model to automatically reject "garbage" data or out-of-distribution samples that do not belong to the target classes.
Summary updated