Abstract
The recent progress in neural architecture search (NAS) has allowed scaling the automated design of neural architectures to real-world domains, such as object detection and semantic segmentation. However, one prerequisite for the application of NAS are large amounts of labeled data and compute resources. This renders its application challenging in few-shot learning scenarios, where many related tasks need to be learned, each with limited amounts of data and compute time. Thus, few-shot learning is typically done with a fixed neural architecture. To improve upon this, we propose MetaNAS, the first method which fully integrates NAS with gradient-based meta-learning. MetaNAS optimizes a meta-architecture along with the meta-weights during meta-training. During meta-testing, architectures can be adapted to a novel task with a few steps of the task optimizer, that is: task adaptation becomes computationally cheap and requires only little data per task. Moreover, MetaNAS is agnostic in that it can be used with arbitrary model-agnostic meta-learning algorithms and arbitrary gradient-based NAS methods. Empirical results on standard few-shot classification benchmarks show that MetaNAS with a combination of DARTS and REPTILE yields state-of-the-art results.
Introduction
Neural Architecture Search (NAS) has revolutionized model design, but its traditional requirement for massive datasets and hundreds of GPU days makes it a poor fit for Few-Shot Learning (FSL). FSL aims to learn new tasks from only a handful of examples, and most existing methods rely on fixed, manually designed backbone architectures. While some recent work attempted to combine NAS and meta-learning, they were often computationally prohibitive or suffered from a "performance gap" when moving from a continuous search space to a discrete architecture.
The MetaNAS Framework
MetaNAS is the first framework to fully integrate differentiable NAS with gradient-based meta-learning. It treats architecture parameters ($\alpha$) and model weights ($w$) as joint variables in a meta-learning loop.
Instead of just updating weights, the meta-learner (e.g., REPTILE or MAML) updates a "meta-architecture" that serves as a starting point for task-specific adaptation. To bridge the gap between continuous search and discrete deployment, the authors introduce Soft-Pruning with Temperature Annealing. By annealing a temperature parameter ($\tau$) toward zero during task adaptation, architecture weights are forced to become sparse (one-hot) while model weights simultaneously adapt to this sparsity. This eliminates the need for the expensive "search-then-retrain" cycle common in NAS.
Key Insights: Architecture as a Meta-Parameter
A core innovation of MetaNAS is treating architecture parameters exactly like weights. This allows the model to learn not just the features, but the optimal network structure for extracting them for a specific task. Unlike prior work searching for one global architecture, MetaNAS finds a meta-architecture that specializes. For a new task, the model can switch between different operations (e.g., $3\times3$ vs $5\times5$ convolutions) in just a few gradient steps.
Experimental Results
MetaNAS was evaluated on the Omniglot and MiniImagenet benchmarks, achieving state-of-the-art or highly competitive results:
- MiniImagenet Accuracy: On the 5-way 1-shot task, MetaNAS achieved 54.86%, significantly outperforming the previous NAS-based meta-learner, AutoMeta (50.50%). On the 5-shot task, it reached 71.07%.
- Efficiency: MetaNAS is over 10x more efficient than its predecessors. While AutoMeta required approximately 100 GPU days, MetaNAS completes meta-training in about one week on a single GPU.
- Adaptability: Empirical observations show the model adapts its architecture to different tasks, discovering distinct optimal cells for different datasets.
Conclusion
MetaNAS offers a flexible, agnostic framework for meta-learning neural architectures. While currently limited by cell-based search space constraints and significant (though improved) compute requirements, it demonstrates that joint optimization of weights and structure is a powerful path forward for few-shot learning. Future work may extend this to more complex domains like few-shot object detection or semantic segmentation.
Summary updated