NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

How Sensitive are Meta-Learners to Dataset Imbalance?

Mateusz Ochal, Massimiliano Patacchiola, Amos J. Storkey, Jose Vazquez, Sen Wang

Abstract

Meta-learning algorithms are surprisingly resilient to imbalanced training data, maintaining high performance even when the global meta-training set follows a heavy long-tail distribution. However, they remain highly sensitive to imbalance within individual few-shot tasks (the support set), suggesting that the "inner loop" of adaptation is the primary bottleneck for robustness in real-world applications.

Introduction

Standard Few-Shot Learning (FSL) benchmarks like Omniglot or Mini-ImageNet are typically "clean," providing an equal number of examples for every class. However, real-world data frequently follows a "long-tail" distribution where a few classes have many examples and most have very few. While class imbalance is known to harm standard supervised learning, its impact on meta-learning—specifically the distinction between global meta-dataset imbalance and task-level (episodic) imbalance—remains less understood.

Methodology

The authors evaluated a broad suite of popular FSL algorithms, including metric-based methods (Prototypical Networks, Matching Networks, Relation Networks), optimization-based methods (MAML, ProtoMAML), and transfer-learning baselines (SimpleShot, DKT).

To test sensitivity, three types of imbalance were artificially induced:

  • Linear: Class sizes decrease at a constant rate.
  • Step: A set of "minority" classes has significantly fewer samples than "majority" classes.
  • Long-Tail: Follows a Power Law distribution (Zipf’s Law), mimicking natural data.

The imbalance ratio ($\rho$) was defined as the ratio between majority and minority class sample sizes. Experiments were conducted on Mini-ImageNet, CUB-2011 (for cross-domain testing), and ImageNet (for large-scale experiments with $\rho = 65$).

Key Insights: The Meta-Buffer vs. Local Sensitivity

A primary finding is the "Meta Buffer": meta-learners are remarkably robust to global dataset imbalance. The meta-learning training objective, which involves sampling diverse tasks, appears to act as a natural regularizer against global class skew.

However, this resilience does not extend to the task level. Task-level imbalance—where a specific few-shot episode has an unequal number of support samples per class—is far more damaging than dataset-level imbalance. A small skew in the 5-shot support set causes a much larger performance drop than a massive skew in the overall training pool.

Figure 1: Comparison of accuracy drops due to dataset, task, and combined imbalance across different models.

As shown in Figure 1, while dataset imbalance (light red) causes negligible performance drops, task-level imbalance (dark red) leads to significant degradation, often exceeding 10-15% in accuracy loss across most models.

Empirical Results

The study quantified these effects across multiple datasets and imbalance configurations. Under a similar imbalance ratio ($\rho < 20$), dataset-level imbalance caused drops often within error bars, whereas task-level imbalance caused drops of up to 20%.

Figure 3: Detailed performance metrics across various imbalance scenarios for Mini-ImageNet and CUB.

Table 1 (Figure 3) illustrates that even with specific "step" imbalances (e.g., step-32, step-22), the average difference to balanced performance remains significant. Imbalance becomes particularly problematic when combined with domain shift (Mini-ImageNet $\rightarrow$ CUB). Interestingly, SimpleShot and MAML appeared most resistant to combined imbalance effects, maintaining higher relative accuracy than baseline methods.

Conclusion and Future Work

The results suggest that the "inner loop" of adaptation is the primary vulnerability for meta-learners in imbalanced settings. Future work should focus on developing adaptation strategies specifically designed to handle lopsided support sets. Additionally, while this study explored ratios up to $\rho = 65$, real-world web-scale datasets often exceed $\rho > 1000$, necessitating further investigation into extreme imbalance regimes.

Summary updated

BibTeX
@inproceedings{ochal2021how,
  author = {Mateusz Ochal and Massimiliano Patacchiola and Amos J. Storkey and Jose Vazquez and Sen Wang},
  title = {{How Sensitive are Meta-Learners to Dataset Imbalance?}},
  booktitle = {Learning to Learn @ ICLR},
  year = {2021},
  url = {https://openreview.net/forum?id=-vafHc91wO8},
}
Figure