Abstract
In this work, we propose Reciprocal Distribution Alignment (RDA) to address semi-supervised learning (SSL), which is a hyperparameter-free framework that is independent of confidence threshold and works with both the matched (conventionally) and the mismatched class distributions. Distribution mismatch is an often overlooked but more general SSL scenario where the labeled and the unlabeled data do not fall into the identical class distribution. This may lead to the model not exploiting the labeled data reliably and drastically degrade the performance of SSL methods, which could not be rescued by the traditional distribution alignment. In RDA, we enforce a reciprocal alignment on the distributions of the predictions from two classifiers predicting pseudo-labels and complementary labels on the unlabeled data. These two distributions, carrying complementary information, could be utilized to regularize each other without any prior of class distribution. Moreover, we theoretically show that RDA maximizes the input-output mutual information. Our approach achieves promising performance in SSL under a variety of scenarios of mismatched distributions, as well as the conventional matched SSL setting.
Introduction
Most semi-supervised learning (SSL) algorithms, such as FixMatch, rely on the "matched distribution" assumption: the premise that labeled and unlabeled data share identical class proportions. In real-world applications, this assumption is frequently violated due to biased sampling or missing labels. When distributions are mismatched, standard SSL techniques often fail. Fixed confidence thresholds can bias models toward over-represented classes, and traditional Distribution Alignment (DA) may inadvertently force models to learn incorrect priors.
To address these issues, we introduce Reciprocal Distribution Alignment (RDA), a framework that is robust to distribution mismatches without requiring manual hyperparameter tuning or prior knowledge of the unlabeled distribution.
Methods
The core of RDA is the interaction between two classifiers: a Default Classifier (DC) predicting standard pseudo-labels and an Auxiliary Classifier (AC) predicting "complementary" labels (e.g., "this is not a dog").
The framework utilizes a Reverse Operation to transform probability distributions between standard and complementary labels. Instead of aligning predictions to a fixed prior, RDA employs a moving average of the other classifier's reversed predictions. This creates a reciprocal feedback loop where the two classifiers regularize each other. This process is theoretically shown to maximize input-output mutual information, encouraging the model to make diverse yet confident predictions across the entire dataset without discarding low-confidence samples.
Results and Discussion
RDA was evaluated on standard benchmarks (CIFAR-10, CIFAR-100, STL-10, and mini-ImageNet) under various mismatch protocols. The results demonstrate significant improvements over state-of-the-art methods:
- Scarce Labels: On CIFAR-10 with only 20 labels, RDA achieved 92.03% accuracy, outperforming CoMatch by over 3.5%.
- Extreme Mismatch: In scenarios with heavily mismatched distributions, RDA outperformed CoMatch by a staggering 52.09% in accuracy gain.
- Robustness: RDA is hyperparameter-free regarding distribution alignment, allowing it to work "out of the box" across different datasets without re-tuning thresholds.
By moving away from rigid confidence thresholds, RDA avoids the "confirmation bias" loops that plague traditional SSL. While the dual-classifier architecture increases computational overhead, the performance gains in challenging, real-world distribution scenarios justify the cost. Future work will explore the application of RDA to open-set SSL, where unlabeled data may contain entirely novel classes.
Summary updated