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

Generalising via Meta-examples for Continual Learning in the Wild

Alessia Bertugli, Stefano Vincenzi, Simone Calderara, Andrea Passerini

Abstract

Deep learning models often struggle to learn from continuous streams of unlabelled and unbalanced data without experiencing catastrophic forgetting. This paper introduces FUSION (Few-shot UnSupervIsed cONtinual learning), an unsupervised meta-continual learning strategy designed for "in the wild" scenarios. FUSION clusters unlabelled data into naturally unbalanced tasks and introduces a novel Meta-Example Meta-Learning (MEML) technique. By aggregating task features into a single, attention-weighted prototype—a "meta-example"—the method performs highly efficient updates, achieving state-of-the-art accuracy and significant computational savings over existing meta-continual approaches.

Introduction

Continual learning (CL) seeks to train models on data streams while preserving past knowledge. While meta-learning enables rapid adaptation to new tasks, existing meta-continual learning methods typically assume idealized conditions: fully labelled and perfectly balanced datasets. In real-world applications, data is often unlabelled and arrives in imbalanced distributions. The authors address this challenge by proposing a framework that learns robust representations from raw, imbalanced data streams without forgetting.

The FUSION Framework

The FUSION pipeline consists of four distinct phases designed to move from raw data to a generalized model.

The four-phase FUSION pipeline: Embedding Learning, Clustering, Meta-Continual Training, and Meta-Continual Testing.

1. Embedding and Clustering

The process begins with Embedding Learning, where a network extracts feature representations ($Z$) from unlabelled data ($D$) using self-supervised or generative techniques. These embeddings are then grouped using k-means Clustering. Unlike previous methods that enforce balance by discarding data, FUSION embraces the natural imbalance of these clusters, treating each as a distinct pseudo-labeled task.

2. Meta-Example Meta-Learning (MEML)

The core of FUSION is MEML, a highly efficient meta-learning variant. Traditional algorithms like MAML require multiple gradient updates in the "inner loop" for each sample in a task, which is computationally expensive.

Detailed view of the Meta-Continual Training phase using the MEML aggregation module.

MEML utilizes a self-attention mechanism to aggregate all feature vectors within a cluster into a single weighted prototype called a meta-example. The network then performs only one inner-loop update on this aggregated representation. This approach demonstrates that effective meta-learning depends more on identifying salient features than on the quantity of gradient steps.

3. MEMLX: Hard Augmentation

To further enhance generalization, the authors introduce MEMLX. This variant generates multiple augmented batches of input data and selectively trains on the batch yielding the highest loss. This "worst-case" training acts as a regularizer, forcing the model to learn more robust features.

Experimental Evaluation

FUSION was evaluated in two primary settings:

  • Unsupervised Meta-Continual Learning: Tested on Omniglot (character recognition) and Mini-ImageNet (RGB images) without labels during training.
  • Supervised Continual Learning: Tested in a Class-Incremental Learning (Class-IL) setting on Sequential MNIST and Sequential CIFAR-10 to assess general utility.

Key Results

FUSION demonstrates significant improvements in both performance and efficiency:

  • Accuracy: In unsupervised settings, MEML/MEMLX significantly outperformed baselines. On Omniglot, MEML achieved 89.0% accuracy (vs. OML's 74.6%). On Mini-ImageNet, MEMLX reached 74.0% (vs. OML's 49.3%).
  • Efficiency: By reducing inner-loop updates, MEML is drastically faster. Training on Omniglot took 47 minutes and 0.74 GB of GPU memory, compared to OML's 1 hour 32 minutes and 2.24 GB.
  • Supervised Performance: In standard Class-IL, MEML/MEMLX outperformed top rehearsal-based methods (GEM, MER) and showed superior backward transfer, effectively mitigating catastrophic forgetting.

Discussion and Conclusion

The success of FUSION highlights that preserving natural data imbalance and using efficient feature aggregation can lead to more robust continual learning. While the aggressive augmentation in MEMLX can occasionally lead to class confusion in visually similar datasets, the overall framework sets a new standard for unsupervised meta-continual learning. Future work will explore improved rehearsal strategies for handling domain shifts and out-of-distribution data.

Summary updated

BibTeX
@inproceedings{bertugli2022generalising,
  author = {Alessia Bertugli and Stefano Vincenzi and Simone Calderara and Andrea Passerini},
  title = {{Generalising via Meta-examples for Continual Learning in the Wild}},
  booktitle = {LOD},
  year = {2022},
  doi = {10.1007/978-3-031-25599-1\_31},
}
Figure