Moore-Lewis Filtering for Synthetic Features in Transductive Zero-Shot Learning

Zero-shot learning asks a classifier to recognize categories it has never seen labeled examples of, using only a description of each class such as a list of attributes ("has stripes", "long beak"). A common recipe trains a generator on the classes that do have labels, then asks it to produce fake feature vectors for the missing classes from their descriptions, so that an ordinary classifier can be trained on real and fake features together. In the transductive setting, the unlabeled test images are also available during training. This proposal takes a thirty-year-old trick from language-model data selection and uses it to decide which fake features to keep. That trick is the Moore-Lewis cross-entropy difference, which keeps text that is likely under an in-domain model and unlikely under a general one. Here we keep a synthetic feature only if it is likely under a density model of the unlabeled test pool and unlikely under a density model of the labeled training classes.

The reason to expect this to work is specific. The main failure of generalized zero-shot learning, where test images can come from either labeled or unlabeled classes, is that unseen-class images get assigned to seen classes. The unlabeled test pool contains both kinds of image. A plain "is it likely under the test pool?" filter therefore rewards synthetic features that look like seen classes. This is the analogue of plain perplexity filtering favoring phrases like "thank you very much". Subtracting the seen-class density cancels exactly that shared, generic mass. What remains is the region of feature space the test data occupies and the training data does not. The filter needs no training and costs two density evaluations per feature, so it also addresses the overhead of generating, and then training on, large numbers of redundant samples.

Core Claim

For a synthetic feature $x$ generated for an unseen class, define

$$\Delta H(x) = -\log p_T(x) + \log p_S(x),$$

Here $p_T$ is a Gaussian mixture fit, in a reduced principal-component space, to the unlabeled test features, and $p_S$ is a Gaussian mixture fit to the labeled seen-class training features. We rank each class's synthetic features by ascending $\Delta H$ and keep a per-class quota. We claim three things. First, at a matched number of kept samples, this beats random pruning, one-sided test-pool likelihood, and predictive-entropy filtering on the generalized harmonic mean $H$ of seen and unseen accuracy. Second, the gain comes mostly from unseen accuracy, because fewer unseen test images are pulled into seen classes. Third, it matches or beats reinforcement-learning selection at a small fraction of that method's compute.

The prior work plays three different roles. Intelligent Selection of Language Model Training Data supplies the method. It scores text by in-domain minus general cross-entropy, cuts Gigaword to under 7% of its size, and lowers Europarl perplexity from 135 to 101. It also shows that the difference removes the length bias of raw perplexity, lowering the correlation with sentence length from $r=-0.92$ to $r=0.04$. Domain Adaptation via Pseudo In-Domain Data Selection extends the idea to paired sentences. In-Context Demonstration Selection with Cross Entropy Difference extends it to choosing prompt examples. Neither applies it to continuous visual features or to the seen/unseen split.

The closest work motivates the gap. Synthetic Sample Selection for Generalized Zero-Shot Learning (SPOT) shows that pruning generated features helps, by up to 4.1% on image benchmarks. It gets there by training a Transformer selector with reinforcement learning, specifically proximal policy optimization (PPO), rewarded by accuracy on seen-class validation data. That design is inductive, expensive, and rewards the seen-class behavior the task is trying to escape. Transductive Zero-Shot Learning by Decoupled Feature Generation (DecGAN) does use the unlabeled test distribution, but only to shape the generator, and it trains on everything the generator emits.

Two papers constrain the design. High-dimensional Analysis of Synthetic Data Selection shows that in high-dimensional regression, the covariance mismatch of the synthetic data drives excess risk, while mean shift matters little. On CIFAR-10, keeping only the most central samples scored 50.04%, against 54.00% for covariance matching. Generating High Fidelity Synthetic Data via Coreset selection and Entropic Regularization filters by single-model predictive entropy. Together they warn that any score favoring "typical" samples will shrink class spread. So the proposal must show that $\Delta H$ selection does not collapse within-class covariance the way one-sided likelihood does.

Research Program

Base pipeline. We use two generators: the transductive DecGAN, and a transductive f-VAEGAN, the standard feature generator. Features are 2048-dimensional ResNet-101 features on the proposed splits of Zero-Shot Learning - A Comprehensive Evaluation of the Good, the Bad and the Ugly., which avoid overlap between unseen classes and the classes the backbone was pretrained on.

Scoring and selection. For each unseen class we generate an oversized pool, for example five times the usual per-class count. We project features to a principal-component space whose dimension is swept around 32–128, fit $p_T$ and $p_S$ with a small number of mixture components chosen by held-out likelihood, score every feature, and keep the lowest-$\Delta H$ fraction per class. Keeping a quota per class prevents classes that the test pool represents poorly from being wiped out.

Diversity variant. Because of the covariance warning, we also test a variant. It first keeps the top half of the pool by $\Delta H$, then greedily chooses the final set so that its covariance matches that of the whole generated pool for that class. This combines Moore-Lewis selection with the Covariance Matching procedure from High-dimensional Analysis of Synthetic Data Selection, adapted so that no labeled target data is needed.

