Abstract
Gradient-based meta-learning methods often struggle with two competing challenges: the tendency to overfit to training tasks ("meta-overfitting") and the high computational cost of deploying high-capacity models on edge devices. This paper introduces METADOCK (Meta-Learning with Dynamic Optimization of CNN Kernels), a framework that treats model pruning as an intrinsic part of the meta-learning process. By dynamically selecting only the most relevant convolutional kernels for each task, METADOCK reduces model size by over 75% and improves generalization accuracy by up to 2% on standard benchmarks.
Introduction
Meta-learning, or "learning to learn," enables models to adapt to novel tasks using only a few examples. While optimization-based methods like Model-Agnostic Meta-Learning (MAML) have shown promise, they face a significant "Goldilocks" problem regarding model capacity. Large networks are necessary to capture the diversity of potential tasks but are prone to memorizing training distributions (meta-overfitting) and are too resource-intensive for low-power hardware. Conversely, smaller networks lack the representational power to generalize across complex task domains.
METADOCK addresses this by proposing that the optimal architecture for any given task is a sparse subset of a larger, high-capacity network. By dynamically pruning kernels during adaptation, the model achieves better generalization through implicit regularization while simultaneously reducing its memory footprint.
Methodology
Task-Specific Masking
The core of METADOCK is the association of a learnable masking parameter ($z$) with every convolutional kernel. Unlike static pruning, which removes weights permanently, METADOCK performs dynamic selection during the "inner loop" of task adaptation. This allows the model to activate or deactivate specific kernels based on the unique requirements of the task at hand.
Two-Level Pruning Strategy
The framework operates on two distinct levels:
- Meta-Level: The model learns a global prior, identifying which kernels are generally useful across the entire task distribution.
- Task-Level: During adaptation, the model fine-tunes this selection, tailoring the active sub-network to the specific episode.
Regularized Optimization
Building upon the iMAML (Implicit MAML) framework, METADOCK utilizes an objective function with four key regularization terms. These terms balance the proximity of task-specific weights to the meta-model, encourage mask sparsity, and enforce a specific "budget constraint" to ensure the final model meets target size requirements. To navigate the non-differentiable nature of discrete masks, the authors employ a two-step update strategy: standard gradients for weights and "pseudo-gradients" (approximated via a sigmoid function) for the masks.
Experimental Evaluation
Benchmarks and Protocol
The authors evaluated METADOCK on two standard few-shot learning benchmarks: CIFAR-fs and mini-ImageNet. To ensure the results reflected true generalization rather than statistical noise, the evaluation protocol was expanded to include 15,504 generated test tasks, a significant increase over the standard few hundred tasks used in prior literature.
Performance and Efficiency
METADOCK demonstrated superior performance across multiple metrics:
- Accuracy: The method achieved an accuracy boost of up to 2% over the iMAML baseline.
- Compression: Model size was reduced by more than 75% without sacrificing performance.
- Computational Load: On mini-ImageNet, METADOCK achieved a 5× reduction in Floating Point Operations (FLOPs) while simultaneously improving accuracy.
Key Insights
Sparsity as Regularization
A critical finding of this research is that sparsity acts as a powerful regularizer in meta-learning. By forcing the model to select a limited number of kernels, METADOCK prevents the meta-model from memorizing specific training tasks. This is quantified by the Measure of Meta-Overfitting (MO)— the percentage gap between performance on seen training tasks and unseen test tasks—where METADOCK consistently outperformed dense baselines.
The "Pruned Large Model" Advantage
The research highlights a counter-intuitive phenomenon: a large model pruned down to a specific parameter count consistently outperforms a smaller model trained from scratch to that same size. For example, a 128-channel model pruned by 75% is more effective than a 64-channel model, suggesting that the initial high-capacity space allows for the discovery of better sub-architectures that a small model cannot reach.
Conclusion
METADOCK represents a significant step toward making meta-learning both more robust and more efficient. By integrating dynamic kernel selection into the optimization loop, the framework mitigates meta-overfitting and enables the deployment of high-performing models on resource-constrained devices. Future work may involve extending this dynamic selection approach to metric-based meta-learning and optimizing the framework for specific hardware accelerators to realize theoretical FLOP reductions as actual wall-clock speedups.
Summary updated