In few-shot learning, data is scarce. When given only a handful of labeled examples (the support set), inductive models struggle to map out clean decision boundaries. To overcome this, many state-of-the-art methods turn to transductive inference. Instead of classifying each unlabeled test instance (the query sample) in isolation, transductive algorithms look at the entire query set simultaneously. By leveraging the underlying geometric structure and clustering of the unlabeled data, transduction can drastically improve classification accuracy.
However, this performance boost often relies on a hidden, highly unrealistic assumption built directly into standard benchmarks: the uniform class distribution assumption.
In standard evaluation protocols, a query set is perfectly balanced, containing an identical number of samples for every class. Transductive algorithms exploit this "class-balance artifact" by mathematically forcing their predictions across the query set to be uniform. While this prevents the model from collapsing into predicting a single dominant class, it creates a severe vulnerability. When deployed in the real world—where data distributions are naturally skewed, long-tailed, or unpredictable—these models experience catastrophic performance drops.
The Mechanics of the Uniformity Trap
To understand why standard transductive methods fail on imbalanced data, we must look at how they enforce class balance.
Many transductive and semi-supervised frameworks utilize information-theoretic regularizers or optimal transport formulations. For instance, a model might maximize the mutual information between the input features and the predicted labels over the unlabeled set, or use Sinkhorn-Knopp balancing to assign labels. As noted by Niu et al. in Squared-loss Mutual Information Regularization: A Novel Information-theoretic Approach to Semi-supervised Learning, these information-theoretic approaches implicitly or explicitly rely on uniform class-prior probabilities.
When a model optimizes a loss function that penalizes deviations from a uniform marginal distribution, it treats class balance as a hard constraint. Imagine a scenario where a transductive model evaluates an unlabeled query set containing 90 samples of Class A and 10 samples of Class B. If the algorithm is mathematically constrained to distribute its predictions equally, it must assign exactly 50 samples to Class A and 50 samples to Class B. To satisfy this global constraint, the model will inevitably misclassify 40 true samples of Class A as Class B, overriding its own feature-level confidence.
This fragility was systematically exposed by Veilleux et al. in Realistic evaluation of transductive few-shot learning. The authors introduced a realistic evaluation protocol where query set class proportions are sampled from a Dirichlet distribution, introducing natural skew. Their findings revealed that the perceived performance advantages of transductive methods over simple inductive baselines are largely an artifact of the balanced benchmark design; when the uniform distribution assumption is violated, standard transductive models collapse.
Balanced Query Set (Benchmark) Imbalanced Query Set (Real World)
[ A A A B B B C C C ] [ A A A A A A A B C ]
│ │
▼ ▼
Transductive Uniform Constraint Transductive Uniform Constraint
[ A A A │ B B B │ C C C ] [ A A A │ B B B │ C C C ]
(Perfect Alignment) (Forced Misclassification)
Bypassing the Class-Balance Artifact
To make transduction viable in practical applications, recent research focuses on decoupling label propagation from the uniform prior constraint. The goal is to allow the model to discover the true, potentially skewed distribution of the query set dynamically.
Decoupled Graph Propagation and Adaptive Manifolds
One way to avoid forced uniform assignment is to refine how labels propagate through data graphs. Zhu et al. proposed protoLP in Transductive Few-Shot Learning with Prototype-Based Label Propagation by Iterative Graph Refinement, which unifies prototype estimation and graph-based label propagation. By iteratively updating a bipartite graph between samples and class prototypes without enforcing strict marginal constraints, the authors achieved robustness against unknown query distributions.
Similarly, Lazarou et al. developed the Adaptive Manifold (AM) algorithm in Adaptive manifold for imbalanced transductive few-shot learning. Instead of assuming equal class frequencies, AM iteratively optimizes both the class centroids and the underlying manifold structure using a specialized loss function tailored for imbalanced transductive settings, preventing dominant classes from skewing the geometry of rarer categories.
Variational Inference and Divergence Minimization
Rather than relying on hard constraints, alternative statistical frameworks model the query set distribution explicitly as a latent variable. Hu et al. introduced BAVARDAGE in Adaptive Dimension Reduction and Variational Inference for Transductive Few-Shot Classification, combining adaptive dimension reduction with Variational Bayesian inference. This allows the model to estimate the distribution of unlabeled data without enforcing a uniform class-balance artifact.
To directly replace the rigid Kullback-Leibler (KL) divergences often used in mutual information maximization, Veilleux et al. proposed $\alpha$-TIM. By utilizing $\alpha$-divergences, their loss function remains highly robust even when the underlying distribution of the unlabeled data is highly skewed and completely unknown.
Pruning Distraction Classes via Minimum Description Length
In real-world scenarios, an imbalanced query set might also contain "distraction classes"—samples belonging to categories that are completely absent from the support set.
To address this, Martin et al. introduced PADDLE in Towards Practical Few-shot Query Sets: Transductive Minimum Description Length Inference. PADDLE uses the Minimum Description Length (MDL) principle to view transductive inference as a data compression problem. Instead of forcing query samples into all available support classes uniformly, it identifies the "effective" classes actually present in the query burst, effectively pruning out unrepresented or distracting categories.
A Ubiquitous Challenge Across Domains
The sensitivity to uniform class assumptions is not isolated to few-shot image classification; it represents a fundamental challenge across various machine learning paradigms where unlabeled data is processed in batches.
- Unsupervised Domain Adaptation (UDA): When adapting a model from a labeled source domain to an unlabeled target domain, self-ensembling methods frequently use class-balancing terms to guide label propagation. As shown by French et al. in Self-ensembling for visual domain adaptation, enforcing a uniform class distribution during training becomes highly detrimental if the target dataset is naturally imbalanced.
- In-Context Learning (ICL) in LLMs: Large Language Models can learn tasks from a few examples provided in a prompt. However, they are notoriously sensitive to the choice and order of these examples. Jiang et al. demonstrated in Generative Calibration for In-context Learning that standard calibration methods fail because they assume a uniform distribution of labels, whereas real-world text distributions exhibit severe label shift.
- Self-Supervised Learning: In single-stage self-supervised classification, such as the framework proposed by Amrani et al. in Self-Supervised Classification Network, a uniform class prior is explicitly used to prevent representation collapse during training. The authors note that adapting these models to highly skewed datasets remains an open question.
Ultimately, the transition from clean, synthetic benchmarks to messy, real-world deployments requires moving away from the crutch of the uniform class distribution assumption. By designing transductive inference algorithms that treat the query set's marginal distribution as an unknown variable to be discovered rather than a constraint to be enforced, the field moves closer to truly practical, robust few-shot learning systems.
Key Foundational Work
Self-ensembling for visual domain adaptation (2018) — contributed 1 concept elements to this direction.
Squared-loss Mutual Information Regularization: A Novel Information-theoretic Approach to Semi-supervised Learning (2013) — contributed 1 concept elements to this direction.