Few-Shot Unsupervised Continual Learning through Meta-Examples

Alessia Bertugli, Stefano Vincenzi, Simone Calderara, Andrea PasseriniarXiv 2020

Introduction

Real-world artificial intelligence often operates in environments far removed from the curated, static datasets used in standard deep learning. In "wild" scenarios, data arrives in a continuous stream, lacks explicit labels, and exhibits significant class imbalance. Traditional models struggle with these conditions, often suffering from catastrophic forgetting or requiring massive amounts of labeled data to adapt to new concepts.

To address these challenges, researchers have introduced the FUSION (Few-shot UnSupervIsed cONtinual learning) framework. Alongside this benchmark, they propose Meta-Example Meta-Learning (MEML), a method designed to learn efficiently from unlabeled, unbalanced data streams by condensing entire tasks into singular representative "meta-examples."

The FUSION Framework

The FUSION setting represents a significant shift toward realistic learning by combining three difficult paradigms into a single benchmark:

  1. Unsupervised Learning: The model must discover structure without ground-truth labels.
  2. Continual Learning: Learning occurs over a non-stationary data stream where old tasks must not be forgotten as new ones are introduced.
  3. Few-Shot & Unbalanced Data: New concepts may appear with very few examples, and the frequency of classes varies naturally, reflecting real-world distributions.

Unlike previous unsupervised meta-learning approaches that artificially balance clusters to simplify the problem, FUSION embraces natural variability. The authors argue that forcing balance discards valuable structural information necessary for robust generalization in the wild.

Comparison of task flows in supervised vs. unsupervised settings within the FUSION framework.

Meta-Example Meta-Learning (MEML)

The proposed MEML algorithm improves upon standard meta-learning techniques like Model-Agnostic Meta-Learning (MAML) through two primary innovations: task construction and the meta-example mechanism.

Task Construction via Over-Clustering

In the absence of labels, MEML utilizes an unsupervised pre-training phase to create a "fitted embedding space." K-means clustering is then applied to these embeddings to generate pseudo-labels. A key finding of the research is that "over-clustering"—using more clusters than the expected number of ground-truth classes—actually improves performance. These smaller, unbalanced clusters capture subtle variations that help the model generalize to novel classes during testing.

The Meta-Example Mechanism

Standard meta-learning involves a computationally expensive "inner loop" where the model takes multiple gradient steps to adapt to a specific task. MEML replaces this with a self-attention mechanism. This module processes all samples within a task and aggregates them into a single, high-dimensional vector: the meta-example.

The model then performs a single-step gradient update based on this meta-example. This approach offers several advantages:

  • Efficiency: MEML is approximately 3x faster and requires 1/3 of the GPU memory compared to online meta-learning baselines.
  • Feature Reuse: The single-step update encourages the model to leverage existing features rather than overfitting to specific task samples.
  • Stability: To prevent catastrophic forgetting during the "outer loop" (general knowledge update), a small replay buffer of previous task data is maintained, ensuring the model retains a broad representation of seen concepts.

Experimental Results

The researchers evaluated MEML on standard benchmarks adapted for the FUSION setting, including Omniglot and Mini-ImageNet.

Performance comparison of MEML against baselines and supervised oracles on Omniglot (left) and Mini-ImageNet (right).

On the Omniglot dataset, MEML achieved 84.6% accuracy in a 10-class setup, significantly outperforming the standard Online Meta-Learning (OML) baseline of 74.6%. On Mini-ImageNet, MEML with 256 clusters reached 70.0% accuracy on 2-way tasks, notably surpassing the supervised "Oracle OML" which scored 50.0%. These results suggest that the unsupervised features learned by MEML can be more robust than those derived from human-defined labels in certain low-data regimes.

Conclusion

MEML and the FUSION framework represent a significant step toward more autonomous and adaptable AI. By moving away from the constraints of balanced, labeled datasets, this work demonstrates that models can learn effectively from the inherent noise and imbalance of real-world data. Future work will explore more complex hierarchical aggregation techniques and methods to better handle extreme distribution shifts in out-of-distribution tasks.

Summary updated

BibTeX
@misc{bertugli2020few,
  author = {Alessia Bertugli and Stefano Vincenzi and Simone Calderara and Andrea Passerini},
  title = {{Few-Shot Unsupervised Continual Learning through Meta-Examples}},
  year = {2020},
  eprint = {2009.08107},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.08107},
}
Figure