Competitive Meta-Learning

Boxi Weng, Jian Sun, Gao Huang, Fang Deng, Gang Wang, Jie Chen

Abstract

Competitive Meta-Learning (CML) addresses the inherent instability and slow convergence of Model-Agnostic Meta-Learning (MAML) by introducing a "swarm" of meta-learners. In the CML framework, multiple learners compete and share knowledge; specifically, "loser" models in each training epoch update their parameters toward the "winner." This mechanism facilitates more effective exploration of the parameter space and improves robustness against poor initializations. Empirical evaluations on image classification (MiniImagenet) and reinforcement learning (HalfCheetah-Dir) benchmarks demonstrate that CML achieves significantly faster convergence and superior generalization performance compared to standard MAML.

Introduction

Meta-learning, or "learning to learn," is a pivotal paradigm for autonomous systems required to master new tasks with minimal data. Model-Agnostic Meta-Learning (MAML) has emerged as a leading approach, optimizing for a set of initial parameters that can be rapidly adapted via gradient descent. Despite its success, MAML faces three critical challenges: high sensitivity to initial parameter settings, training instability, and slow convergence rates. These limitations hinder the practical deployment of meta-learning in data-constrained or time-sensitive environments.

To overcome these hurdles, we propose Competitive Meta-Learning (CML). Inspired by swarm intelligence and competitive swarm optimization, CML leverages collective search to stabilize the meta-learning process and accelerate the discovery of optimal initializations.

Methods: The Competitive Swarm Framework

The core of CML is the deployment of a swarm of $m$ meta-learners (typically $m \in \{2, 3\}$). The training process follows an iterative competitive cycle:

  1. Independent Meta-Updates: In each epoch, every learner in the swarm performs a standard MAML meta-update using its own reshuffled batch of task data.
  2. Competition: Following the updates, learners are evaluated based on a performance metric (e.g., validation accuracy or cumulative reward). The top-performing learner is designated the Winner, while the remaining learners are labeled Losers.
  3. Knowledge Transfer: To foster collective intelligence, losers adjust their parameters by moving toward the winner's position in the parameter space. This update is controlled by a competitive learning rate $\gamma$: $$\theta_{loser} \leftarrow \theta_{loser} + \gamma(\theta_{winner} - \theta_{loser})$$
The CML framework illustrates the interaction between the swarm of meta-learners, the inner/outer loop updates, and the competitive mechanism.

While CML increases the computational cost per iteration linearly with the swarm size $m$, this overhead is offset by a substantial reduction in the total number of epochs required for convergence.

Experimental Setup

The effectiveness of CML was evaluated on two distinct benchmarks:

  • MiniImagenet: A standard few-shot image classification task involving 100 categories. Experiments focused on "5-way 1-shot" scenarios, where models must identify five classes given only one example per class.
  • HalfCheetah-Dir: A reinforcement learning (RL) task from OpenAI Gym/MuJoCo. A simulated cheetah must learn to run in specific directions based on limited environmental interactions.

Results and Discussion

CML consistently outperformed standard MAML across both benchmarks in terms of speed and final performance.

Faster Convergence and Stability

On the MiniImagenet benchmark, CML reached testing accuracy levels at 1,000 epochs that required 3,000 epochs for standard MAML. The competitive mechanism allows the swarm to recover from poor local optima; if one learner stalls, it is "pulled" toward a more successful peer, ensuring the entire swarm progresses.

Training and testing accuracy on MiniImagenet. CML variants (solid lines) show faster convergence and higher final accuracy compared to MAML baselines (dashed lines).

Superior Reinforcement Learning Performance

In RL tasks, CML learners achieved significantly higher training and testing returns. While MAML often exhibited high variance and failed to learn effectively from certain initializations, CML maintained high performance and tighter error bars, indicating increased robustness to the "luck of the draw" in random initialization.

Conclusion

Competitive Meta-Learning introduces a robust, "plug-and-play" framework that enhances the efficiency of meta-learning through swarm intelligence. By transforming the search for optimal parameters into a competitive collective effort, CML mitigates the instability of MAML. Future work will explore scaling CML to larger swarms and applying the competitive mechanism to other meta-learning architectures like Reptile or Meta-SGD.

Summary updated

BibTeX
@article{weng2023competitive,
  author = {Boxi Weng and Jian Sun and Gao Huang and Fang Deng and Gang Wang and Jie Chen},
  title = {{Competitive Meta-Learning}},
  journal = {IEEE CAA J. Autom. Sinica},
  year = {2023},
  doi = {10.1109/jas.2023.123354},
}
Figure