English

Lion Secretly Solves Constrained Optimization: As Lyapunov Predicts

Machine Learning 2025-07-02 v7 Artificial Intelligence Optimization and Control Applications Machine Learning

Abstract

Lion (Evolved Sign Momentum), a new optimizer discovered through program search, has shown promising results in training large AI models. It performs comparably or favorably to AdamW but with greater memory efficiency. As we can expect from the results of a random search program, Lion incorporates elements from several existing algorithms, including signed momentum, decoupled weight decay, Polak, and Nesterov momentum, but does not fit into any existing category of theoretically grounded optimizers. Thus, even though Lion appears to perform well as a general-purpose optimizer for a wide range of tasks, its theoretical basis remains uncertain. This lack of theoretical clarity limits opportunities to further enhance and expand Lion's efficacy. This work aims to demystify Lion. Based on both continuous-time and discrete-time analysis, we demonstrate that Lion is a theoretically novel and principled approach for minimizing a general loss function f(x)f(x) while enforcing a bound constraint x1/λ\|x\|_\infty \leq 1/\lambda. Lion achieves this through the incorporation of decoupled weight decay, where λ\lambda represents the weight decay coefficient. Our analysis is made possible by the development of a new Lyapunov function for the Lion updates. It applies to a broader family of Lion-κ\kappa algorithms, where the sign()\text{sign}(\cdot) operator in Lion is replaced by the subgradient of a convex function κ\kappa, leading to the solution of a general composite optimization problem of minxf(x)+κ(x)\min_x f(x) + \kappa^*(x). Our findings provide valuable insights into the dynamics of Lion and pave the way for further improvements and extensions of Lion-related algorithms.

Keywords

Cite

@article{arxiv.2310.05898,
  title  = {Lion Secretly Solves Constrained Optimization: As Lyapunov Predicts},
  author = {Lizhang Chen and Bo Liu and Kaizhao Liang and Qiang Liu},
  journal= {arXiv preprint arXiv:2310.05898},
  year   = {2025}
}

Comments

ICLR 2024 Spotlight

R2 v1 2026-06-28T12:44:55.311Z