Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Improving Meta-Learning Generalization with Activation-Based Early-Stopping

About

Meta-Learning algorithms for few-shot learning aim to train neural networks capable of generalizing to novel tasks using only a few examples. Early-stopping is critical for performance, halting model training when it reaches optimal generalization to the new task distribution. Early-stopping mechanisms in Meta-Learning typically rely on measuring the model performance on labeled examples from a meta-validation set drawn from the training (source) dataset. This is problematic in few-shot transfer learning settings, where the meta-test set comes from a different target dataset (OOD) and can potentially have a large distributional shift with the meta-validation set. In this work, we propose Activation Based Early-stopping (ABE), an alternative to using validation-based early-stopping for meta-learning. Specifically, we analyze the evolution, during meta-training, of the neural activations at each hidden layer, on a small set of unlabelled support examples from a single task of the target tasks distribution, as this constitutes a minimal and justifiably accessible information from the target problem. Our experiments show that simple, label agnostic statistics on the activations offer an effective way to estimate how the target generalization evolves over time. At each hidden layer, we characterize the activation distributions, from their first and second order moments, then further summarized along the feature dimensions, resulting in a compact yet intuitive characterization in a four-dimensional space. Detecting when, throughout training time, and at which layer, the target activation trajectory diverges from the activation trajectory of the source data, allows us to perform early-stopping and improve generalization in a large array of few-shot transfer learning settings, across different algorithms, source and target datasets.

Simon Guiroy, Christopher Pal, Gon\c{c}alo Mordido, Sarath Chandar• 2022

Related benchmarks

TaskDatasetResultRank
Image ClassificationEuroSAT
Accuracy63.47
497
Image ClassificationFood-101
Accuracy40.17
494
Image ClassificationImageNet-A (test)--
154
Image ClassificationImageNet-Sketch (test)--
132
Image ClassificationImageNet-R (test)
Accuracy32.71
105
Image ClassificationiNaturalist
Accuracy17.23
51
Image ClassificationObjectNet (test)--
43
Image ClassificationPlantNet-300K
Accuracy27.78
5
Showing 8 of 8 rows

Other info

Follow for update