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

Jaemyung Yu, Byeongho Heo, Sangdoo Yun, Dongyoon Han

arXiv:2611.16905 · 2026-11-13 공개 · arXiv · PDF

large-language-models adamw llm-pretraining second-order-optimization optimizer preconditioning soap moment-estimation

Abstract

Second-order optimizers (e.g., Shampoo, SOAP) have emerged as compelling alternatives to Adam/AdamW and promise faster per-step convergence than AdamW in transformer training. However, they still remain costly in practice, and even SOAP still pays substantial optimizer-state memory and eigendecomposition overhead. We ask whether the benefits of SOAP can be retained at nearly the efficiency of AdamW. In this paper, we answer yes with a lightweight SOAP variant, Factored One-sided Adam-Moment (FOAM). The path to practical impact is twofold: first, FOAM employs input-only preconditioning, dropping the output-side Kronecker factor to reduce memory and remove one eigendecomposition. The Kronecker structure of the Hessian shows that this is exact for a diagonal output-side curvature and nearly lossless for a near-diagonal one, as we observe empirically. Second, FOAM replaces SOAP's dense rotated second moment with a factored Adam-moment estimator based on row-by-column statistics. Under the K-FAC Fisher assumption with a diagonal output curvature, this estimator exactly recovers SOAP's dense second moment, and we measure only a 15-20% K-FAC violation, with negligible effect on the update. Our empirical results support the claim that FOAM matches strong SOAP and Muon baselines in validation loss across scales of large language model (LLM) pre-training, uses half of SOAP's optimizer state, runs at Muon-class wall-clock time, and retains robustness across a three-fold learning-rate range. The results hold from 124M to 760M parameters, demonstrating that SOAP's gains need not require SOAP's cost. Code: https://github.com/naver-ai/foam

한국어 요약

한 줄 요약

FOAM은 SOAP의 성능을 유지하면서 AdamW 수준의 효율성을 달성한 가벼운 2차 최적화 알고리즘이다.

핵심 기여도

핵심 아이디어

FOAM은 기존 SOAP의 두 가지 주요 비용 요소—output-side Kronecker factor와 eigendecomposition—to reduce without significant loss in performance. Hessian의 Kronecker 구조와 실증적 분석을 통해, output-side curvature가 대각선에 가까운 경우 input-side preconditioning만으로도 SOAP의 대부분 성능을 유지할 수 있음을 보여준다. 또한, K-FAC 가정 하에서 row-by-column 방식의 factored Adam-Moment estimator가 SOAP의 dense second moment를 정확히 재구성함을 수학적으로 증명하고, 실험적으로 15–20%의 K-FAC violation만 발생함을 확인한다. 이는 FOAM이 SOAP의 정확도를 유지하면서도 메모리와 계산 비용을 대폭 줄일 수 있음을 의미한다.

기술적 접근법

주요 결과

의의 및 한계

FOAM은 기존 2차 최적화기인 SOAP의 성능을 유지하면서 AdamW 수준의 효율성을 달성함으로써, 대규모 언어 모델 pre-training에서 실용적인 대안이 될 수 있다. 특히, input-side curvature가 output-side보다 훨씬 중요한 구조를 가진 transformer 레이어에 적합하다는 점에서 학술적 의의가 있다. 그러나 FOAM의 실험은 GPT-2 규모(최대 1.56B)에 제한되어 있어, 더 큰 모델에서의 성능은 여전히 미지수이다. 또한, RoPE와 softmax를 통과하는 key projection 레이어에서 정확도가 다소 저하되는 것으로 나타나, 이 부분의 개선이 필요하다.

실용적 활용

FOAM은 메모리나 wall-clock 시간이 제약인 환경에서 SOAP의 성능을 필요로 하는 대규모 언어 모델 pre-training에 적합하다. 특히, AdamW가 대규모 배치에서 성능 저하를 보이는 경우, FOAM은 효율적이고 정확한 대안이 될 수 있다. MLP down-projection과 같은 input dimension이 큰 레이어에서는 메모리 효율성이 떨어질 수 있으나, hidden dimension이 작은 레이어에서는 FOAM의 활용이 유리하다.