Noise-Started Energy Training for Pseudo-Labeling When Labels Are Scarce

Semi-supervised learning trains a classifier on a few labeled examples and many unlabeled ones. The classifier usually labels the unlabeled data itself ("pseudo-labels") and then trains on its own guesses. The known failure is overconfidence. The classifier assigns high confidence to inputs that sit between classes or that belong to no known class, and those wrong guesses get reinforced. An energy-based model can catch these inputs. It is a network that scores how plausible an input is, so it gives low scores to inputs far from the data. Joint classifier/energy models have been shown to calibrate pseudo-labels well. The cost is that they are trained with Langevin sampling, a slow iterative procedure that draws "fake" examples from the model at every training step. That cost has kept them on 32×32 toy images.

We propose to train the energy score without Langevin sampling and without any external dataset. The fake examples start from procedurally generated noise, such as dead-leaves images or outputs of untrained StyleGAN networks, which costs almost nothing to produce. A few steps of projected gradient descent then push each noise image toward what the model currently finds plausible, and the model is trained to reject the result. The resulting score is used to decide which unlabeled images to pseudo-label and how softly. The bet is simple. Calibrated pseudo-labeling needs a model of where the data lives, not an exact density. That can be learned cheaply from free synthetic negatives, and this matters most in medical and scientific domains where both labels and "outlier" datasets are unavailable.

Core Claim

Three lines of prior work each hold part of this idea.

Pseudo-label Learning with Calibrated Confidence Using an Energy-based Model (EBPL) motivates it. EBPL shares a backbone between a classifier and an energy model trained with Langevin dynamics. With 350 labels on CIFAR-10 it lifts accuracy from 41.42% to 53.63%, and it cuts Blood-MNIST calibration error from about 14.5% to 9.8%. It keeps the full sampling cost and was never run above 32×32.

Scalable Energy-Based Models via Adversarial Training (DAT) supplies the training method. DAT replaces Langevin sampling with short projected-gradient descent (PGD) runs that start from an auxiliary natural-image dataset, and trains with a binary cross-entropy loss. This scales joint energy models to ImageNet 256×256. DAT was only run with full labels, and it depends on a large outlier dataset such as 80M Tiny Images or Open Images. Chest X-ray or histopathology has no such dataset.

Learning to See by Looking at Noise supplies the negative source. It shows that procedural noise covers enough of image structure that contrastive pretraining on it reaches 40.06% ImageNet linear-probe accuracy. It also finds that coverage ("recall") matters more than realism.

Our claim combines these. Procedural noise, pushed by short PGD toward the data manifold, is a sufficient negative distribution for DAT-style energy training. The resulting energy gives better pseudo-label selection than logit-only energy in exactly one regime: unlabeled pools contaminated with off-support inputs (unseen classes, acquisition artifacts). It does this at a small fraction of EBPL's sampling cost, and at resolutions where EBPL has never run.

DAT's own analysis shows its loss learns the support of the data rather than its density. We treat this as a feature, not a defect. Pseudo-label selection asks whether an input lies inside the region covered by the known classes, which is a support question.

Research Program

The model is a single backbone with class logits $f_k(x)$. As in joint energy models, we define the energy as

$$E_\theta(x) = -\log \sum_k \exp f_k(x),$$

so low energy means "plausible under the known classes." Three losses train it jointly.

The first is cross-entropy on the labeled set.

The second is an energy loss in the DAT form:

$$\mathcal{L}_E = -\mathbb{E}_{x \sim \text{real}} \log \sigma(-E_\theta(x)) - \mathbb{E}_{z \sim \text{noise}} \log \sigma(E_\theta(\tilde{x}(z))).$$

Here $\sigma$ is the logistic function, "real" is the union of labeled and unlabeled images, $z$ is a fresh procedural-noise image, and $\tilde{x}(z)$ is the result of $K$ PGD steps that lower $E_\theta$ within an $\ell_\infty$ ball around $z$. Negatives are regenerated each batch, so no noise dataset is ever stored.

The third is a pseudo-label loss on unlabeled images. Each image receives a soft target from the classifier, weighted by a monotone function of its energy. The energy threshold relaxes over training, following the curriculum used by EnergyMatch.

The difference from EnergyMatch is that our energy has been explicitly trained to rise off the data support. EnergyMatch's energy is a by-product of classification training and was never shown an off-support input. The difference from EBPL is that no Langevin chain is ever run. Negatives come from a fixed small $K$, which we set to the 13–36 step range DAT reports.

The analysis program asks three questions:

  1. Which noise families work as negatives? We compare dead leaves, spectral noise, untrained StyleGAN, a mixture of these, and plain Gaussian noise.
  2. How many PGD steps are needed? We vary $K$ and measure calibration and pseudo-label quality as $K$ changes.
  3. Does procedural noise do anything that heavily corrupted real images do not? We compare against negatives made by strong corruptions of the unlabeled pool.

The last question addresses a failure mode flagged by On the Anatomy of MCMC-Based Maximum Likelihood Learning. That paper shows that short-run chains learn a biased landscape. Noise-started negatives could be too easy and teach the model only "noise versus image." We measure this directly with an energy histogram on held-out unseen-class images, not on noise.

