Current optimizers in machine learning are general-purpose: SGD, AdamW, Muon. They use gradients and relatively simple rules. For example, AdamW uses estimates of the first and second moments of gradients, while Muon orthogonalizes momentum updates. These optimizers can be applied to a wide variety of architectures, and they have been.
There is also a long line of research into learning parameterized optimizers. To the best of my knowledge, these approaches are interesting but have yet to see widespread practical adoption, and generally don’t substantially outperform AdamW.
What would it look like if a team of expert mathematicians, statisticians, and machine learning researchers took a small transformer and optimized the hell out of its optimizer? Maybe not even a team, but tens of thousands of people. All putting every layer, learning trajectory, geometric property, and statistical pattern under a microscope, coming up with insanely niche rules that exploit the underlying architecture and problem space.
Imagine that the optimizer could be as complicated as we wanted. It could consist of millions of lines of generated code.
This is a bit different from the parameterized optimizers mentioned above, as I’m imagining all of this knowledge being encoded as handcrafted rules in an explicit program rather than learned parameters.
I was inspired by Age of Empires II, where the AI consists of over 10,000 handcrafted rules (!!).

