﻿# FOAM: retaining the input-side factor is a structural choice, not a smaller-matrix rule

FOAM keeps input-side rotation regardless of matrix size and factors the rotated moment; its new argument links approximation quality to curvature structure.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-model-foam-optimizer-memory-scope/
Language: en

FOAM's November 12 paper explains why its lightweight SOAP variant retains the input-side preconditioner even when that side is larger. This criterion distinguishes the method from simply choosing the cheaper dimension. Its rotated-moment factorization is then justified under explicit curvature assumptions, with measured approximation checks.

## The MLP down-projection separates the rules

The paper explicitly contrasts its choice with a one-sided SOAP variant that keeps the smaller dimension. For an MLP down-projection, the two rules retain opposite sides. This gives a concrete experiment rather than a generic claim that one factor saves memory. Our proposed ablation holds the optimizer schedule and training workload fixed while comparing input-only, output-only and dimension-selected variants. These are suggested tests. They ask whether the structural choice preserves useful update geometry, not merely whether dropping any matrix reduces the optimizer's bookkeeping.

## Factorization occurs after the chosen rotation

FOAM replaces SOAP's dense rotated second moment with row-and-column statistics and trace normalization. The paper's separability argument applies after input-side rotation under a K-FAC Fisher assumption and diagonal output curvature. Those conditions matter: using a similarly shaped factored buffer elsewhere does not automatically reproduce the method. The authors acknowledge that one-sided and factored ingredients appeared earlier; their claimed contribution includes explaining which side to retain and when the combination is justified. That is a narrower and more informative novelty claim than inventing factorization itself.

## Approximation residuals connect theory to runs

The authors measure deviations from their K-FAC assumption and examine their effect on updates. An exact result under idealized structure and a small empirical update difference are separate forms of evidence. Our suggested reproduction reports residuals by module and training stage, especially where layer orientation changes. It then checks validation-loss trajectories under equally tuned baselines. These are proposed extensions. A low aggregate residual could otherwise hide one problematic projection, while a favorable endpoint loss alone would not establish that the paper's structural explanation is the reason the approximation worked.

## Efficiency claims retain the tested scale

The paper reports validation, timing and state-memory evidence across its studied transformer scales, while the official repository says code is under internal review. A full independent implementation replay is therefore still pending. Half of SOAP's optimizer state is also not half of total training memory. The weekly contribution is the structural argument and empirical evidence for a cheaper SOAP-like update. Its practical conclusion is to test the retained side and rotated-moment approximation on the target architecture, rather than extrapolating a memory ratio into universal convergence or model-scale guarantees.

## Sources

- [FOAM paper, submitted November 12](https://arxiv.org/abs/2611.16905)
- [Official FOAM project and code-release status](https://github.com/naver-ai/foam)

## Related reading

- [Training memory includes gradients and optimizer state as well as weights](/journal/optimizer-state-training-memory-ledger/)
- [A GPU inference benchmark you can trust](/journal/inference-benchmark-method/)
