Celo2: Towards Learned Optimization Free Lunch
Organizations: Mila · Concordia University · Samsung AI Lab, Montreal · Université de Montréal
Abstract
Learned optimizers are powerful alternatives to hand-designed update rules like Adam, yet they have seen limited practical adoption since they often fail to meta-generalize beyond their training distribution and incur high meta-training cost. For instance, prior work, VeLO, scaled meta-training to 4,000 TPU months (10 GPT-3 compute) to meta-train a general-purpose optimizer but it failed to generalize beyond 600M parameters tasks. In this work, we present a surprising finding: by crafting a simple normalized optimizer architecture and augmenting meta-training, it becomes feasible to meta-train a performant general-purpose learned update rule on a tiny fraction of VeLO compute, 4.5 GPU hours to be precise. Our learned update rule scales stably to a billion-scale pretraining task (GPT-3 XL 1.3B) which is six orders of magnitude larger than its meta-training distribution. Furthermore, it shows strong performance across diverse out-of-distribution tasks and is compatible with modern optimization harness that includes orthogonalization, distinct update rules for input-output and hidden weights, and decoupled weight decay. In all, this work paves the way for practically applicable learnable optimization algorithms, unlocking exploration of richer meta-training and data curation recipes to further improve performance.
Figures & tables
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| functional form | val loss | ||
|---|---|---|---|
| raw output | = MLP(…) | 3.961 | |
| rolling norm | 3.860 | ||
| rolling norm clip | 3.999 | ||
| norm clip | 4.084 | ||
| norm | 3.812 |
| model | D | L | F | H | N | T |
|---|---|---|---|---|---|---|
| 30M (LM-30M) | 384 | 6 | 1536 | 128 | 3 | 512 |
| 124M (GPT-2) | 768 | 12 | 3072 | 128 | 6 | 1024 |
| 1.3B (GPT-3) | 2048 | 24 | 8192 | 128 | 16 | 2048 |
| D: hidden dimension, L: number of transformer layers, F: feedforward inner dimension, H: attention head dimension, N: number of attention heads, T: context/sequence length | ||||||
| hyperparameter | LM-30M | GPT-2 (124M) | GPT-3 (1.3B) |
|---|---|---|---|
| learning rate (celo2) | 0.000464 | 0.0002 | 0.00002 |
| learning rate (adamw) | 0.01976 | 0.0048 | 0.0002 |
| warmup fraction | 0.05 | 0.05 | 0.05 |
| batch size (global) | 256 | 512 | 512 |
| weight decay | 0.1 | 0.1 | 0.1 |
| adamw epsilon | 1e-8 | 1e-8 | 1e-8 |
| hyperparameter | value |
|---|---|
| learning rate (celo2) | 0.000046 |
| learning rate (adamw) | 0.0001 |
| dataset | imagenet-256 |
| model | ViT |
| hidden size | 768 |
| depth (layers) | 12 |
| hyperparameter | freeway | space-invaders | asterix |
|---|---|---|---|
| learning rate (celo2) | 0.000215 | 0.000464 | 0.0001 |
| learning rate (adamw) | 0.001 | 0.001 | 0.001 |
| total timesteps | 10M | 10M | 10M |
| discount factor ( ) | 0.99 | 0.99 | 0.99 |
| GAE parameter ( ) | 0.95 | 0.95 | 0.95 |
| num steps per update | 128 | 128 | 128 |
Learning to Optimize
Learning to Optimize uses data to adapt algorithms, solver decisions, and solution maps for faster or better optimization.
See all 138 papers