arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.02365cs.LGcs.AI
收藏

FOAM:基于频率和算子误差的自适应阻尼方法,用于减少Shampoo的陈旧性误差

FOAM: Frequency and Operator Error-Based Adaptive Damping Method for Reducing Staleness-Oriented Error for Shampoo

Kyunghun Nam;Sumyeong Ahn

Kyunghun Nam, Sumyeong Ahn

AI总结:

提出FOAM算法,通过自适应控制阻尼因子和特征分解频率来抑制陈旧性误差,在保持收敛的同时减少Shampoo的计算时间。

摘要:

Shampoo因其在大规模优化基准上的卓越性能而备受关注,但它面临一个重要的实际瓶颈:矩阵求逆的过高计算开销。为了缓解这一问题,从业者通常依赖陈旧的预条件子更新,这在计算效率和优化保真度之间产生了根本性的权衡。在这项工作中,我们通过收敛性和稳定性的互补视角对陈旧性进行了理论研究。虽然陈旧性提高了计算效率,但它固有地降低了性能并引入了数值不稳定性。关键的是,我们发现作为数值稳定器的阻尼可以有效抑制这些负面影响。在此分析指导下,我们提出了FOAM,一种自适应算法,通过基于陈旧性误差的近似动态控制阻尼因子和特征分解频率来稳定训练。实验结果表明,与标准Shampoo相比,FOAM在保持稳健收敛的同时减少了挂钟时间。

英文摘要:

Shampoo is attracting considerable attention for its superior performance on large-scale optimization benchmarks; yet it faces a significant practical bottleneck: the prohibitive computational overhead of matrix inversion. To mitigate this, practitioners typically rely on stale preconditioner updates, creating a fundamental trade-off between computational efficiency and optimization fidelity. In this work, we provide a theoretical study of staleness through the complementary lenses of convergence and stability. While staleness improves computational efficiency, it inherently degrades performance and introduces numerical instability. Crucially, we identify that damping, acting as a numerical stabilizer, can effectively suppress these negative effects. Guided by this analysis, we propose FOAM, an adaptive algorithm that stabilizes training by dynamically controlling both the damping factor and the eigendecomposition frequency based on an approximation of the staleness-oriented error. Experimental results demonstrate that FOAM reduces wall-clock time compared to standard Shampoo while maintaining robust convergence.

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

↑