Meta-Learning with a Geometry-Adaptive Preconditioner

Suhyun Kang, Duhun Hwang, Moonjung Eo, Taesup Kim, Wonjong Rhee · DOI

Abstract

Model-Agnostic Meta-Learning (MAML) is a powerful framework for few-shot learning, yet its efficacy is often limited by the use of standard gradient descent in the inner-loop adaptation phase. This paper introduces the Geometry-Adaptive Preconditioner (GAP), a novel approach that meta-learns a task-specific and path-dependent warping of the gradient space. By ensuring the preconditioner adheres to the mathematical properties of a Riemannian metric, GAP enables more efficient and accurate optimization. Experimental results across regression, classification, and reinforcement learning demonstrate that GAP achieves state-of-the-art performance with minimal parameter overhead.

Introduction

Meta-learning aims to enable models to adapt to new tasks rapidly using only a few examples. The standard approach, Model-Agnostic Meta-Learning (MAML), achieves this by finding a parameter initialization that can be fine-tuned via a few steps of gradient descent. However, MAML’s inner-loop optimization typically treats the parameter space as flat and uniform (Euclidean), ignoring the complex, curved geometry of the loss landscape.

While previous attempts have integrated Preconditioned Gradient Descent (PGD) into meta-learning to warp this space, they often rely on "static" preconditioners that are identical for every task or fail to guarantee that the preconditioner is a valid Riemannian metric. Without being positive definite, a preconditioner can inadvertently push the model in a direction that increases loss, hindering adaptation. GAP addresses these limitations by learning a preconditioner that is both fully adaptive and mathematically grounded.

Methodology

The Geometry-Adaptive Preconditioner (GAP)

GAP meta-learns a preconditioner $P$ that transforms the gradient at each step of the inner loop. The method is defined by four key technical components:

  1. Tensor Unfolding: To handle the high-dimensional weight tensors common in convolutional neural networks, GAP first "unfolds" these tensors into matrices, facilitating more efficient manipulation.
  2. SVD-Based Transformation: The core of GAP involves performing a Singular Value Decomposition (SVD) on the gradient. The model then applies meta-learned parameters to transform these singular values.
  3. Riemannian Metric Guarantee: To ensure the preconditioner is a valid Riemannian metric, the transformed singular values are passed through a Softplus function. This ensures they remain positive, guaranteeing that the resulting preconditioner is positive definite and always directs the model toward the steepest descent.
  4. Path-Dependency: Unlike prior methods that use a fixed matrix for an entire task, GAP’s preconditioner is recalculated at every step $k$ of the inner loop, adapting to the specific trajectory of the weights.

Scalability via Approximate GAP

Recognizing that SVD is computationally intensive for large-scale models, the authors propose "Approximate GAP." Based on the observation that gradients in wider neural network layers become asymptotically orthogonal, the authors demonstrate that a diagonal meta-learned matrix can approximate the full Riemannian benefits without the cost of SVD. This allows GAP to scale to deeper and wider architectures.

Experimental Evaluation

Few-Shot Regression and Classification

In standard sinusoid regression benchmarks, GAP significantly outperformed existing methods, reducing Mean Squared Error (MSE) by 89% to 94%. In few-shot classification on mini-ImageNet and tiered-ImageNet, GAP provided a consistent boost, improving 1-shot accuracy by approximately 1.4% and 5-shot accuracy by 1.5% over the strongest PGD-MAML baselines.

Robustness and Generalization

GAP demonstrated exceptional performance in cross-domain scenarios. When trained on ImageNet but tested on specialized datasets like CUB-200 (birds) or Cars, GAP maintained high accuracy where other meta-learners faltered. On the "Meta-Dataset" benchmark—which spans 13 diverse domains including Omniglot and MSCOCO—GAP showed superior domain generalization capabilities.

Reinforcement Learning

In MuJoCo environments such as Half-cheetah, GAP reached high reward thresholds significantly faster than MAML or CAVIA. In many instances, GAP required only a single gradient update to reach performance levels that other models took several steps to achieve.

Discussion and Insights

  • Parameter Efficiency: One of GAP's most striking features is its efficiency. While many preconditioning methods significantly increase the model's parameter count, GAP adds only about 0.2% more parameters to a standard Conv-4 backbone.
  • The Importance of the Steepest Path: By enforcing the Riemannian metric property, GAP ensures the model takes the most efficient path to a solution. This is critical in few-shot settings where the model has very little data to correct for inefficient optimization steps.
  • The Orthogonality Shortcut: The success of Approximate GAP suggests that for modern, wide architectures, sound mathematical principles (like positive definiteness) are more important than the complexity of the preconditioner matrix itself.

Conclusion and Future Work

GAP represents a significant advancement in meta-learning by bridging the gap between differential geometry and practical optimization. While the full SVD-based version introduces some computational overhead during testing (approx. 2.3x), the approximate version offers a scalable alternative. Future research may explore more complex manifold structures or apply GAP to non-convolutional architectures like Transformers and Graph Neural Networks, where the assumptions regarding gradient orthogonality may differ.

Summary updated

BibTeX
@misc{kang2023meta,
  author = {Suhyun Kang and Duhun Hwang and Moonjung Eo and Taesup Kim and Wonjong Rhee},
  title = {{Meta-Learning with a Geometry-Adaptive Preconditioner}},
  year = {2023},
  eprint = {2304.01552},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.01552},
}
Figure