Meta-learning without data via Wasserstein distributionally-robust model fusion

Zhenyi Wang, Xiaoyang Wang, Li Shen, Qiuling Suo, Kaiqiang Song, Dong Yu, Yan Shen, Mingchen GaoUAI 2022

Abstract

Traditional meta-learning frameworks, such as Model-Agnostic Meta-Learning (MAML), typically require access to extensive raw datasets across a variety of tasks to learn an effective model initialization. However, in many real-world scenarios, raw training data is inaccessible due to privacy regulations, intellectual property protections, or storage constraints. This paper introduces Data-Free Learning To Learn (DFL2L), a novel paradigm that enables the learning of a meta-initialization using only pre-trained models. By leveraging a Wasserstein Distributionally-Robust Optimization (DRO) framework, the proposed method fuses task-specific models into a single initialization that generalizes robustly to unseen tasks. Experimental results across sinusoid regression and few-shot classification benchmarks demonstrate that DFL2L significantly outperforms standard baselines in data-constrained environments.

Introduction: The Data-Free Challenge

The success of meta-learning is often predicated on the "data-hungry" meta-training stage. While the community has produced a vast "graveyard" of pre-trained models—accessible via repositories like GitHub or Model Zoos—the original data used to train these models is frequently discarded or restricted. The central challenge addressed here is: How can we extract the collective knowledge of these models to create a starting point for future tasks without ever seeing the data they were trained on?

DFL2L identifies two primary operational scenarios:

  1. Offline DFL2L: A fixed ensemble of pre-trained models is available simultaneously for fusion.
  2. Online DFL2L: Pre-trained models arrive sequentially, requiring the system to update the meta-initialization without revisiting previously processed models.

The DFL2L Framework

Overview of the Data-Free Learning To Learn (DFL2L) framework, illustrating offline meta-training, online meta-training, and meta-testing phases.

To bridge the gap between isolated pre-trained models and a unified meta-initialization, the authors propose a black-box fusion framework. Rather than simple weight averaging—which often fails when models are trained on diverse tasks—the framework employs a neural network to learn a mapping between task embeddings and optimal model parameters.

Wasserstein DRO: Modeling Uncertainty

The primary hurdle in data-free learning is the sparsity of the task space. With only a limited number of pre-trained models, the meta-model risks overfitting to specific task parameters. To mitigate this, the authors utilize Wasserstein Distributionally Robust Optimization (DRO). By defining a Wasserstein ball around existing task embeddings, the model is trained to perform well against the "worst-case" perturbations of these tasks. This approach effectively "blurs" the task map, forcing the learned initialization to account for the gaps between known task anchors and ensuring better generalization to entirely new, unseen tasks.

Bi-level Optimization

The training process is formulated as a bi-level optimization problem:

  • Lower-level objective: The framework ensures the fused model can accurately reconstruct the parameters of the provided pre-trained models.
  • Upper-level objective: The meta-initialization is optimized to ensure rapid adaptation and high performance on simulated "unseen" tasks generated via the DRO perturbation process.

Experimental Evaluation

The researchers evaluated DFL2L on three distinct benchmarks, simulating a data-free environment by training 100 separate models on data subsets and then discarding the raw data.

  • Sinusoid Regression: A synthetic benchmark requiring models to predict shifted sine waves.
  • CIFAR-FS: A few-shot classification variant of the CIFAR-100 dataset.
  • Mini-ImageNet: A complex, standard benchmark for few-shot learning.

Key Results

DFL2L consistently outperformed competitive baselines, including Vanilla Averaging (VA), MAML (which performs poorly without raw data), and Optimal Transport Averaging (OTA).

Benchmark Setting DFL2L Performance Best Baseline
Sinusoid Regression 5-shot (MSE) 2.235 6.973 (MAML)
CIFAR-FS 10-shot (Offline) 50.42% 48.1% (OTA)
Mini-ImageNet 10-shot (Online) 35.89% 30.9% (Finetuning)

Discussion and Future Work

The findings suggest that in the absence of raw data, uncertainty modeling via DRO is not merely beneficial but essential. Robustness to worst-case task variations serves as a highly effective proxy for generalization.

However, current limitations include architectural constraints, as the framework assumes all pre-trained models share a common architecture (e.g., identical CNN layers). Furthermore, scaling the parameter-prediction network to massive architectures like Transformers presents a significant computational hurdle. Future research will focus on extending DFL2L to accommodate heterogeneous architectures, allowing for the fusion of diverse models like ResNets and VGGs into a single meta-knowledge base.

Summary updated

BibTeX
@inproceedings{wang2022meta,
  author = {Zhenyi Wang and Xiaoyang Wang and Li Shen and Qiuling Suo and Kaiqiang Song and Dong Yu and Yan Shen and Mingchen Gao},
  title = {{Meta-learning without data via Wasserstein distributionally-robust model fusion}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=i2aFpGkJ8P},
}
Figure