NorMatch: Matching Normalizing Flows with Discriminative Classifiers for Semi-Supervised Learning

Zhongying Deng, Rihuan Ke, Carola-Bibiane Schönlieb, Angelica I. Avilés-Rivero

Abstract

Semi-supervised learning (SSL) often relies on pseudo-labeling, which is prone to "confirmation bias"—a phenomenon where models reinforce their own incorrect but confident predictions. NorMatch addresses this by introducing a dual-classifier framework that pairs a standard discriminative classifier with a generative Normalizing Flow classifier. By requiring consensus between these two mathematically distinct models, NorMatch effectively filters noisy pseudo-labels without the need for manually tuned confidence thresholds. Experimental results on benchmarks like CIFAR-10 and STL-10 demonstrate that NorMatch achieves state-of-the-art performance, particularly in low-label regimes.

Introduction

Semi-supervised learning leverages small amounts of labeled data alongside large unlabeled datasets. A common technique is pseudo-labeling, where a model generates labels for unlabeled data to use as training targets. However, this often leads to confirmation bias: if a model is confidently wrong, it trains on its own errors, accumulating noise. Traditional solutions involve hard confidence thresholds (e.g., FixMatch), but these are sensitive to hyperparameters and often discard valuable "hard" samples that fall just below the cutoff.

Conceptual comparison showing how combining discriminative and normalizing flow classifiers identifies uncertain regions.

The core insight of NorMatch is that discriminative and generative classifiers fail in different ways due to their different mathematical foundations (cosine similarity vs. Euclidean distance). Their consensus serves as a more reliable signal for pseudo-labeling than a single model's confidence score.

Methodology

NorMatch introduces a novel architecture that utilizes two distinct classification heads: a standard Discriminative Classifier and a Normalizing Flow Classifier (NFC).

Normalizing flow for Consensus-based Uncertainty Estimation (NCUE)

The primary mechanism in NorMatch is the consensus between the two classifiers. The discriminative classifier typically uses cosine similarity and Softmax, while the NFC acts as a generative model. When both models agree on a label, the sample is assigned a high weight. If they disagree, the sample's importance is downweighted based on the minimum probability of the two models. This continuous weighting scheme allows the system to learn from difficult samples without being overwhelmed by noise, avoiding the binary "keep/discard" nature of traditional thresholding.

The NorMatch architecture featuring dual classifiers, the consensus mechanism, and the stop-gradient trick.

Normalizing flow for Unsupervised Modeling (NUM)

The NFC also performs unsupervised modeling by maximizing the likelihood of unlabeled data. This helps the generative classifier capture the underlying data distribution, providing a stable anchor for the discriminative model. A critical implementation detail is the "stop gradient" applied to the NFC's path back to the CNN backbone, ensuring that the generative task does not interfere with the feature extraction required for the primary classification task.

Experimental Results

NorMatch was evaluated on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, STL-10, and Mini-ImageNet. The framework showed significant gains, particularly in extremely low-label scenarios. For instance, on CIFAR-10 with only 40 labels, NorMatch achieved 94.70% accuracy, significantly outperforming FixMatch (86.19%) and Dash (86.78%). On STL-10, it reached 81.38% accuracy, setting a new state-of-the-art.

Despite the addition of a second classifier, the NFC is computationally efficient, adding only 0.08M parameters and 0.08M MACs. This makes NorMatch a practical solution for improving SSL performance without substantial hardware overhead.

Conclusion

By leveraging the diverse failure modes of discriminative and generative models, NorMatch provides a robust, threshold-free approach to semi-supervised learning. The consensus mechanism effectively mitigates confirmation bias while retaining informative samples that traditional thresholding methods would discard. Future work could explore applying this consensus-based approach to other domains such as Natural Language Processing or 3D point cloud analysis.

Summary updated

BibTeX
@article{deng2024normatch,
  author = {Zhongying Deng and Rihuan Ke and Carola-Bibiane Schönlieb and Angelica I. Avilés-Rivero},
  title = {{NorMatch: Matching Normalizing Flows with Discriminative Classifiers for Semi-Supervised Learning}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
}
Figure