Diagnostics. We measure the image-feature analogue of length bias: the correlation between each score and the distance to the class's mean synthetic feature. We also record where kept features land. For each kept feature we check whether its nearest cluster in the unlabeled test pool is dominated by that feature's own unseen class, using test labels for analysis only. This tests a known blind spot. $\Delta H$ asks whether a feature lies in an unseen region, not whether it lies in the right unseen class. We expect it to help mainly against seen-class confusion, not unseen-versus-unseen confusion.

Cost accounting. We report generation time, selection time, and classifier training time as wall-clock on one GPU. We also report the harmonic mean against the number of generated samples. The goal is to test whether generating less and selecting well beats generating more.

Baselines

The naive reference is the base generator trained on its full unpruned output. For DecGAN this means reproducing the reported generalized harmonic mean of 63.4% on CUB and 49.9% on SUN from Transductive Zero-Shot Learning by Decoupled Feature Generation. The file gives no reported DecGAN number for AWA2 or FLO, so we run those ourselves. Alongside it we run random pruning to exactly the same kept count as our method. This control matters most, because pruning alone changes the ratio of seen to unseen training samples, and that ratio is known to move the harmonic mean. Beating random pruning at matched size, averaged over five seeds, is the minimum bar.

The strongest selection competitor is SPOT, from Synthetic Sample Selection for Generalized Zero-Shot Learning. The file reports only its relative gain of up to 4.1% top-1 on image benchmarks and no absolute harmonic mean on these splits, so we rerun it on the same generator outputs, features, and kept budget. We also run a variant whose reward includes a transductive term: the entropy of the classifier's predictions on the unlabeled pool. Otherwise the comparison would pit a transductive method against a purely inductive one. Our method beats SPOT if its harmonic mean is equal or higher while its selection compute is at least an order of magnitude lower.

The strongest transductive system without generation-time selection is DSP from Evolving Semantic Prototype Improves Generative Zero-Shot Learning, which reports 67.4% harmonic mean on CUB with f-VAEGAN. That result is inductive and changes the class descriptions rather than selecting samples. We treat it as a complementary upper reference and also test DSP combined with our filter.

The ablations isolate the key ingredient. The first uses one-sided test-pool likelihood, $-\log p_T$ alone. The second uses seen-density rejection alone, $+\log p_S$. The third uses the predictive-entropy filter of Generating High Fidelity Synthetic Data via Coreset selection and Entropic Regularization. All three keep the same number of samples.

Why not just…?

Why not just generate more samples? Pooladzandi et al. report that adding all synthetic samples lowered SVHN accuracy from 92.0% to 88.1%, and SPOT reports gains from removing features. Our budget curve tests this directly on zero-shot benchmarks. If the harmonic mean keeps rising with unpruned sample count, the overhead argument fails, and we will report that.

Why not just score by likelihood under the unlabeled test pool? This is the most natural simplification, and it is the ablation that decides the paper. Our argument is that the pool contains seen-class test images too, so this score rewards seen-looking features. That would show up as lower unseen accuracy and a strong correlation with distance to the class center. If one-sided likelihood matches $\Delta H$, the Moore-Lewis framing adds nothing, and we would say so.

Why not just use DecGAN's own unconditional discriminator as the filter? That discriminator is already trained to tell real test features from generated ones, so it is a credible free alternative. It measures realism against the whole test pool, including seen-class images. It never subtracts the seen-class distribution, so we expect it to behave like one-sided likelihood. We include its score as an extra baseline at matched size.

Why not skip generation and pseudo-label the real unlabeled features? Self-training and label propagation such as Efficient and Context-Aware Label Propagation for Zero-/Few-Shot Training-Free Adaptation of Vision-Language Model are cheap and strong with CLIP features, and are a real threat. The file's evidence that propagation struggles with ResNet attribute features is indirect. We therefore run a k-means pseudo-labeling baseline and a label-propagation baseline on the identical features, and report the combination of pseudo-labeled real features with filtered synthetic ones.

Proposed Experiments

We evaluate on CUB, SUN, AWA2, and FLO under the proposed splits, reporting seen accuracy, unseen accuracy, and harmonic mean averaged over five seeds, plus wall-clock cost. Three checks decide the proposal.

The first check is whether $\Delta H$ beats both random pruning and one-sided likelihood at matched size on at least three of the four datasets, with the gain concentrated in unseen accuracy.

The second check is whether within-class covariance of the kept features stays close to that of the full pool. If it does not, whether the covariance-matching variant repairs the harmonic mean settles whether the covariance warning applies here.

The third check is a stress test of the known weakness of transductive methods. We shrink the unlabeled pool, skew it by class, and drop some unseen classes from it entirely, while keeping the full test set. When a class is missing from the pool, its synthetic features should get poor $\Delta H$ scores. The per-class quota should cap the harm to that class, and we will measure whether it does.