Abstract
Recent work has shown that using unlabeled data in semi-supervised learning is not always beneficial and can even hurt generalization, especially when there is a class mismatch between the unlabeled and labeled examples. We investigate this phenomenon for image classification on the CIFAR-10 and the ImageNet datasets, and with many other forms of domain shifts applied (e.g. salt-and-pepper noise). Our main contribution is Split Batch Normalization (Split-BN), a technique to improve SSL when the additional unlabeled data comes from a shifted distribution. We achieve it by using separate batch normalization statistics for unlabeled examples. Due to its simplicity, we recommend it as a standard practice. Finally, we analyse how domain shift affects the SSL training process. In particular, we find that during training the statistics of hidden activations in late layers become markedly different between the unlabeled and the labeled examples.
Introduction
Semi-supervised learning (SSL) aims to enhance model performance by utilizing large volumes of unlabeled data alongside a limited set of labeled examples. Standard SSL algorithms, such as Mean Teacher or Virtual Adversarial Training, typically operate under the assumption that labeled and unlabeled data are drawn from the same distribution.
However, in real-world applications, this assumption is frequently violated. Mismatches can occur in the form of class discrepancies (e.g., labeled dogs vs. unlabeled cats) or domain shifts (e.g., differences in image quality, orientation, or color). Research indicates that when such mismatches exist, SSL can paradoxically degrade model performance compared to purely supervised baselines. This paper introduces Split Batch Normalization (Split-BN) to mitigate these risks and ensure SSL remains robust under distribution shifts.
Methodology: Split Batch Normalization
The core proposal is Split Batch Normalization (Split-BN). Standard Batch Normalization (BN) normalizes hidden activations using the mean ($\mu$) and standard deviation ($\sigma$) of a batch, followed by applying learnable affine parameters ($\alpha$ and $\beta$).
Split-BN modifies this process in two key ways:
- Separate Statistics: During training, the model calculates $\mu$ and $\sigma$ independently for labeled and unlabeled examples within the same batch.
- Shared Parameters: The learnable parameters ($\alpha$ and $\beta$) are shared across both groups. This configuration forces the network to learn consistent high-level representations while allowing the normalization layers to adapt to the distinct low-level statistics of each domain.
During inference, the model utilizes the statistics corresponding to the target domain, which is typically the labeled/clean distribution. This approach is computationally efficient and easy to integrate into existing architectures.
Experimental Setup
The effectiveness of Split-BN was evaluated on CIFAR-10, ImageNet, and a custom benchmark, 8A8O-ImageNet (8 animal and 8 "other" classes), designed to study class mismatch at higher resolutions. To simulate various domain shifts, the researchers applied seven types of synthetic distortions to the unlabeled data.
Results and Discussion
Overcoming Performance Degradation
On CIFAR-10 with a 100% class mismatch, standard Mean Teacher accuracy fell to 73.9%, below the 77.0% supervised baseline. Split-BN successfully restored performance to 76.2%, effectively neutralizing the penalty of out-of-distribution unlabeled data. Similarly, in the presence of heavy distortions like rotation or color inversion, Split-BN prevented the 1–4% accuracy drops observed with standard SSL methods.
Insights into Training Dynamics
- Late-Layer Divergence: Analysis of hidden activations revealed that the statistics of labeled and unlabeled data diverge most sharply in the network's later layers. Split-BN addresses this by allowing these layers to specialize their normalization.
- Optimization Efficiency: Domain shift complicates the optimization landscape. Split-BN was found to significantly lower auxiliary unsupervised loss—sometimes by an order of magnitude—compared to standard BN.
- Fundamental Nature of the Problem: The authors confirmed that distribution mismatch is a fundamental SSL issue, not merely a side effect of Batch Normalization. Architectures without BN also suffered from domain shift, positioning Split-BN as a targeted remedy for this broader problem.
Conclusion
Split Batch Normalization provides a "safety net" for semi-supervised learning. While it does not always guarantee massive performance gains—particularly in high-shift scenarios like 8A8O-ImageNet—it consistently prevents the catastrophic performance degradation seen when unlabeled data is out-of-distribution. Future research may explore methods to better align these distributions to extract more useful features from shifted data, moving beyond simple robustness toward active performance enhancement.
Summary updated