Abstract
Gradient-based meta-learning algorithms, such as MAML and Reptile, aim to find a model initialization that facilitates rapid adaptation to new tasks. However, these methods are frequently susceptible to "meta-overfitting," where the meta-learner memorizes specific training tasks rather than acquiring a generalizable initialization. This paper proposes a novel framework that integrates network pruning into the meta-learning pipeline to combat this issue. By utilizing techniques such as Iterative Hard Thresholding (IHT) and Dense-Sparse-Dense (DSD) training, the authors demonstrate that sparsity acts as a powerful regularizer. Theoretical analysis shows that the generalization gap in this framework depends on the sparsity level rather than the total number of parameters. Experimental results on MiniImageNet and TieredImageNet benchmarks indicate that sparse meta-learners significantly outperform their dense counterparts, especially as network width increases.
Introduction
The primary goal of optimization-based meta-learning is to identify a parameter initialization that can be fine-tuned to a new task with minimal data. While effective, these models often utilize over-parameterized deep neural networks. This over-parameterization leads to a phenomenon known as meta-overfitting: the model achieves high performance on training tasks but fails to generalize to unseen tasks. Unlike standard overfitting, which involves memorizing data points, meta-overfitting involves memorizing the tasks themselves.
To address this, the authors explore the intersection of network pruning and meta-learning. They hypothesize that by explicitly controlling network capacity during the meta-training phase, they can force the model to learn more robust, essential features that generalize better across the task distribution.
Methodology
The proposed framework builds upon Reptile, a first-order gradient-based meta-learning algorithm. The core innovation is the introduction of an explicit network capacity constraint during the meta-optimization process.
Sparsity Constraints
The authors formulate the meta-learning problem with layer-wise $L_0$ constraints, denoted as $||\theta_l||_0 \le k_l$, where $k_l$ represents the maximum number of non-zero parameters allowed in layer $l$. This effectively searches for a "winning ticket" subnetwork that serves as a superior starting point for future tasks.
Pruning Routines
Two primary algorithmic variants are introduced:
- DSD-Reptile: Inspired by Dense-Sparse-Dense training, this involves an initial pruning phase to find a sparse initialization, followed by a retraining phase.
- IHT-Reptile: Based on Iterative Hard Thresholding, this approach iteratively alternates between pruning insignificant weights and retraining the remaining subnetwork, providing a more robust path to sparsity.
The Retraining Strategy
A critical component of the method is the "retraining" phase. After identifying a robust sparse initialization, the pruned weights are reactivated for a final training stage. This allows the model to regain its full representational capacity while retaining the high-quality, generalized initialization discovered during the sparse phase.
Theoretical Foundation
The authors provide a theoretical justification for their approach using uniform concentration analysis. They prove that the generalization gap—the difference between the meta-training error and the meta-testing error—is bounded by a function of the sparsity level ($k$) rather than the total number of parameters ($p$). This mathematical result explains why sparse models are less prone to meta-overfitting in few-shot settings, as the complexity of the hypothesis space is effectively reduced.
Experimental Results
The framework was evaluated on standard few-shot classification benchmarks, including MiniImageNet and TieredImageNet, using various network widths (32 to 256 channels).
Performance Gains
On the MiniImageNet 5-way 1-shot task, the DSD-Reptile method showed significant improvements over the standard Reptile baseline:
- 128-channel backbone: Accuracy improved by approximately 2.1%.
- 256-channel backbone: Accuracy improved by approximately 4.4%.
Robustness to Model Width
A key finding was the relationship between model capacity and generalization. In standard Reptile, increasing the network width often led to a performance drop due to increased meta-overfitting. In contrast, the pruning-based methods remained stable or continued to improve as the models grew wider, demonstrating that sparsity effectively manages the risks of over-parameterization.
Comparative Analysis
The proposed method also outperformed other anti-overfitting techniques, such as CAVIA (Context Adaptation via Feature-Specific Auxiliary Variables), across most tested scenarios, highlighting the efficacy of direct parameter pruning over auxiliary variable methods.
Conclusion and Future Work
This research demonstrates that network pruning is not merely a tool for model compression but a vital regularization strategy for meta-learning. By constraining the capacity of the meta-learner, the authors successfully mitigate meta-overfitting and improve few-shot generalization.
However, the approach does introduce computational overhead due to the iterative nature of pruning and retraining. Future work may explore more efficient pruning schedules and the application of these techniques to even larger architectures, such as Transformers, where the potential for meta-overfitting is even greater.
Summary updated