When only a few dozen images are labeled, practitioners still have to choose hyperparameters and decide when to stop training. The usual way is to hold out some labels and measure accuracy on them. With ten held-out labels that measurement is mostly noise. Picking the best of fifty candidate models on ten labels mostly picks the luckiest one, and the reported accuracy of the winner is inflated: this is small-sample model selection bias in its plainest form.
This note proposes a different use for the thousands of unlabeled images that semi-supervised learning already has. Instead of only training on them, we use them to measure the candidates. Each candidate is scored by how often it agrees with a reference predictor on the unlabeled pool. The handful of held-out labels then estimates and subtracts the error that this agreement score makes. That makes the score unbiased while using the labels far more efficiently.
The statistical machinery comes from prediction-powered inference, which combines a small labeled sample with model predictions on a large unlabeled sample to estimate quantities without bias. Here we apply it, for the first time as far as the file shows, to the problem of ranking models. We call the result prediction-powered model selection (PPMS).
Core Claim
The claim is that model selection under label scarcity is limited by the variance of comparisons between candidates, not by the absence of a label-free criterion. We further claim that this variance can be cut sharply by rectified agreement on unlabeled data, while staying unbiased whatever the reference predictor's quality.
Concretely, let $f_j$ be candidate $j$, $g$ a reference predictor trained without the held-out labels, $m$ the number of held-out labeled points $(x_i, y_i)$, and $N$ the number of unlabeled points $\tilde x_u$. The estimated accuracy is
$$\hat A_j = \frac{1}{N}\sum_{u=1}^{N} \mathbb{1}[f_j(\tilde x_u)=g(\tilde x_u)] + \frac{1}{m}\sum_{i=1}^{m}\Big(\mathbb{1}[f_j(x_i)=y_i]-\mathbb{1}[f_j(x_i)=g(x_i)]\Big).$$
The first term is cheap and low-variance but biased by $g$'s mistakes. The second term uses labels to remove that bias exactly in expectation.
Consider the difference $\hat A_j - \hat A_k$ between two candidates. The labeled correction term is nonzero only on points where $f_j$ and $f_k$ disagree and $g$ is also wrong. This gives a falsifiable prediction. Relative to a paired labeled-only comparison, the variance of the labeled part of the comparison should shrink by roughly the factor $P(g \text{ wrong} \mid f_j \neq f_k)$, while the unlabeled part contributes only an $O(1/N)$ term. In effect, each held-out label counts as about $1/P(g\text{ wrong}\mid\text{disagreement})$ labels.
Rather than tune the weighting by hand, we stack one moment condition per candidate. We then solve them jointly with the empirical likelihood formulation of Empirical Likelihood Meets Prediction-Powered Inference, which combines labeled estimating equations with prediction-based auxiliary moments. It is asymptotically no worse than the labeled-only estimator and has no weighting knob. That joint fit also yields a confidence region over all candidates' accuracies. From it we get a confidence set of near-optimal models and an honest, selection-aware accuracy estimate for the one we pick.
Relation to Prior Work
Two papers motivate the problem. Realistic Evaluation of Deep Semi-Supervised Learning Algorithms showed that semi-supervised learning papers tuned on thousands of validation labels while claiming to need only hundreds. It also showed that realistically small validation sets make selection unreliable, but it diagnosed the problem without fixing it. The classical small-sample literature explains why naive fixes fail. Asymptotic criteria break down at small $N$ in both directions: Model Selection for Small Sample Regression shows AIC underestimating error, and Discriminative Model Selection for Belief Net Structures shows fixed penalties overwhelming the likelihood. A new information criterion for the selection of subspace models reports NIC choosing order 20 with error 3.36 where the correct order 5 gives 0.98 at 50 samples.
The conceptual parent is the Direct Eigenvalue Estimator of Chapelle, Vapnik and Bengio. It uses unlabeled inputs to estimate the finite-sample correction to a selection criterion, but only for linear regression and only through the input covariance. PPMS keeps that idea, unlabeled data repairing the criterion itself, but drops the linear-model derivation. It measures accuracy directly, so it applies to any classifier and any hyperparameter.
Two papers are the direct competitors. Towards Realistic Model Selection for Semi-supervised Learning (SLAM) avoids validation labels entirely. It scores checkpoints using margins on the labeled training points, a nearest-neighbor consistency reweighting, and a spectral-norm complexity penalty. It is a surrogate whose relation to test accuracy rests on a bound and on an observed "divergent margin" pattern, and it has only been tested on WideResNets. Gradient-based Hyperparameter Optimization without Validation Data for Learning from Limited Labels maximizes a Laplace-approximated marginal likelihood. That restricts it to differentiable loss coefficients and forces a last-layer-only approximation. The Laplace step is also exactly the kind of approximation that Bayesian Model Scoring in Markov Random Fields shows can be badly biased at small $N$.
PPMS differs from both in kind. It spends a few labels as an unbiased anchor rather than none, it estimates the target quantity rather than a surrogate, and it ranks any candidate pool. That pool can include FixMatch's confidence threshold, augmentation strength, learning rate, and stopping epoch, which Hataya and Nakayama explicitly cannot reach. The method being tuned is FixMatch from FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence, whose fixed threshold of 0.95 is the kind of non-loss hyperparameter at stake.
Research Program
The work has three parts.
Estimator and theory. We build the estimator for accuracy differences across a pool of $K$ candidates. We derive the variance-reduction factor above, and we analyze the bias of argmax selection, meaning the optimism of the winner's estimate, under the joint empirical-likelihood confidence region. A key design question is the reference $g$. We study three choices:
- the ensemble of all candidates, which is free but shares their errors;
- an external pretrained model used zero-shot, which is independent but possibly off-domain;
- a candidate-specific leave-one-out ensemble.
The unbiasedness argument requires only that $g$ never sees the held-out labels. The theory predicts that shared errors hurt efficiency, not validity, and we test that prediction directly.
The validation-paradox trade-off. Holding out $m$ labels starves training. The practical question is therefore whether choosing hyperparameters on $n-m$ training labels with PPMS, then retraining the chosen configuration on all $n$ labels, beats simply training with defaults on all $n$. We characterize this as a function of $m$ and of the measured disagreement-conditional error of $g$. The goal is a rule for how many labels to spend on selection.
Class mismatch. Prediction-powered inference assumes the unlabeled inputs come from the same distribution as the test inputs. Distractor classes break this assumption, and Oliver et al. show they also break semi-supervised training itself. We treat Semi-Aves and STL-10 as stress tests. We measure how much bias leaks into rankings and test a simple repair: restricting the unlabeled term to points the reference assigns to known classes with high confidence. We report honestly if the repair fails.
Baselines
Naive reference (labeled-only validation). The simplest point of comparison is plain held-out accuracy on the same $m$ labels, using the same candidate pool, held-out split, and seeds as PPMS. It is the method Oliver et al. found unreliable. PPMS must beat it in selection regret at every $m$; failing to do so would kill the idea.
Default configuration. Running FixMatch with its published defaults on all $n$ labels involves no selection at all and loses no labels to holdout. FixMatch reports 88.61% accuracy at 40 CIFAR-10 labels and 94.93% at 250. This is the bar for the end-to-end trade-off: PPMS plus retraining must exceed it under the same training compute.
Strongest existing method (SLAM). SLAM is the strongest competitor because it targets exactly this setting without spending labels. It reports choosing checkpoints within 1% of the test-set oracle on CIFAR-10 with as few as 4 labels per class. We run it on the identical candidate pool. It is allowed to train on all $n$ labels while PPMS trains candidates on $n-m$, which gives SLAM the label advantage it is designed to have. Beating it means lower regret against the test-set oracle at matched final training labels, after PPMS retrains on all $n$.
Marginal-likelihood tuning. Hataya and Nakayama's last-layer-only method reports a 2.5% gain on CIFAR-10 at 250 labels from tuning FixMatch loss weights. We compare on the loss-weight subspace where it applies, and note where it cannot run at all.
Agreement only. This is an unrectified agreement score: the first term alone, with no held-out labels. It is the ablation that isolates the key ingredient, the labeled correction.
Labeled-only paired difference. This variant compares candidates on the shared held-out points but uses no unlabeled data. It isolates how much of PPMS's gain comes from pairing rather than from the unlabeled pool.
All methods see the same candidates, the same compute for scoring, and the same seeds.
Why not just…?
Why not just score candidates by agreement with an ensemble on unlabeled data, with no labels at all? This is the most natural simplification. On clean benchmarks with a strong reference it may rank nearly as well as PPMS. Its failure mode is the confirmation cascade documented by SLAM's authors: candidates that overfit to the same wrong pseudo-labels as the ensemble look excellent. The agreement-only ablation measures this directly. If it matches PPMS on regret everywhere, including Semi-Aves, the labeled correction is not worth its cost and we would say so.
Why not just use SLAM, which needs no held-out labels? SLAM keeps every label for training, which is a real advantage at 40 labels. Its score, however, is a margin-and-norm surrogate with no unbiasedness guarantee, and it is untested beyond convolutional networks and early stopping on a grid. PPMS produces an accuracy estimate with a confidence set, which SLAM cannot. The head-to-head regret comparison at matched final labels settles which matters more. We expect SLAM may win at the very smallest budgets, and the trade-off curve over $m$ will show where the crossover lies.
Why not just fine-tune a pretrained backbone and skip semi-supervised selection? Oliver et al. report that ImageNet fine-tuning reaches 12.09% CIFAR-10 error, beating their best semi-supervised result of 13.13%. That is a real threat to semi-supervised learning, but not to this proposal. Fine-tuning still has a learning rate, a stopping epoch, and augmentation choices to select from few labels. A pretrained model is also the natural independent reference $g$. We therefore include a pretrained-backbone candidate pool and test whether PPMS still reduces regret there.
Why not just use K-fold cross-validation over the labels? It multiplies training cost by $K$, which Sakata's analysis in Prediction Errors for Penalized Regressions based on Generalized Approximate Message Passing flags as prohibitive for large models. With 40 labels, each fold is still a tiny, high-variance validation set. PPMS is orthogonal to it: the estimator can be applied within each fold. We include 4-fold cross-validation at 4× compute as a reference to see whether PPMS at 1× matches it.
Proposed Experiments
Main experiments. We use CIFAR-10 at 40 and 250 labels, CIFAR-100 at 400 and 2,500 labels, and SVHN at 40 and 250 labels, with STL-10 and Semi-Aves as mismatch stress tests. The candidate pool for each setting is FixMatch on WideResNet-28-2, varied over:
- confidence threshold,
- unlabeled loss weight,
- learning rate,
- weight decay,
- augmentation strength,
with checkpoints saved every few epochs, giving a few hundred candidates. A ViT pool on CIFAR-100 tests architecture generality where SLAM is unstudied. Held-out sizes $m$ range from one label per class to 20% of $n$, over 10 random label draws.
Metrics. We report:
- regret against the test-set oracle within the pool;
- Kendall rank correlation with test accuracy;
- the measured effective-label multiplier, meaning the variance of labeled-only differences divided by the variance of PPMS differences, compared against the predicted $1/P(g\text{ wrong}\mid\text{disagreement})$;
- empirical coverage of the selection-aware confidence interval for the winner's accuracy;
- end-to-end test accuracy after retraining on all labels.
Decisive checks. Four results would settle the claims:
- The measured variance reduction should track the predicted factor across reference choices. If it does not, the mechanism is wrong.
- PPMS should beat labeled-only validation in regret at every $m$.
- PPMS plus retraining should beat both FixMatch defaults on all labels and SLAM at matched final labels in at least the 250-label and CIFAR-100 settings.
- On Semi-Aves, the gap between agreement-only and PPMS should widen, showing that the labeled correction is what protects against confirmation bias. If the unlabeled term's distribution shift instead makes PPMS mis-rank there, that negative result will define the method's scope.
References
- Empirical Likelihood Meets Prediction-Powered Inference
- Realistic Evaluation of Deep Semi-Supervised Learning Algorithms
- Model Selection for Small Sample Regression
- Discriminative Model Selection for Belief Net Structures
- A new information criterion for the selection of subspace models
- Towards Realistic Model Selection for Semi-supervised Learning
- Gradient-based Hyperparameter Optimization without Validation Data for Learning fom Limited Labels
- Bayesian Model Scoring in Markov Random Fields
- FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
- Prediction errors for penalized regressions based on generalized approximate message passing