Lion 隐式求解约束优化:正如 Lyapunov 所预测
Lion Secretly Solves Constrained Optimization: As Lyapunov Predicts
AI总结:
本工作基于连续与离散时间分析,利用新提出的 Lyapunov 函数证明 Lion 优化器是一种有原则的约束优化方法,通过解耦权重衰减在最小化损失的同时强制边界约束,并推广至 Lion-κ 算法族求解复合优化问题。
摘要:
Lion(Evolved Sign Momentum)是通过程序搜索发现的一种新优化器,在训练大型 AI 模型方面展现出可喜的结果。其性能与 AdamW 相当或更优,且内存效率更高。正如随机搜索程序的结果所预期的那样,Lion 融合了多种现有算法的元素,包括符号动量、解耦权重衰减、Polak 和 Nesterov 动量,但不属于任何现有的有理论基础的优化器类别。因此,尽管 Lion 作为适用于广泛任务的通用优化器表现良好,其理论基础仍不确定。这种理论上的不清晰限制了进一步提升和扩展 Lion 功效的机会。本工作旨在揭开 Lion 的神秘面纱。基于连续时间和离散时间分析,我们证明 Lion 是一种理论上新颖且有原则的方法,可在最小化一般损失函数 $f(x)$ 的同时强制执行边界约束 $\\|x\\|_\infty \leq 1/λ$。Lion 通过引入解耦权重衰减实现这一点,其中 $λ$ 表示权重衰减系数。我们的分析得益于为 Lion 更新开发的新 Lyapunov 函数。该分析适用于更广泛的 Lion-$κ$ 算法族,其中 Lion 的 $\text{sign}(\cdot)$ 算子被凸函数 $κ$ 的次梯度替代,从而导出一般复合优化问题 $\min_x f(x) + κ^*(x)$ 的求解。我们的发现为 Lion 的动态特性提供了宝贵见解,并为 Lion 相关算法的进一步改进和扩展铺平了道路。
英文摘要:
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)$ while enforcing a bound constraint $\|x\|_\infty \leq 1/λ$. Lion achieves this through the incorporation of decoupled weight decay, where $λ$ 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-$κ$ algorithms, where the $\text{sign}(\cdot)$ operator in Lion is replaced by the subgradient of a convex function $κ$, leading to the solution of a general composite optimization problem of $\min_x f(x) + κ^*(x)$. Our findings provide valuable insights into the dynamics of Lion and pave the way for further improvements and extensions of Lion-related algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。