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

Unsupervised Learning via Meta-Learning

Kyle Hsu, Sergey Levine, Chelsea Finn

Meta-learning, or "learning to learn," aims to bridge the gap between data-hungry deep learning models and human-like fast adaptation. By training models on a distribution of tasks, they learn to solve new, unseen tasks quickly from just a few examples. However, standard meta-learning suffers from a "chicken and egg" problem: it requires a massive dataset of labeled tasks to practice on.

Conversely, unsupervised learning leverages infinite unlabeled data but typically relies on proxy tasks (like image reconstruction) that do not directly align with downstream goals like classification.

This paper asks a compelling question: Can we perform meta-learning using only unlabeled data? To answer this, the authors introduce CACTUs (Clustering to Automatically Construct Tasks for Unsupervised meta-learning), a framework that automatically constructs a "gym" of synthetic tasks from raw data, allowing a model to become a fast learner before it ever sees a single human label.

The CACTUs Framework

The CACTUs pipeline operates in three main stages to transform unlabeled data into a meta-learning curriculum:

The CACTUs pipeline: embedding learning, clustering, task construction, and meta-learning.
  1. Unsupervised Embedding: First, a standard unsupervised learning algorithm (such as BiGAN, ACAI, or DeepCluster) projects raw images into a meaningful feature space.
  2. Task Construction via Clustering: The system uses $k$-means clustering on these embeddings to group similar images into "pseudo-classes." To ensure the meta-learner faces a diverse range of challenges, CACTUs performs "overcomplete partitioning"—running the clustering multiple times with random scaling on the embedding dimensions to create various data splits.
  3. Meta-Learning: These clusters are treated as ground-truth classes to sample $N$-way, $K$-shot tasks (e.g., distinguishing between images from Cluster A and Cluster B using one example each). Standard meta-learning algorithms like MAML or Prototypical Networks are then trained on these synthetic tasks.

Crucially, while the tasks are defined by the embeddings, the meta-learning itself happens on the raw images. This forces the model to learn its own end-to-end features optimized specifically for fast adaptation.

Experimental Setup

The researchers evaluated CACTUs across four diverse image datasets:

  • Omniglot: Often called the "transpose of MNIST," containing thousands of handwritten characters from different alphabets.
  • miniImageNet: A standard, challenging benchmark for few-shot object recognition.
  • CelebA: A dataset of celebrity faces, used to test if the method works on non-categorical tasks (e.g., distinguishing facial attributes).
  • MNIST: Used primarily for ablation studies and sanity checks.

Key Findings

CACTUs demonstrates that optimizing for fast adaptation on synthetic tasks creates a powerful inductive bias, significantly improving upon the base unsupervised methods used to create those tasks.

  • Significant Performance Gains: On Omniglot, using ACAI embeddings with a standard linear classifier yields ~61% accuracy on 5-way 1-shot tasks. CACTUs-MAML boosts this to ~69%. On miniImageNet, using DeepCluster embeddings, the baseline achieves ~29% accuracy, while CACTUs-MAML reaches ~40%.
  • Meta-Learning > Linear Probing: A common unsupervised baseline is to freeze learned features and train a linear classifier on top. CACTUs consistently outperforms this approach, proving that a model trained to adapt its weights is more powerful than one with static features.
  • Closing the Gap to Supervised Oracles: In several scenarios, this entirely unsupervised approach begins to approach the performance of "Oracle" models that were meta-trained on actual human labels.
  • Generalization: Though meta-trained on 1-shot tasks, the model generalizes remarkably well to 20-shot and 50-shot scenarios.

Limitations and Future Work

While promising, CACTUs has a few limitations. First is the embedding bottleneck: the framework is only as good as the initial unsupervised embedding. If the embedding fails to capture relevant data features, the resulting clusters and tasks will be nonsensical. Second, the process of running multiple clusterings followed by meta-learning incurs a higher computational cost than standard representation learning.

Future work will need to explore how this method scales to highly unbalanced, "in-the-wild" data where $k$-means clustering might struggle, as well as extending the framework beyond classification to domains like regression, reinforcement learning, or natural language processing.

Summary updated

BibTeX
@inproceedings{hsu2019unsupervised,
  author = {Kyle Hsu and Sergey Levine and Chelsea Finn},
  title = {{Unsupervised Learning via Meta-Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=tshLl5FaAz7},
}
Figure