A Nested Bi-level Optimization Framework for Robust Few Shot Learning

KrishnaTeja Killamsetty, Changbin Li, Chen Zhao, Feng Chen, Rishabh K. Iyer

Introduction

Meta-learning, often termed "learning to learn," has emerged as a powerful paradigm for few-shot learning. However, standard frameworks like Model-Agnostic Meta-Learning (MAML) typically assume that training tasks are clean and representative of the target distribution. In real-world scenarios, meta-training sets are frequently "dirty," containing Out-Of-Distribution (OOD) tasks or instances with noisy labels. When MAML encounters such corruptions, its performance degrades as it attempts to generalize across irrelevant or incorrect data.

The NESTEDMAML Framework

To address these challenges, we introduce NESTEDMAML, a novel meta-learning framework that incorporates a nested bi-level optimization strategy. Unlike standard MAML, which employs a two-level optimization (inner loop for task adaptation and outer loop for meta-parameter updates), NESTEDMAML introduces a third "nested" level to automatically learn task and instance weights.

The NESTEDMAML framework illustrates the interaction between meta-training and meta-validation stages to optimize both model parameters and task weights.

The optimization process utilizes a small, clean meta-validation set to guide the weighting of training samples:

  • Inner Level: Adapts model parameters $\theta$ to specific training tasks.
  • Outer Level (Meta-Training): Updates global meta-parameters using a weighted loss across training tasks.
  • Nested Level (Meta-Validation): Optimizes the weights $W$ by minimizing the loss on the clean meta-validation tasks.

This structure allows the model to identify which training tasks contribute most effectively to performance on clean data, effectively downweighting corruptions. To maintain computational efficiency, a First-Order Approximation (NESTEDMAML-FO) is utilized, resulting in a training time only 1.4x to 1.7x that of standard MAML.

Experimental Evaluation

The robustness of NESTEDMAML was evaluated using the mini-ImageNet dataset, augmented with OOD tasks from SVHN and FashionMNIST, and simulated label noise (up to 50%).

Key Results: Automated Filtering

A critical feature of NESTEDMAML is its ability to "self-clean" the training set. Empirical results demonstrate that the algorithm successfully assigns near-zero weights to OOD tasks while maintaining high weights for relevant In-Distribution (ID) tasks.

Weight distribution histograms for 5-way 3-shot and 5-shot scenarios show that OOD tasks (red) are effectively suppressed compared to ID tasks (blue).

In a 5-way 3-shot scenario with a 90% OOD ratio, NESTEDMAML achieved an accuracy of 52.16%, significantly outperforming MAML's 44.10%. Under 50% label noise, NESTEDMAML maintained 53.68% accuracy, demonstrating superior resilience compared to standard approaches.

Conclusion

NESTEDMAML provides a robust solution for few-shot learning in the presence of imperfect data. By leveraging a nested optimization loop and a small clean validation set, it effectively filters out noise at both the task and instance levels. While the requirement for a clean validation set and the additional computational overhead are considerations, the significant gains in robustness and theoretical convergence make it a compelling advancement in meta-learning research.

Summary updated

BibTeX
@inproceedings{killamsetty2022nested,
  author = {KrishnaTeja Killamsetty and Changbin Li and Chen Zhao and Feng Chen and Rishabh K. Iyer},
  title = {{A Nested Bi-level Optimization Framework for Robust Few Shot Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i7.20678},
}
Figure