BatMan-CLR: Making Few-Shots Meta-learners Resilient Against Label Noise

Jeroen M. Galjaard, Robert Birke, Juan F. Pérez, Lydia Y. ChenECML/PKDD 2023 · DOI

TL;DR

This paper introduces BatMan-CLR, a novel framework that significantly improves the robustness of few-shot meta-learners against label noise during the crucial meta-training phase. By transforming noisy few-shot tasks into semi-supervised contrastive learning problems, BatMan-CLR effectively mitigates accuracy drops, even with up to 60% label noise.

What Problem Does This Paper Address?

Few-shot learning (FSL) aims to enable models to learn new tasks with very few examples. Meta-learning has emerged as a powerful paradigm for FSL, where models learn to learn by training on a distribution of tasks. However, a critical challenge in real-world scenarios is the presence of label noise, where training data might have incorrect labels. While label noise in standard supervised learning is well-studied, its impact on meta-learning, especially during the meta-training phase (where the model learns general adaptation strategies), is largely unexplored. This paper investigates this gap, demonstrating that state-of-the-art meta-learners suffer significant performance degradation when meta-trained with noisy labels.

Methods

The core contribution is the BatMan-CLR framework, which enhances meta-learners' resilience to label noise. It comprises three key steps:

  1. Manifold (Man) and Batched Manifold (BatMan) Sampling: This technique reframes a noisy $N$-way $K$-shot problem into an $N$-way $2$-contrastive-shot problem. It involves:
  2. Augmenting existing shots to create pairs of samples that are likely to share the same ground truth label, even if the original labels are noisy.
  3. Man sampling constructs these $N$-way $2$-contrastive tasks.
  4. BatMan sampling batches these Man samples to jointly optimize multiple sub-problems and increase the likelihood of considering all $N$ classes in a single meta-epoch.
  5. Semi-Supervised Meta-Training with Contrastive Loss: The augmented samples are then used in a contrastive learning framework. Specifically, the Decoupled Contrastive Loss (DCL) is employed to learn robust embeddings from the semi-supervised tasks. This step leverages the augmented pairs to learn meaningful representations despite the noisy labels.
  6. Zeroing Trick for Classification (Meta-Testing): After meta-training, the learned meta-model produces embeddings. To adapt this to a new task for classification, a linear layer with zeroed-out weights and biases is appended. This "zeroing trick" decouples embedding learning from classification, allowing the model to leverage the well-learned embeddings without being influenced by randomly initialized classification weights, thus improving performance on unseen tasks.

Datasets

The paper evaluates its approach on three standard few-shot learning benchmarks:

  • Omniglot: A dataset of handwritten characters from 1623 different classes.
  • CifarFS: A few-shot version of the CIFAR-10 dataset.
  • MiniImagenet: A subset of ImageNet designed for few-shot learning.

For meta-training, synthetic label noise (symmetric random noise) was introduced to the training sets of these datasets at levels of 30% and 60%. Meta-testing was performed on clean data to evaluate the learned robustness.

Key Insights and Ideas

  • Label noise is a significant threat to meta-learning: Unlike standard supervised learning, meta-learners are particularly vulnerable to label noise during meta-training because the limited number of shots per class makes it difficult to distinguish true class signals from corrupted labels.
  • BatMan-CLR effectively turns noisy supervised tasks into semi-supervised ones: The core idea of creating contrastive pairs from augmented samples is a clever way to extract utility from noisy labels, effectively creating a "self-cleansing" mechanism.
  • Batching is crucial for robustness: BatMan sampling, which batches Man samples, provides a more significant benefit than individual Man samples, especially on more challenging datasets. This is attributed to the richer information provided for meta-gradient updates.
  • Contrastive learning is well-suited for noisy, limited data: The use of DCL is highlighted as particularly effective for small datasets and noisy scenarios, making it a good choice for the semi-supervised meta-training phase.
  • The "zeroing trick" is vital for meta-testing: Decoupling the learned embeddings from the final classification layer by zeroing out weights significantly improves performance, allowing the model to effectively utilize the robust embeddings learned during meta-training.

Key Results

  • Significant degradation without BatMan-CLR: State-of-the-art meta-learners like Reptile, iMAML, and foMAML experienced accuracy drops of up to 42% on CifarFS and Omniglot when meta-trained with 60% label noise.
  • BatMan-CLR dramatically reduces accuracy drops: Even with 60% label noise, BatMan-CLR limited the meta-testing accuracy drop to:
  • 2.5 percentage points on Omniglot.
  • 9.4 percentage points on CifarFS.
  • 1.1 percentage points on MiniImagenet.
  • Robust performance across datasets and learners: The proposed method showed consistent improvements across different meta-learners (Reptile, Eigen-Reptile, iMAML, foMAML+ZO) and the three tested datasets.
  • BatMan outperforms Man: Batched Manifold sampling (BatMan) generally provided better results than individual Man sampling, especially on the more difficult CifarFS dataset.

Limitations and Future Work

  • Focus on meta-training noise: The current work primarily addresses label noise during meta-training. The authors suggest exploring label noise in meta-testing as a future direction.
  • Limited noise types: The study focused on symmetric random label noise. Future work could investigate other types of noise, such as out-of-domain noise, asymmetric noise, or task-level corruption.
  • Class semantics: The current approach does not explicitly leverage class semantics. Incorporating class semantics into noise generation or the learning process is suggested for further improvement.
  • Exploring other loss functions: While DCL was used, the authors mention that other contrastive loss functions could be explored.
  • Adding class awareness: Future work could also explore adding class awareness to the meta-testing phase.

Summary updated

BibTeX
@misc{galjaard2023batman,
  author = {Jeroen M. Galjaard and Robert Birke and Juan F. Pérez and Lydia Y. Chen},
  title = {{BatMan-CLR: Making Few-Shots Meta-learners Resilient Against Label Noise}},
  year = {2023},
  eprint = {2309.06046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.06046},
}
Figure