Symbolic Discovery of�Optimization Algorithms
Xiangning Chen1 2 § Chen Liang1 § Da Huang1 Esteban Real1
Kaiyuan Wang1 Yao Liu1 † Hieu Pham1 Xuanyi Dong1 Thang Luong1
Cho-Jui Hsieh2 Yifeng Lu1 Quoc V. Le1
1 Google 2 UCLA
In summary, what’s Lion Optimizer?
Gradient (full batch) Descent
Adam Optimizer
Contents
0. De facto standard optimizers
[1] - Loshchilov, I., & Hutter, F. - ICLR 2019.
[2] - Shazeer, N., & Stern, M. (2018). PMLR.
1.1 - How to Search for Optimizers
AutoML-Zero Paper
1.2 - Symbolic Discovery of Algorithms
Why is a symbolic formulation better?
Program Space
Notion of Mutations 🧬 for the Program 🤨
Intuition about how big of a search space we are talking about
How to efficiently search in this space?
1.2 - Program Search Space
Flexible enough to discover
New stuff
Program should be easy to analyze
And incorporate into the ML workflow
Program should Focus on high-level design rather than low level complexities
Output :
1.3 - Structure of the train function to learn
Pool of math functions = 45 common ones
Program Space
Notion of Mutations 🧬 for the Program 🤨
Intuition about how big of a search space we are talking about
How to efficiently search in this space?
Program Space
Notion of Mutations 🧬 for the Program 🤨
Intuition about how big of a search space we are talking about
How to efficiently search in this space?
1.4 – Mutations
1.5 – Infinite and sparse search space ? 🤯
Number of possible functions
Number of local variables
We could be essentially looking at very few workable solutions in an infinite search space
-> They do an experiment to check this point
Program Space
Notion of Mutations 🧬 for the Program 🤨
Intuition about how big of a search space we are talking about
How to efficiently search in this space?
Program Space
Notion of Mutations 🧬 for the Program 🤨
Intuition about how big of a search space we are talking about
How to efficiently search in this space?
1.6 – Search Techniques
Ok, what’s regularized (aging) evolution ?
Img Source : AutoML Zero Paper
Img Source : AutoML Zero Paper
Img Source : AutoML Zero Paper
Img Source : AutoML Zero Paper
1.6.1 – Regularized evolution with warm-start and restart
Only allowing constants to mutate in AdamW
1.6.2 – Pruning through abstract execution
1.6.3 – Proxy tasks and search cost
1.6.3 – Proxy tasks and search cost (contd.)
Vision Task
Language Task
2. Discovering Optimizers
3. Properties of the Lion Optimizer
3.1.1 – Sign update as a form of regularization
Memory Benefits
(to train a ViT-B/16 with image resolution 224 and batch size 4,096)
3 - Properties of Lion
3.2 - Limitations
3. Summary
Thanks!
2.2 – Search Techniques
Keep a Population of Algorithms
Select algorithms at Random
Select best performer as parent
Parent is copied & mutated to produce a Child algorithm
Add the child to population remove oldest algo
Keep a Population of Algorithms
Select algorithms at Random
Select best performer as parent
Parent is copied & mutated to produce a Child algorithm
Add the child to population remove oldest algo
Warm-start the initial population as AdamW to accelerate the search.
Restarts?
1.2 - Program Search Space
Functions operating over
n-dimensional arrays
Similar pseudo code of optimization algorithms
1.2 - Challenges when searching
Evolutionary search with warm-start and restart
Abstract execution
Funnel Selection
Program Simplification
Formulating algorithm discovery as program search