Abstract
Standard meta-learning algorithms, such as Model-Agnostic Meta-Learning (MAML), typically assume that all source tasks are equally relevant to a new target task. This assumption often fails in diverse task environments, where irrelevant source tasks can act as noise, hindering adaptation. We present a weighted meta-learning framework that assigns importance to source tasks based on their similarity to the target task, measured via kernel-based distances. Our proposed algorithm, $\alpha$-MAML, achieves faster convergence and superior accuracy across synthetic and real-world datasets.
Introduction
The paradigm of meta-learning, or "learning to learn," aims to find a model initialization that can be rapidly adapted to new tasks with minimal data. However, conventional methods like MAML operate under the rigid assumption that all tasks are drawn from the same distribution. In practice, a target task may only share significant features with a subset of available source tasks. Treating all tasks uniformly introduces "noise" from irrelevant tasks, which slows down adaptation and degrades final performance. This paper addresses this limitation by introducing a principled weighting mechanism for source tasks.
Methodology
The core of our approach is a weighted loss objective for meta-training. Instead of minimizing the average loss across all source tasks, we minimize a weighted sum where the weights $\alpha$ represent the importance of each source task relative to the target.
Task Similarity and Weighting
To determine the weights $\alpha$, we utilize theoretical data-dependent error bounds based on Integral Probability Metrics (IPM) and Rademacher complexity. Since the true IPM is often intractable, we employ Maximum Mean Discrepancy (MMD) as a computable kernel-based surrogate. This allows us to define task similarity based on how the model and its loss function interact with the data, rather than relying on simple data embeddings.
The $\alpha$-MAML Algorithm
The $\alpha$-MAML algorithm proceeds in two main stages:
- Weight Selection: Given a small sample of target data, we solve a quadratic programming problem to find the optimal weights $\alpha$ that minimize the distance between the weighted source distribution and the target distribution.
- Meta-Training: The meta-model is trained using these optimized weights, effectively focusing the learning process on the most relevant source tasks.
Experimental Evaluation
We evaluated $\alpha$-MAML on several benchmarks, including synthetic sine wave regression and real-world datasets such as the Diabetes dataset, Boston Housing prices, and a large-scale Sales dataset involving 300 distinct product tasks.
Results and Discussion
Our results demonstrate that weighted meta-learning consistently outperforms uniform weighting:
- Efficiency of Adaptation: In sine wave experiments, $\alpha$-MAML reached a lower error threshold in just 10 gradient steps compared to the 100 steps required by standard MAML.
- Predictive Accuracy: On the Sales dataset (5-shot learning), $\alpha$-MAML reduced the Root Mean Squared Error (RMSE) from 12.86 (standard MAML) to 2.43, a significant improvement.
- Robustness to Distractors: The weighting mechanism naturally assigns near-zero weights to irrelevant "distractor" tasks, ensuring the meta-initialization is closely aligned with the target task's requirements.
Conclusion
Weighted Meta-Learning provides a robust framework for handling diverse task distributions. By leveraging kernel-based similarity measures, $\alpha$-MAML identifies and prioritizes relevant source data, leading to faster and more accurate few-shot adaptation. Future work will focus on reducing the computational complexity of the weight selection process and extending the framework to more complex loss functions like multi-class cross-entropy.
Summary updated