Skip to main content
QUICK REVIEW

[Paper Review] EvoGrad: Efficient Gradient-Based Meta-Learning and Hyperparameter Optimization

Ondrej Bohdal, Yongxin Yang|arXiv (Cornell University)|Jun 19, 2021
Machine Learning and Data ClassificationComputer Science10 citations
TL;DR

EvoGrad proposes a novel, efficient method for gradient-based meta-learning and hyperparameter optimization that avoids second-order derivatives and extended computational graphs by using a putative inner-loop evolutionary update to estimate hypergradients. This enables significant speedups and memory savings, allowing scaling of meta-learning to larger models like ResNet34 on limited hardware, with performance matching or exceeding standard second-order methods.

ABSTRACT

Gradient-based meta-learning and hyperparameter optimization have seen significant progress recently, enabling practical end-to-end training of neural networks together with many hyperparameters. Nevertheless, existing approaches are relatively expensive as they need to compute second-order derivatives and store a longer computational graph. This cost prevents scaling them to larger network architectures. We present EvoGrad, a new approach to meta-learning that draws upon evolutionary techniques to more efficiently compute hypergradients. EvoGrad estimates hypergradient with respect to hyperparameters without calculating second-order gradients, or storing a longer computational graph, leading to significant improvements in efficiency. We evaluate EvoGrad on three substantial recent meta-learning applications, namely cross-domain few-shot learning with feature-wise transformations, noisy label learning with Meta-Weight-Net and low-resource cross-lingual learning with meta representation transformation. The results show that EvoGrad significantly improves efficiency and enables scaling meta-learning to bigger architectures such as from ResNet10 to ResNet34.

Motivation & Objective

  • To address the high computational and memory cost of existing gradient-based meta-learning methods that rely on second-order derivatives and long computational graphs.
  • To enable scaling meta-learning to larger neural network architectures, such as ResNet34, on standard GPU hardware with limited memory.
  • To develop a method that computes hypergradients efficiently using first-order gradients only, avoiding the need for reverse-mode differentiation through the full training process.
  • To demonstrate the effectiveness of the approach across diverse meta-learning applications, including few-shot learning, noisy label correction, and cross-lingual learning.
  • To provide a general-purpose, lightweight meta-optimizer that is both simple to implement and highly efficient in practice.

Proposed method

  • EvoGrad estimates the hypergradient by simulating a putative evolutionary update to the base model parameters in the inner loop, which avoids computing second-order derivatives.
  • The method uses first-order gradients for hyperparameter updates, eliminating the need to store extended computational graphs and reducing memory overhead.
  • The real inner-loop model update is performed via standard gradient descent, while the hypergradient estimation is decoupled and computed using a stochastic evolutionary approximation.
  • The approach leverages the fact that the evolutionary update is gradient-free, allowing hypergradient computation to remain first-order and efficient.
  • The method is general and can be applied to various meta-learning frameworks, including feature-wise transformations, Meta-Weight-Net, and MetaXL.
  • The algorithm is designed to be parallelizable, with candidate models in the evolutionary step easily distributed across devices to scale population size.

Experimental results

Research questions

  • RQ1Can a gradient-based meta-learning method avoid second-order derivatives and still achieve competitive performance?
  • RQ2Can the proposed method scale meta-learning to larger models like ResNet34 on limited GPU memory (e.g., 12GB)?
  • RQ3Does the evolutionary approximation of hypergradients lead to stable and accurate hyperparameter updates in practice?
  • RQ4How does the computational and memory cost of EvoGrad compare to standard second-order methods like $T_1-T_2$ across different model sizes?
  • RQ5Can EvoGrad be effectively applied to diverse meta-learning applications beyond computer vision, such as low-resource cross-lingual NLP tasks?

Key findings

  • EvoGrad enables training of meta-learning models on ResNet34 with only 12GB of GPU memory, whereas the standard $T_1-T_2$ approach fails due to memory constraints.
  • On the Meta-Weight-Net benchmark, EvoGrad reduced training time and memory usage significantly, with the efficiency gap increasing as model size grew.
  • In the LFT model for cross-domain few-shot learning, EvoGrad achieved comparable accuracy to $T_1-T_2$ but with substantially reduced time and memory cost.
  • For the MetaXL model in low-resource cross-lingual learning, EvoGrad matched or surpassed the performance of the $T_1-T_2$ baseline across all target languages, with an average F1 score of 71.98%.
  • The memory and time costs of EvoGrad remained nearly constant even when hyperparameter count increased from 300 to 30,000, due to the dominant cost being model parameters rather than hyperparameters.
  • The method demonstrated consistent improvements in efficiency across all evaluated tasks, with the largest gains observed in larger models, confirming its scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.