Semi-supervised learning trains a classifier from a few labeled images plus many unlabeled ones. The most common approach is pseudo-labeling: the model labels the unlabeled images itself and trains on the guesses it is confident about. With only one to four labels per class this becomes a gamble. FixMatch reports a median of 64.28% on CIFAR-10 with one label per class, and up to 78% when the labeled examples happen to be representative. The run's outcome depends on which images got labeled and on early mistakes the model then reinforces. We propose a regularizer that keeps the feature space spread out without consulting any labels or pseudo-labels, so it cannot inherit the model's early mistakes. The regularizer is whitening, a transform that makes the features of a batch uncorrelated with unit variance. We apply it in groups of feature dimensions, reshuffled at every step, and train it jointly with pseudo-labeling in a single stage.
The core claim is that most of the benefit of self-supervised pre-training for barely supervised learning comes from preventing dimensional collapse, where features squeeze into a low-dimensional subspace. We claim this can be obtained inside one training run by a negative-free, label-independent whitened consistency loss. We further claim this beats regularizers that shape the embedding using pseudo-labels, such as CoMatch's graph, specifically on the variance across labeled-set draws, not only on mean accuracy. The prediction is concrete: runs that fail under FixMatch show a drop in feature effective rank before their pseudo-label accuracy locks in, and our regularizer removes that drop.
What exists and what is missing
Whitening as an anti-collapse tool is established in self-supervised learning. W-MSE whitens embeddings and matches positive pairs with a mean-squared error, removing the need for negative pairs. It also finds that adding a negative-pair contrastive loss on top of whitening hurts. This shapes our design: we add no InfoNCE term. On Feature Decorrelation in Self-Supervised Learning shows that batch normalization alone does not prevent dimensional collapse. Its Shuffled-DBN method randomly permutes dimensions before whitening them in groups, and reaches 89.50% versus 86.32% for static decorrelated batch normalization. We reuse this shuffling. WhitenedCSE treats shuffled group whitening as a feature-level augmentation for sentence embeddings, and GWGCL uses group whitening for negative-free graph pre-training. All four are pure pre-training methods evaluated by linear probes. None puts whitening inside a pseudo-labeling loop, where the question is whether it changes which pseudo-labels get accepted.
On the label-scarcity side, three works motivate the gap. SelfMatch shows that SimCLR pre-training followed by FixMatch lifts 40-label CIFAR-10 from 86.19% to 93.19%, but it uses two separate stages and negative pairs. CoMatch works in a single stage and reaches 93.09% with 4 labels per class. Its embedding regularizer, however, is a graph built from the model's own class predictions, maintained with a memory bank and a momentum encoder, so a wrong early prediction can bend the embedding toward itself. FlexMatch addresses starved classes by adapting per-class confidence thresholds, which works entirely at the output. The one prior paper that pairs whitening with unlabeled-data consensus training is Roy et al.. Its whitening is domain-specific and serves to align source and target statistics under domain shift. It is not an anti-collapse loss and was not tested in single-domain, few-label settings.
Method
We start from FixMatch unchanged: weak and strong augmentations, a confidence threshold, and hard pseudo-labels. We attach a small projection head $h$ to the backbone. At each step we sample a random permutation $\pi$ of the $d$ projection dimensions and split them into $g$ groups of size $m=d/g$. Each group is whitened with ZCA over the unlabeled batch, using the Newton iteration from Group Whitening to avoid eigendecompositions. ZCA whitening rotates decorrelated features back toward the original axes, and we use it because Decorrelated Batch Normalization found that PCA whitening swaps axes unstably between batches. The added loss is
$$ L_{W} = \frac{1}{N}\sum_{i=1}^{N} \left\| W_\pi\big(h(x_i^{w})\big) - W_\pi\big(h(x_i^{s})\big) \right\|^2 , $$
where $x_i^{w}$ and $x_i^{s}$ are the weak and strong views of unlabeled image $i$, $N$ is the unlabeled batch size, and $W_\pi$ is the grouped whitening under permutation $\pi$, with statistics computed from both views jointly. The total loss is the FixMatch loss plus $\lambda L_W$, where $\lambda$ is a weighting coefficient.
$L_W$ never reads a label or pseudo-label, and this is the property we test. Grouping keeps each covariance estimate well-conditioned, because a group only needs $N>m$ samples rather than $N>d$. Shuffling prevents correlations between groups from being permanently ignored. The backbone keeps ordinary batch normalization, so the classifier path matches FixMatch exactly.
Research Program
The work has three parts. First, we measure how collapse and lock-in relate in plain FixMatch. Across many draws of the labeled set, we log over training the effective rank of backbone and projection features, the per-class pseudo-label accuracy, and the fraction of unlabeled images that pass the threshold. Then we test whether rank drops precede lock-in in failed runs. If they do not, the premise is wrong and we report that.
Second, we add $L_W$ and test whether it removes the rank drop and narrows the spread across labeled-set draws.
Third, we probe the tension raised by the constraint-number analysis in Group Whitening, which shows that too many whitening constraints reduce what features can represent. We sweep the group size $m$ and check whether the hardest and rarest classes are helped or hurt. This directly asks whether whitening's uniformity pressure conflicts with class clustering when a class has almost no labels.
Baselines
The naive reference is FixMatch with batch normalization, rerun in our codebase on the same labeled splits. FixMatch reports 88.61% at 40 CIFAR-10 labels and a 64.28% median at one label per class. Our rerun must reproduce these within noise before any comparison counts.
The strongest single-stage competitor is CoMatch, which reports 93.09% at 4 labels per class on CIFAR-10 and 66.0% top-1 with 1% of ImageNet labels (CoMatch). We run it from the same backbone and labeled splits, with an equal number of training iterations. We tune its graph and memory-bank hyperparameters with the same number of trials we give $\lambda$ and $m$.
The strongest two-stage competitor is SelfMatch, which reports 93.19% at 40 labels (SelfMatch). We compare it both at equal total GPU-hours, where it has to split its budget between pre-training and fine-tuning, and at its native budget.
On CIFAR-100 with 400 labels, the reference is FlexMatch's 39.94% error (FlexMatch). Because our loss is independent of the thresholding scheme, we also test FlexMatch combined with $L_W$.
Four ablations isolate the key ingredient. We replace whitening with batch normalization on the projection head, keeping the MSE term. We use static rather than shuffled groups. We use full, ungrouped whitening. Finally, we make the regularizer depend on pseudo-labels by whitening per pseudo-class. That last ablation directly tests label-independence, and our claim predicts it will be worse on failing seeds.
Beating a baseline means the following. At 40 labels, we must match CoMatch's mean within the seed standard error while reducing the spread across labeled-set draws. At one label per class, we must raise the median and the worst decile over FixMatch and CoMatch. Mean improvements that fall inside the seed noise do not count as wins.
Why not just…?
Why not just keep batch or group normalization? Batch normalization rescales each dimension on its own and leaves correlations between dimensions intact. Hua et al. show it does not stop dimensional collapse. The projection-head batch normalization ablation measures this directly inside the semi-supervised loop.
Why not just pre-train with SimCLR first, as SelfMatch does? This is a real threat, since SelfMatch's 93.19% is the highest 40-label figure in our file. Our case rests on two things: equal total compute, and the idea that label-independence can operate throughout training rather than only at initialization. If SelfMatch still wins on both mean and spread at equal budget, we will report that single-stage whitening offers only an efficiency tradeoff.
Why not just use adaptive thresholds like FlexMatch? Thresholds decide which predictions to trust but cannot fix the features those predictions come from. FlexMatch itself notes its difficulty with imbalanced data such as SVHN. Because the two methods act on different parts of the model, we test FlexMatch with $L_W$. If adding $L_W$ yields nothing over FlexMatch, the latent-space argument fails.
Why not just add a soft decorrelation penalty on the covariance matrix instead of an explicit whitening transform? This is the cheapest competitor, and the file contains no study comparing it to whitening. We include it as an ablation at equal tuning budget. If it matches whitening, we will present the finding as "label-independent decorrelation" rather than whitening specifically.
Proposed Experiments
We run CIFAR-10 at 10, 40, and 250 labels, CIFAR-100 at 400 labels, SVHN for class imbalance, and STL-10 for unlabeled data containing out-of-distribution images. The ImageNet 1% split confirms scale if the CIFAR results hold. For every setting we use at least ten labeled-set draws. We report mean, median, worst-decile accuracy, and per-class accuracy for the hardest classes.
The decisive checks are these. We first need to see collapse precede lock-in in failing FixMatch runs. $L_W$ must then remove that collapse and shrink the spread across draws. The pseudo-label-dependent whitening ablation must do worse on exactly those failing draws. If the first check fails, the mechanism story is wrong. If the last check fails, label-independence is not the active ingredient, and the proposal reduces to "W-MSE as an auxiliary loss."
References
- FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
- Whitening for Self-Supervised Representation Learning
- On Feature Decorrelation in Self-Supervised Learning
- WhitenedCSE: Whitening-based Contrastive Learning of Sentence Embeddings
- Graph Contrastive Learning with Group Whitening
- SelfMatch: Combining Contrastive Self-Supervision and Consistency for Semi-Supervised Learning
- CoMatch: Semi-supervised Learning with Contrastive Graph Regularization
- FlexMatch: Boosting Semi-Supervised Learning with Curriculum Pseudo Labeling
- Unsupervised Domain Adaptation Using Feature-Whitening and Consensus Loss
- Group Whitening: Balancing Learning Efficiency and Representational Capacity
- Decorrelated Batch Normalization