TL;DR
Semi-supervised learning methods easily fall prey to "confirmation bias" by generating overconfident, incorrect pseudo-labels. This paper demonstrates that model calibration strongly correlates with downstream performance and proposes BAM (Bayesian Model Averaging), which replaces the final network layer with an approximate Bayesian Neural Network to produce well-calibrated predictions. This simple modification yields dramatic gains—up to a 16.2% accuracy boost on label-scarce vision benchmarks—with negligible computational overhead.
What Problem Does This Paper Address?
Modern semi-supervised learning (SSL) combines consistency regularization with pseudo-labeling: models guess the labels of unlabeled inputs and train against their own predictions. Because objectives like cross-entropy encourage high-confidence predictions (driving decision boundaries into low-density data regions), uncalibrated models quickly become overconfident in their own mistakes. This loop—termed confirmation bias—causes pseudo-label quality to collapse as training proceeds.
While existing approaches attempt to patch this using fixed confidence thresholds or heuristic regularizations, they optimize almost entirely for raw classification performance rather than addressing calibration (the alignment between predictive confidence and true accuracy).
Methods
The authors ground their methodology in PAC-Bayes generalization bounds, proving that under SSL, generalization error is upper-bounded by the negative Evidence Lower Bound (ELBO) plus the divergence between pseudo-labels and ground-truth distributions.
To directly improve calibration without heavy compute penalties, they propose:
- Bayesian Model Averaging (BAM): Rather than turning the entire network Bayesian, only the final layer (the linear classification head or projection head) is replaced with an approximate Bayesian Neural Network (BNN) trained via variational inference (Bayes by Backprop).
- Monte Carlo Prediction & Variance Filtering: During unlabeled pseudo-labeling, $M$ weight vectors (typically $M=50$) are sampled from the variational posterior. The pseudo-label is the ensemble mean ($\hat{q}$). Instead of filtering by maximum probability, acceptance is gated by the variance of the predicted class ($\sigma_c^2$), accepting samples below a dynamic batch quantile $Q$.
- Weight Averaging (SWA and EMA): For representation-learning frameworks lacking an explicit parametric classifier (like PAWS), the authors show that weight averaging over time (Stochastic Weight Averaging and Exponential Moving Average) acts as an alternative network-wide calibration mechanism.
Datasets
- Standard Vision Benchmarks: CIFAR-10, CIFAR-100 (evaluated across various label splits, e.g., 250, 400, 2500, 4000, and 10000 labels), and ImageNet (10% labeled split).
- Long-Tailed Vision Benchmarks: CIFAR-10-LT and CIFAR-100-LT with exponential class imbalance ratios $\alpha \in \{10, 100\}$.
- Scientific Benchmark (Photonics): A 5-class band-gap classification dataset derived from numerical Maxwell equation simulations of 2D periodic photonic crystals (PhC-10% and PhC-1% label splits).
Key Insights and Ideas
- Calibration directly unlocks soft pseudo-labels: Baseline UDA normally underperforms FixMatch because soft labels leak incorrect probability mass to wrong classes when poorly calibrated. However, once calibrated via BAM, soft pseudo-labels (using reduced sharpening, $t=0.9$) provide richer multi-class signals, allowing BAM-UDA to leapfrog FixMatch.
- Predictive variance beats max-probability thresholds: Filtering pseudo-labels by disagreement across posterior weight samples identifies uncertainty far more effectively than softmax confidence values, preventing the model from reinforcing early mistakes.
- Weight averaging acts as calibration: The long-standing empirical utility of EMA and SWA in SSL can be directly explained by their ability to lower Expected Calibration Error (ECE) and stabilize representation representations.
Key Results
- CIFAR-100 (400 labels): BAM-UDA boosted test accuracy from 44.1% to 60.3% (+16.2% absolute improvement) while cutting ECE from 0.473 to 0.314. BAM-FixMatch gained +2.6% (56.4% $\to$ 59.0%).
- CIFAR-10 (250 labels): BAM-PAWS lifted accuracy from 90.5% to 94.5% (+4.0%).
- ImageNet-10%: Adding EMA to PAWS improved top-1 accuracy from 74.4% to 75.1% while reducing ECE.
- Long-Tailed & Scientific Datasets: On CIFAR-100-LT ($\alpha=10$), BAM-UDA improved performance by +4.8% (53.6% vs. 48.8% for FixMatch), with the largest gains occurring on the rarest classes. On the real-world photonics dataset, BAM-UDA improved accuracy from 78.8% to 81.0% (10% labels) and from 55.0% to 56.9% (1% labels).
- Efficiency: Restricting the BNN to the final layer added only 2–5% wall-clock overhead during training.
Limitations and Future Work
- Calibration Metric Biases: Calibration was measured using Expected Calibration Error (ECE), which suffers from known binning and estimation biases, although the authors found it empirically correlated well with purity rates and accuracy.
- Extreme Label Scarcity: Ultra-low label regimes (e.g., CIFAR-10 with 40 labels) were excluded from the main evaluation due to excessive sensitivity to initial random seed selection.
- Broader Architectures and Domains: While tested on CNNs and scientific vision tasks, future work remains to explore calibration-guided SSL on large vision transformers (ViTs) and multi-modal settings.
Summary updated