Meta-Learning with Adaptive Hyperparameters

Sungyong Baik, Myungsub Choi, Janghoon Choi, Heewon Kim, Kyoung Mu Lee

TL;DR

While most meta-learning research focuses on finding the perfect starting point (initialization) for a model, ALFA (Adaptive Learning of hyperparameters for Fast Adaptation) shifts the focus to the update rule itself. By using a meta-network to dynamically generate task-specific learning rates and weight decay coefficients for every step of the adaptation process, ALFA achieves state-of-the-art performance—even when starting from a completely random initialization.

What Problem Does This Paper Address?

In few-shot learning, a model must generalize to a new task using only a handful of examples. The popular Model-Agnostic Meta-Learning (MAML) framework handles this by training a model to find a "good initialization"—a set of weights that can be quickly fine-tuned to any task with a few steps of Gradient Descent.

However, the authors argue that MAML and its variants have a critical blind spot: the "inner loop" (the actual adaptation process) is usually a naive Stochastic Gradient Descent (SGD) update with fixed hyperparameters. This rigid approach often leads to overfitting on the tiny support set or failing to adapt when the test task is significantly different from the training tasks. The core gap addressed here is the lack of adaptivity in the weight update process itself.

Optimization trajectories of SGD versus ALFA.

As seen in the trajectory comparison above, standard SGD tends to aggressively overfit to the support set's optimal parameters. ALFA, on the other hand, takes a more regularized path that lands closer to the true optimal parameters for the task.

Methods

To solve this, the authors propose a new update rule called ALFA. Instead of the standard SGD update, they introduce a task-conditioned rule:

$$\theta_{i,j+1} = \beta_{i,j} \odot \theta_{i,j} - \alpha_{i,j} \odot \nabla_{\theta} \mathcal{L}_{T_i}$$

Where:

  • $\alpha_{i,j}$ is a per-step, per-layer learning rate.
  • $\beta_{i,j}$ is a per-step, per-layer regularization (weight decay) coefficient.
  • $\odot$ denotes the Hadamard (element-wise) product.
Architectural comparison of standard SGD and ALFA.

These hyperparameters are generated by a small meta-network ($g_\phi$), which is a 3-layer MLP. To keep the computation efficient and prevent the meta-network from becoming too large, it doesn't look at every individual parameter. Instead, it takes the layer-wise means of the current weights and gradients as its input "state." This allows the meta-network to sense the "learning trajectory" of the task and adjust the optimization strategy on the fly.

Datasets

The researchers evaluated ALFA across several rigorous benchmarks:

  • miniImageNet & tieredImageNet: The standard "proving grounds" for few-shot classification.
  • CUB-200-2011: Used for cross-domain evaluation (training on miniImageNet and testing on birds) to see how well the model adapts to totally new types of data.
  • Meta-Dataset: A massive, multi-domain benchmark (including ILSVRC, Omniglot, Aircraft, etc.) designed to simulate more realistic, large-scale few-shot scenarios.
  • Sine Wave Regression: A toy problem used to visualize the generalizability of the update rule.

Key Insights and Ideas

  • Initialization isn't everything: One of the most surprising findings is that ALFA + Random Initialization outperforms standard MAML. This suggests that how you learn is just as important as where you start.
  • Regularization is the Hero: In few-shot settings, overfitting is the primary enemy. ALFA’s ability to dynamically adjust weight decay ($\beta$) allows it to "brake" the optimization or regularize more heavily when it senses the model is drifting too far from generalizable features.
  • Domain Robustness: Because ALFA conditions its hyperparameters on the learning state (gradients and weights) rather than raw image features, it is remarkably robust to domain shifts. It learns a "meta-optimizer" logic that applies even when the visual input changes from general objects to specific bird species.
  • Complementary Nature: ALFA isn't a replacement for better initializations; it's a partner. Combining ALFA with advanced initialization methods (like L2F) yielded the best overall results.

Key Results

  • Performance Boost: On miniImageNet (5-way 5-shot), ALFA + Random Init achieved 70.00% accuracy, significantly beating standard MAML's 63.11%.
  • State-of-the-Art: When combined with MAML and L2F, ALFA reached 71.44% on miniImageNet and 73.94% on tieredImageNet, setting new benchmarks for gradient-based meta-learning at the time of publication.
  • Cross-Domain Success: In the miniImageNet $\rightarrow$ CUB transfer task, ALFA improved MAML's accuracy from 52.70% to 58.35%, proving its superior adaptation capabilities.
  • Meta-Dataset: ALFA provided consistent gains across nearly all 10 sub-datasets in the Meta-Dataset suite, showing it scales well to complex, heterogeneous data.

Limitations and Future Work

While ALFA is powerful, the authors note a few areas for growth:

  • Simple Regularization: The current version focuses on $L_2$ weight decay. Future work could explore more complex regularization techniques like Dropout or Batch Norm adaptation within the ALFA framework.
  • State Representation: The meta-network currently relies on layer-wise means. While efficient, this might discard useful information. Exploring other state representations, such as second-order moments or momentum, could further refine the adaptive process.
  • Architecture Specificity: The meta-network architecture is currently tied to the number of layers in the backbone; a more "architecture-agnostic" meta-network would be a significant step forward.

Summary updated

BibTeX
@inproceedings{baik2020meta,
  author = {Sungyong Baik and Myungsub Choi and Janghoon Choi and Heewon Kim and Kyoung Mu Lee},
  title = {{Meta-Learning with Adaptive Hyperparameters}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=aRMZUslTE8},
}
Figure