MADA: Meta-Adaptive Optimizers Through Hyper-Gradient Descent

Kaan Ozkara, Can Karakus, Parameswaran Raman, Mingyi Hong, Shoham Sabach, Branislav Kveton, Volkan Cevher

Introduction

Selecting an optimization algorithm is a critical yet often manual and heuristic-driven process in deep learning. While Adam remains a standard choice, newer optimizers like Lion and Adan offer performance benefits in specific domains but lack universal robustness. MADA (Meta-Adaptive Optimizer) addresses this by treating the optimizer choice as a continuous, learnable parameter. By interpolating between established optimizers within a unified framework, MADA dynamically adapts its behavior during training to suit the evolving loss landscape.

Methodology

MADA's core innovation lies in two components: a parameterized optimizer polytope and hyper-gradient descent.

Parameterized Optimizer Polytope

The authors demonstrate that many popular adaptive optimizers can be unified under a single update rule. By introducing learnable coefficients, they define a "convex polytope" where vertices represent known optimizers (e.g., Adam, Lion, Adan) and the interior represents novel, interpolated strategies. This allows the model to transition smoothly between different optimization behaviors.

Hyper-gradient Descent and AVGrad

MADA employs hyper-gradient descent to update these coefficients on-the-fly. By applying the chain rule through the optimization step, the framework shifts the optimizer's parameters toward configurations that more effectively reduce the loss. To ensure a smooth signal for meta-learning, the authors introduced AVGrad. Unlike AMSGrad, which uses a non-differentiable max operator that can hinder hyper-gradient flow, AVGrad utilizes time-averaging to maintain differentiability and stability.

Validation loss curves for various optimizers on GPT-2 training. MADA and MADA-FS demonstrate superior convergence as training progresses.

Experimental Results

MADA was evaluated across diverse benchmarks, including language modeling (GPT-2 on OpenWebText) and computer vision (ResNet-9 on CIFAR-10).

Performance on Large Language Models

In GPT-2 (125M) pre-training, MADA achieved a validation loss of 2.8806, surpassing Adam (2.8956) and Lion (2.8892). These gains translated to significant improvements in downstream tasks. For instance, on the Wikitext dataset, MADA reduced validation perplexity to 61.25, compared to Adam's 63.85.

Quantitative comparison of MADA against baseline optimizers across validation loss and perplexity metrics.

Robustness and Generalization

A key finding is MADA's robustness to poor initialization. Even when started with sub-optimal hyperparameters that would typically cause Adam to fail, MADA's hyper-gradients corrected the coefficients, eventually outperforming a well-tuned Adam baseline. Furthermore, the final configuration reached by MADA (MADA-FS) proved to be a powerful standalone optimizer.

Discussion and Limitations

While MADA offers superior performance and adaptability, it introduces computational overhead. Maintaining multiple optimizer states increases peak memory usage (e.g., from 15.5 GB for Adam to 24.9 GB for MADA). Additionally, calculating hyper-gradients adds a slight time penalty per iteration. Future work aims to expand the optimizer polytope and optimize memory efficiency through techniques like sharded data parallelism.

Conclusion

MADA represents a significant step toward automated optimization. By moving from discrete optimizer selection to a continuous, learnable landscape, it provides a robust framework that consistently outperforms fixed optimizers across vision and language tasks.

Summary updated

BibTeX
@inproceedings{ozkara2024mada,
  author = {Kaan Ozkara and Can Karakus and Parameswaran Raman and Mingyi Hong and Shoham Sabach and Branislav Kveton and Volkan Cevher},
  title = {{MADA: Meta-Adaptive Optimizers Through Hyper-Gradient Descent}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=tASXcrMekp},
}
Figure