Skip to content
AI Learning Ground Start learning

Research ·

Factored One-sided Adam-Moment for Practical and Scalable SOAP

Researchers introduced FOAM, a lightweight SOAP optimizer variant that matches SOAP and Muon in LLM pre-training while using half the optimizer state and running at Muon-class speed.

Factored One-sided Adam-Moment for Practical and Scalable SOAP
Image: Hugging Face

A new paper on Hugging Face presents FOAM (Factored One-sided Adam-Moment), a lightweight variant of the second-order SOAP optimizer. Second-order optimizers like Shampoo and SOAP promise faster per-step convergence than AdamW in transformer training, but carry substantial optimizer-state memory and eigendecomposition costs. FOAM aims to keep SOAP's benefits at close to AdamW's efficiency.

FOAM makes two changes. First, it uses input-only preconditioning, dropping the output-side Kronecker factor, which reduces memory and removes one eigendecomposition; the authors show this is exact for diagonal output-side curvature and nearly lossless when curvature is near-diagonal. Second, it replaces SOAP's dense rotated second moment with a factored Adam-moment estimator based on row-by-column statistics, which exactly recovers SOAP's dense second moment under the K-FAC Fisher assumption, with only a measured 15-20% K-FAC violation and negligible effect on updates.

In LLM pre-training experiments from 124M to 760M parameters, FOAM matches strong SOAP and Muon baselines in validation loss, uses half of SOAP's optimizer state, runs at Muon-class wall-clock time, and stays robust across a three-fold learning-rate range. For practitioners, FOAM suggests second-order optimizer gains can be obtained without SOAP's memory and compute overhead, with code available at github.com/naver-ai/foam.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research