On Supernet Transfer Learning for Effective Task Adaptation

Prabhant Singh, Joaquin Vanschoren

TL;DR

Traditional transfer learning restricts you to a fixed, often bloated backbone architecture, while Neural Architecture Search (NAS) finds tailored networks but is computationally punishing to run from scratch. This paper introduces supernet transfer learning, a novel paradigm that transfers and finetunes both model weights and the architecture search space itself. By warm-starting NAS with pretrained supernets, this approach speeds up optimal model discovery by 3x to 5x while consistently finding higher-performing models.

What Problem Does This Paper Address?

Deep learning practitioners routinely face a frustrating trade-off. They can use traditional transfer learning, which takes a massive model pretrained on a huge dataset (like ImageNet) and finetunes its weights for a new task. This is fast, but it locks them into a rigid, potentially suboptimal architecture. Alternatively, they can use Neural Architecture Search (NAS) to automatically design a custom network tailored to their specific dataset. While NAS yields highly efficient models, it typically starts completely from scratch for every new task, racking up massive computational costs.

The authors address this dilemma by asking a clever question: Why throw away the architecture search space after a task is done? In weight-sharing NAS frameworks like DARTS, the search is performed over an over-parameterized "supernet" that contains all possible structural paths and operations. This paper explores how to preserve, select, and transfer these pretrained supernets to new target tasks, transferring both weight and structural priors simultaneously.

Methods

The authors propose a framework for Supernet Transfer Learning built on top of SmoothDARTS (a highly stable variant of Differentiable Architecture Search). Instead of discarding the supernet once an architecture is found, they treat it as a transferable asset.

They evaluate two primary transfer strategies:

  1. OT-Based Supernet Transfer: The authors maintain a "zoo" of supernets, each pretrained on a different source task. When a new target task arrives, they compute the Optimal Transport Dataset Distance (OTDD) to find the most structurally and visually similar source dataset. The corresponding supernet is then selected to warm-start the target task.
  2. Multi-Dataset Supernet Transfer: To avoid managing a massive zoo of individual models, they pretrain a single supernet on a combined mixture of all available source datasets.

During the target task adaptation phase, the chosen supernet's model weights and architecture parameters (which govern the importance of operations like $3\times3$ convolutions or max-pooling) are jointly finetuned. Finally, the supernet is discretized into a single optimized architecture and given a final round of weight tuning.

Supernet Transfer Learning Pipeline

Datasets

The method is rigorously evaluated using the Meta-Album collection, a multi-domain image classification meta-dataset hosted on OpenML. Meta-Album contains dozens of diverse datasets spanning multiple distinct domains, including:

  • Microscopy & Medicine: WHOI-Plankton, PanNuke (human tissues), Medicinal Leaf.
  • Botany & Zoology: Flowers, PlantNet, Birds, Insects.
  • Common Objects & Textures: CARS, Airplanes, Textures DTD, Library of Textures (ALOT).

This cross-domain variety allows the authors to thoroughly test how well architectural biases transfer between highly distinct visual tasks.

Key Insights and Ideas

  • Supernets Learn Structural Biases: A key takeaway is that supernets don't just learn feature representations in their weights; they also learn architectural priors (e.g., whether a specific task domain benefits more from dilated convolutions versus standard convolutions).
  • A Diverse Diet Beats Perfect Selection: Surprisingly, pretraining a single supernet on a mixture of diverse datasets (Multi-Dataset Transfer) consistently outperformed selecting the single "best" matching dataset via an Oracle grid search. Exposing the supernet to a wide variety of tasks creates highly robust structural and weight priors that generalize exceptionally well to unseen target domains.
  • Bypassing the Chaotic Phase: Standard weight-sharing NAS suffers from an unstable, chaotic early training phase where the network struggles to optimize weights and architecture paths simultaneously. Warm-starting with a pretrained supernet completely bypasses this hurdle, leading to immediate, stable convergence.

Key Results

  • 3x to 5x Speedup: Supernet transfer learning drastically cuts down the search time, finding optimal architectures 3 to 5 times faster on average than running SmoothDARTS from scratch.
  • Superior Final Performance: Beyond being faster, warm-starting from a supernet frequently discovered architectures that achieved higher top-1 accuracy than those found by running NAS from scratch.
  • Robustness to Negative Transfer: While transferring a single supernet from an poorly matched source dataset can occasionally degrade performance (negative transfer), the Multi-Dataset Transfer approach consistently delivered positive transfer across almost all evaluated target datasets.
Figure 2: Both positive and negative transfer can occur depending on the selected source datasets

Limitations and Future Work

  • Computational Scaling of OT Metrics: Calculating the Optimal Transport Dataset Distance (OTDD) scales linearly with the number of source datasets in the pool. If the supernet zoo grows to thousands of datasets, this selection step could become a bottleneck (though linear approximations can help).
  • Fixed Structural Families: The method still requires defining a supernet backbone family (like CNN cells) beforehand, meaning it is bound to the macro-structural assumptions of that family.
  • The Challenge of Continual Learning: This work focuses on rapid adaptation to a single target task. A natural and exciting next step highlighted by the authors is extending this to continual learning, where a supernet sequentially adapts to a stream of tasks without catastrophically forgetting the structural wisdom it learned from previous ones.

Summary updated

BibTeX
@inproceedings{singh2024supernet,
  author = {Prabhant Singh and Joaquin Vanschoren},
  title = {{On Supernet Transfer Learning for Effective Task Adaptation}},
  booktitle = {TU/e},
  year = {2024},
  doi = {10.48550/arxiv.2407.20279},
}
Figure