Abstract
We introduce MarginMatch, a new semi-supervised learning (SSL) approach that combines consistency regularization and pseudo-labeling. Its core novelty lies in using unlabeled data training dynamics to measure pseudo-label quality. Instead of relying solely on a model's instantaneous confidence, MarginMatch analyzes the behavior of pseudo-labeled examples over time—specifically through "pseudo-margins"—to ensure low-quality predictions are filtered out. MarginMatch achieves substantial improvements on major vision benchmarks, particularly in low-data regimes, including a 3.25% error rate reduction on CIFAR-100 with 25 labels per class and a 3.78% reduction on STL-10 with only 4 labels per class.
Introduction: The "Myopic" Confidence Problem
Semi-supervised learning (SSL) aims to train powerful models using a small amount of labeled data and a large pool of unlabeled data. Modern techniques like FixMatch and FlexMatch generate "pseudo-labels" by treating high-confidence model predictions on unlabeled images as ground truth. However, these methods often suffer from a "myopic" limitation: they only consider the model's confidence at the current iteration. If a model is miscalibrated or overconfident about a wrong guess, it creates a feedback loop of errors known as confirmation bias.
As shown above, even high-confidence thresholds can let in incorrect labels, which stunts the model's eventual performance. MarginMatch addresses this by looking at the stability of predictions over time.
Methods: Leveraging Training Dynamics
MarginMatch shifts the focus from a single snapshot of confidence to the history of the model's behavior. It introduces the concept of Pseudo-Margins (PM)—the gap between the logit (raw output) of the predicted class and the largest logit of any other class.
The core novelty is the Average Pseudo-Margin (APM), which tracks these margins across training iterations using an Exponential Moving Average (EMA). By prioritizing stability over instantaneous confidence, MarginMatch can flag and mask potentially harmful, unstable pseudo-labels. To set an optimal threshold for the APM, the authors use a "virtual class" proxy: they intentionally mislabel a subset of data to observe the training dynamics of "bad" labels, using this as a dynamic cutoff for the rest of the dataset.
Experimental Results
The authors evaluated MarginMatch on six major computer vision benchmarks, focusing on label-scarce scenarios.
Key Performance Gains
MarginMatch consistently outperformed strong baselines, particularly when labeled data was extremely scarce:
- CIFAR-100: Achieved a 3.25% improvement in error rate over the state-of-the-art with only 25 labels per class.
- STL-10: Improved error rates by 3.78% using just 4 labels per class.
- ImageNet: Pushed the state-of-the-art error rate down by 0.97% (Top-1).
Convergence and Stability
Analysis shows that while MarginMatch might mask more data initially (higher mask rate), the data it does accept has significantly lower "impurity" (fewer incorrect labels). This leads to faster and more stable convergence, as seen in the training curves for CIFAR-100 and SVHN where MarginMatch reaches lower error rates significantly faster than FixMatch.
Conclusion
MarginMatch demonstrates that training dynamics are a powerful signal for improving pseudo-label quality in semi-supervised learning. By filtering out unstable predictions that standard confidence-based methods miss, MarginMatch sets new state-of-the-art results in extremely low-data regimes. Future work will explore the robustness of pseudo-margins when the unlabeled set contains out-of-distribution images.
Summary updated