Baselines

The naive reference point is supervised training on the labeled subset alone, plus FixMatch-style confidence-threshold pseudo-labeling on the same backbone and augmentations. EBPL reports 41.42% on CIFAR-10 with 350 labels for its baseline, and we reproduce that setting to anchor our numbers to theirs.

The strongest single-pass competitor is EnergyMatch. It uses logit free energy as the pseudo-label filter, with no generative training and no sampling. It reports 67.02% on CIFAR-10 with SVHN contamination against FlexMatch's 60.03%, and a 4–6% gain over FixMatch on CIFAR-10-LT. It is the most dangerous competitor because it shares our scoring function and differs only in whether the energy was trained against negatives.

The strongest calibration competitor is EBPL itself. It uses Langevin-trained joint energy with soft pseudo-labels, and its reported numbers are 53.63% accuracy at 350 CIFAR-10 labels and 9.8% expected calibration error (ECE) on Blood-MNIST. We run it at 32×32 only, since that is where it is known to work, and we report its GPU-hours alongside ours.

For the high-resolution clinical setting, the reference is fine-tuning the Masked Record Modeling backbone on 1% of CheXpert labels. MRM reports 88.5% mean AUC in that setting, and we must beat that number. Every method in that comparison starts from the same MRM weights, so gains cannot be attributed to pretraining.

Two ablations isolate the key ingredient. The first is DAT's original recipe with a natural-image auxiliary set as PGD starts. It tests whether noise loses anything relative to real outliers where such outliers exist. The second is Gaussian-noise starts. It tests whether the structure of procedural noise matters or whether any starting point works.

All methods share the backbone, augmentation policy, labeled splits (three seeds), total training steps, and a fixed hyperparameter budget of the same number of trials tuned on a small labeled validation split. Hyperparameters include the energy loss weight and threshold schedule where applicable. We count wall-clock GPU-hours including negative generation.

Beating a baseline means one of two things. The first is higher accuracy or AUC with non-overlapping seed intervals at equal compute. The second is matched accuracy with clearly lower ECE and higher pseudo-label precision on contaminated pools.

Why not just…?

Why not just use EnergyMatch's logit energy, which is already free? This is the real threat. On clean in-distribution pools we expect little or no gain over it. Our claim is confined to contaminated pools, meaning unlabeled data containing unseen classes or off-manifold inputs. There, an energy never trained on off-support inputs has no reason to rise on them. The CIFAR-10+SVHN, CIFAR-10-LT with held-out classes, and CheXpert-with-unseen-findings experiments settle this. If EnergyMatch matches us there too, the explicit energy training is not worth its cost, and we will report that as the result.

Why not just calibrate with temperature scaling? Temperature scaling rescales confidence globally and needs labeled held-out data, which EBPL notes is impractical at one label per class. It also cannot change the ranking of which unlabeled images get selected. That ranking is where contamination does damage. We include temperature-scaled FixMatch in every table so the gap is measured rather than asserted.

Why not just generate extra labeled images with a diffusion model? Dataset Diffusion shows the cost and the ceiling of that route. It needs hundreds of sampling steps per image and reaches 34.2 mIoU on synth-COCO against 54.9 for real data. The generator is also pretrained on web images, which is a poor fit for radiographs. The unlabeled real images already exist, and the bottleneck is deciding which of them to trust. So we spend compute on filtering rather than synthesis.

Why not just keep Langevin sampling but use fewer steps? Short-run chains learn biased landscapes, as the Anatomy paper shows. Each outer step still pays the inner-loop cost that Yang et al. identify as the scaling barrier. An EBPL variant with a reduced step count is included at 32×32 so this trade-off appears on the same compute axis as our method.

Proposed Experiments

The first experiment reproduces EBPL's setting: CIFAR-10 with 350 labels, SVHN, Fashion-MNIST, and MedMNIST (Blood, OrganA/C/S). It reports accuracy, ECE, and GPU-hours. It passes if we match EBPL's 53.63% and 9.8% ECE within seed noise at a fraction of its training time.

The second experiment tests contamination. CIFAR-10 unlabeled pools are mixed with SVHN at the ratio EnergyMatch used, and CIFAR-10-LT and CIFAR-100-LT are run with some classes held out of the labeled set but present in the unlabeled pool. We report accuracy together with pseudo-label precision, and AUROC for rejecting contaminants in the unlabeled pool. The target to beat is EnergyMatch's 67.02%.

The third experiment tests resolution and domain. We use CheXpert at 1% labels from MRM weights, with the unlabeled pool augmented by NIH ChestX-ray images carrying findings absent from the labeled label set. The target is MRM's 88.5% mean AUC. We also report calibration, where no reported result was found on Lacuna for semi-supervised CheXpert calibration. We then repeat on ImageNet-100 with 1% labels, where no reported result was found on Lacuna for any energy-based pseudo-labeling method.

The decisive check spans all three experiments. It compares the energy distributions of unseen-class images under our model, EnergyMatch, and the Gaussian-start ablation. If procedural-noise-trained energy separates unseen classes from known ones no better than the other two, the central hypothesis is wrong regardless of downstream accuracy.