arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.25976cs.LG
收藏

二阶、一阶:一种可组合的栈用于曲率感知训练

Second-Order, First-Class: A Composable Stack for Curvature-Aware Training

IMT School for Advanced Studies Lucca(IMT卢卡高等研究院)

Mikalai Korbit, Mario Zanon

AI总结:

本文提出Somax,一种可组合的Optax原生栈,通过静态计划将曲率感知训练视为单个JIT编译步骤。该栈提供一阶模块,如曲率操作符、估计器、线性求解器等,并通过标准梯度变换与Optax结合,提升训练稳定性与效率。

摘要:

二阶方法承诺提供改进的稳定性和更快的收敛速度,但因其实现开销、调优脆弱性和缺乏可组合的API而未被广泛使用。我们介绍了Somax,一种可组合的Optax原生栈,将曲率感知训练视为由静态计划控制的单个JIT编译步骤。Somax通过单个步骤接口暴露一阶模块——曲率操作符、估计器、线性求解器、预条件器和阻尼策略,并通过应用标准梯度变换(如动量、权重衰减、调度)到计算的方向与Optax结合。此设计使通常隐藏的选择变得显式且可替换。Somax将规划与执行分离:它从模块需求中推导出静态计划(包括节奏),然后通过专门的执行路径运行步骤,该路径在模块间重用中间结果。我们报告了系统导向的消融实验,表明(i)组合选择显著影响扩展行为和时间到准确性,(ii)规划相对于无计划组合的冗余重新计算减少了每步开销。

英文摘要:

Second-order methods promise improved stability and faster convergence, yet they remain underused due to implementation overhead, tuning brittleness, and the lack of composable APIs. We introduce Somax, a composable Optax-native stack that treats curvature-aware training as a single JIT-compiled step governed by a static plan. Somax exposes first-class modules -- curvature operators, estimators, linear solvers, preconditioners, and damping policies -- behind a single step interface and composes with Optax by applying standard gradient transformations (e.g., momentum, weight decay, schedules) to the computed direction. This design makes typically hidden choices explicit and swappable. Somax separates planning from execution: it derives a static plan (including cadences) from module requirements, then runs the step through a specialized execution path that reuses intermediate results across modules. We report system-oriented ablations showing that (i) composition choices materially affect scaling behavior and time-to-accuracy, and (ii) planning reduces per-step overhead relative to unplanned composition with redundant recomputation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