Semi-supervised learning now reaches striking accuracy with almost no labels. On CIFAR-10 with ten labels, InfoMatch reports 4.39% error. Every such number, however, was obtained by choosing the encoder, the training checkpoint, and settings such as the pseudo-label confidence cutoff or an entropy weight, and in a real ten-label project nothing is left over to make those choices with. The instability is large. FixMatch reports a median of 64.28% but "up to 78%" at one label per class, depending only on which images were labeled. We propose to measure, from a few labels plus a large unlabeled pool, how much a learned representation actually says about the labels: the mutual information $I(Z;Y)$ between embedding $Z$ and class $Y$. The estimate comes with a confidence interval and requires no classifier head of the model being judged.
The idea combines two existing pieces. First, nearest-neighbor (k-NN) mutual information estimators measure dependence directly from distances between samples, without fitting a density. When one variable is a discrete label, they reduce to comparing how pure a point's neighborhood is against the class base rate. Second, "prediction-powered" inference combines cheap predictions on many unlabeled points with a correction computed on the few labeled ones, which gives estimates that are unbiased and have valid intervals. Applying the second to the first yields a lower bound on label information. That bound can rank checkpoints, layers, and hyperparameters when a held-out validation set is out of the question.
Core Claim
Estimating Mutual Information for Discrete-Continuous Mixtures gives a consistent k-NN estimator for mixed variables. Each point contributes $\psi(\tilde k_i)+\log N-\log(n_{x,i}+1)-\log(n_{y,i}+1)$. When $Y$ is a class label, the joint k-NN ball around $z_i$ contains $\tilde k_i$ same-class points among $n_{x,i}$ points in total, and $n_{y,i}$ is roughly the class count. The term is therefore approximately $\log(\text{local same-class fraction}/\text{class prior})$, a log local-purity ratio. The estimator assumes every neighbor's label is observed, which is exactly what label scarcity removes.
We replace neighbor labels with a non-parametric posterior $q(y\mid z)$. It is built by propagating the few seed labels over a k-NN graph of the unlabeled pool, using the adaptive k-NN distance scale. We then correct its bias on the labeled points. Let $U$ be the $N$ unlabeled embeddings and $L$ the $n$ labeled pairs, let $q_{-i}$ be $q$ refit without the fold containing point $i$ (cross-fitting), and let $H(q(\cdot\mid z))$ be the entropy of the predicted class distribution. The estimator is
$$ \hat I = \hat H(Y) - \Big[\tfrac{1}{N}\sum_{j\in U} H\big(q(\cdot\mid z_j)\big) + \tfrac{1}{n}\sum_{i\in L}\Big(-\log q_{-i}(y_i\mid z_i) - H\big(q_{-i}(\cdot\mid z_i)\big)\Big)\Big]. $$
The bracket is a prediction-powered estimate of the cross-entropy of $q$. It is unbiased whatever $q$'s calibration, because the labeled correction absorbs any miscalibration, provided the labeled points are a random draw. Since cross-entropy upper-bounds $H(Y\mid Z)$, the expectation of $\hat I$ is a lower bound on $I(Z;Y)$. When $q$ is well calibrated, the correction term is small and the variance is dominated by the $N$-sample unlabeled term. That is where the unlabeled pool pays for itself.
The central empirical claim is that this estimate ranks candidate representations by downstream accuracy better than the few labels can on their own. The bound must also keep nominal coverage.
Relation to Prior Work
Two papers supply the method. The mixed estimator of Estimating Mutual Information for Discrete-Continuous Mixtures shows that k-NN counting, unlike noise-smearing or binning, stays consistent for continuous-discrete pairs; it assumes fully observed pairs. MEC and Empirical Likelihood Meets Prediction-Powered Inference show that cross-fitting is what keeps prediction-powered intervals valid: MEC holds 95% coverage where label-reusing PPI drops to 75–80%. They target means, not information quantities, and not representation selection.
For $q$ we reuse Measure Propagation, which propagates labels on k-NN graphs under a KL-divergence objective. Its entropy regularizer pushes poorly connected nodes toward uniform predictions. That matters here, because it keeps $-\log q$ finite and makes the bound conservative in sparse regions rather than overconfident. Measure Propagation uses static input features and was designed to classify, not to estimate information.
Three papers motivate the choice of a non-parametric $q$ over the model's own softmax. NCE-Net documents "false generalization," where softmax heads are confident far from labeled data. EOOD finds k-NN entropy on intermediate blocks far more reliable than softmax scores, with CIFAR-100 FPR95 of 43.40% against 73.77%. It also finds that the informative block varies by architecture, which is itself a selection problem our estimator addresses.
BAL-PM uses k-NN entropy of the feature distribution alone, a task-agnostic quantity. We argue that such a quantity cannot tell a representation that spreads data out from one that separates classes, and we test this directly.
InfoMatch frames semi-supervised learning as maximizing data entropy and minimizing posterior entropy with parametric contrastive bounds. It notes that its weight $\lambda=0.002$ is untested across domains. We do not train with an entropy objective. We measure label information in order to choose such settings.
Research Program
We will first establish the estimator on synthetic mixtures where $I(Z;Y)$ is known in closed form or by large Monte Carlo. Across dimension, $k$, and labeled size $n\in\{10,40,250\}$, we will characterize the bias, variance, and interval coverage. We expect the variance to fall roughly as the variance of the correction term over $n$, as with any prediction-powered mean.
We will then build a zoo of real representations. It consists of FixMatch, CoMatch, and InfoMatch runs on CIFAR-10, CIFAR-100, and STL-10 at the standard label counts, swept over the confidence cutoff $\tau$, the InfoMatch weight $\lambda$, and random seeds. We save multiple checkpoints per run and embeddings from several intermediate blocks, following EOOD's layer analysis on VGG-16 and WideResNet.
For each candidate we compute $\hat I$ using only the labels the run itself was trained with. The ground-truth ordering comes from the full test labels. The analysis asks when the correction term dominates the variance: it should, when the representation's k-NN geometry disagrees with the labels, as in SAGE's correlated blind-spot failure (Detecting Errors in AI-Generated Annotations).
Baselines
The naive reference point is to validate on the labels we already have. For each candidate we compute leave-one-out k-NN accuracy and a cross-fitted linear-probe accuracy on the $n$ labeled points. A second naive reference is to always ship the default configuration or the last checkpoint. With 40 labels, a single accuracy estimate has a standard error of several points, so we expect these baselines to fail to separate candidates that differ by one or two points. We must show that directly rather than assume it.
The strongest existing competitor is prediction-powered estimation of accuracy itself, cross-fitted as in MEC. It uses the same unlabeled pool and the same label-propagation predictor $q$, but it scores 0/1 correctness where we score log-loss. We will run it with identical folds, graph, $k$, and propagation hyperparameters, so that the only difference is the scoring rule. MEC reports 95% interval coverage against 75–80% for vanilla PPI on UCI Energy Efficiency mean estimation. We found no reported result on Lacuna for any few-label model-selection method on CIFAR or STL-10.
We also include two estimator baselines. The first applies the plain mixed k-NN estimator of Gao et al. to the labeled points only. The second applies it to the full pool with hard pseudo-labels and no correction; this is label-free but biased. We further include the task-agnostic k-NN entropy $H(Z)$ used by BAL-PM, and mean softmax entropy on unlabeled data.
Beating these means three things. First, a higher Kendall rank correlation with test accuracy across the zoo. Second, lower selection regret: the gap between the oracle-best candidate's test accuracy and that of the candidate we pick. Third, nominal coverage of the lower bound. Each is judged over repeated random draws of the labeled set.
Ablations isolate the key ingredients. Dropping the correction term tests whether debiasing matters. Dropping the unlabeled term tests whether the pool reduces variance. Substituting the model's own softmax head for $q$ tests false generalization. Turning off Measure Propagation's entropy regularizer tests whether the bound stays finite and conservative.
Why not just…?
Why not just use the few labels as a validation set? It is unbiased, but it is too noisy at 10–40 labels. FixMatch's own 64%-to-78% seed spread shows that variation between candidates is often smaller than label-sampling noise. The labeled-only baselines measure exactly this. If they match $\hat I$ at 40 labels, the proposal's claim shrinks to the 10-label regime, and we will report that.
Why not just apply prediction-powered inference to accuracy? This is the real threat, because it shares our variance reduction. Our argument is that log-loss is a proper scoring rule that uses the full predicted distribution. It therefore carries more information per label than a 0/1 outcome, and it bounds a probe-independent quantity. The matched comparison with identical $q$ and folds settles this. If accuracy-PPI ranks as well, the contribution becomes a negative result about the value of information-theoretic scoring, which is still worth knowing.
Why not just use a label-free criterion such as softmax entropy or k-NN feature entropy? Softmax confidence is unreliable exactly where labels are scarce (NCE-Net, EOOD). Feature entropy rewards spread whether or not the spread aligns with classes. Both are in the zoo comparison. A checkpoint that has collapsed onto confident but wrong pseudo-labels should score well on softmax entropy and poorly on $\hat I$.
Why not just run the mixed k-NN estimator on pseudo-labeled data? Pseudo-labels from the model being evaluated reward confirmation bias, since a model that is consistently wrong looks self-consistent. The uncorrected pseudo-label baseline quantifies this optimism against the corrected estimator.
Decisive Checks
The proposal succeeds if two things hold together. On CIFAR-10 at 10 and 40 labels and on STL-10 at 40 labels, $\hat I$ must achieve higher rank correlation and lower selection regret than both labeled-only validation and accuracy-PPI. And its lower-bound interval must hold near-95% coverage against the full-label value of $H(Y)-\text{CE}(q)$.
The most informative single test is the correlated-failure setting. Here k-NN geometry misleads, and only the labeled correction can reveal it. If coverage breaks there, the cross-fitting argument is wrong for this estimator. If ranking gains vanish once accuracy-PPI shares the same $q$, the log-loss argument is wrong. Either outcome is clear.
References
- InfoMatch: Entropy Neural Estimation for Semi-Supervised Image Classification
- FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
- Estimating Mutual Information for Discrete-Continuous Mixtures
- MEC: Machine-Learning-Assisted Generalized Entropy Calibration for Semi-Supervised Mean Estimation
- Empirical Likelihood Meets Prediction-Powered Inference
- Entropic Graph Regularization in Non-Parametric Semi-Supervised Classification
- Nearest Neighbor Classifier Embedded Network for Active Learning
- EOOD: Entropy-based Out-of-distribution Detection
- Deep Bayesian Active Learning for Preference Modeling in Large Language Models
- Detecting Errors in AI-Generated Annotations: When and Why Semantic Neighbors Help