M+Adam: Low-Precision Training via Additive–Multiplicative Optimization# Optimization
Summary (Overview)
- Core Contribution: M+Adam is a novel optimizer that combines additive (Adam-style) and multiplicative (Madam-style) update mechanisms to enable stable training with low-precision master weights (BF16, FP8, NVFP4) without requiring FP32 master weights or stochastic rounding.
- Key InsightPodcast: The method addresses complementary failure modes: additive updates get rounded to zero at large weight magnitudes, while multiplicative updates cannot change signs or escape zero.
- Main Results: M+Adam consistently outperforms AdamW (and AdamW+SR, AdamW+Kahan) across 60M–1B LLaMA-style models, 1–8× Chinchilla budgets, and multiple precision regimes, with the largest gains in the most aggressive low-precision settings.
- Theoretical Guarantee: The paper proves a monotone descent result under a local smoothness assumption in the combined additive–exponent coordinate system.
- Practical Efficiency: The additional optimizer state can be compressed via low-rank approximations (Apollo-E), keeping memory footprint close to standard AdamW.
Introduction and Theoretical Foundation
Background: The Low-Precision Training Problem
Standard mixed-precision training uses FP32 master weights for stable accumulation while performing forward/backward passes in reduced precision (BF16/FP8). However, storing master weights directly in low precision causes significant degradation because floating-point number systems have nonuniform resolution: the spacing between representable values grows with magnitude# magnitude.
Failure Modes of Additive vs. Multiplicative Updates
Additive updates (AdamW) suffer from a critical failure at large weight magnitudes:
- When is large, the local quantization bin size grows, so an additive update can be smaller than the bin width and round back to zero
- This stalls training progress entirely
Multiplicative updates (Madam) have complementary failures:
- They are sign-preserving—cannot flip the sign of a weight
- They are zero-absorbing—cannot escape from
The key insight is that these failure modes are complementary, motivating the combined approach.
Mathematical Setup
The paper models weights in base-2 floating-point decomposition:
where is the mantissa and is the exponent. The gradient with respect to the exponent simplifies elegantly:
This allows computing exponent-space gradients without explicit exponent decomposition.
Methodology
The M+Adam Update Rule
The core update combines two branches:
Additive branch (Adam-style):
Multiplicative branch (Madam-style):
with normalization:
Combined update:
Algorithm 1: M+Adam
Input: learning rates η_a, η_m; moments β₁, β₂; stabilizer ε; threshold τ
State: additive moments (u, v) ← 0, multiplicative moment v^(e) ← 0
repeat
g ← ∇_w L(w_t)
# Additive branch (Adam-style)
u ← β₁u + (1-β₁)g
v ← β₂v + (1-β₂)g²
û ← u/(1-β₁ᵗ), v̂ ← v/(1-β₂ᵗ)
u^(a) ← -η_a · û/(√v̂ + ε)
# Multiplicative branch
g^(e) ← (ln 2) · w_t · g
v^(e) ← β₂v^(e) + (1-β₂)(g^(e))²
v̂^(e) ← v^(e)/(1-β₂ᵗ)
ũ^(m) ← -η_m · g^(e)/(√v̂^(e) + ε)
ρ ← max(|w_t|, τ)
u^(m) ← clip(ũ^(m)/ρ)
# Combine
w_{t+1} ← w_t + w_t·u^(m) + u^(a)
until converged
Theoretical Analysis
The paper proves a monotone descent theorem under a local smoothness assumption in the combined coordinate system:
Assumption (Eq. 5): For all in a neighborhood:
Theorem 4.1: If the branch outputs satisfy alignment conditions and the curvature parameters satisfy:
then the update guarantees descent:
Empirical Validation / Results
Toy Diagnostic: Matrix Fitting
A controlled experiment fitting with BF16-stored weights isolates four regimes:
| Regime | Additive | Multiplicative | M+Adam |
|---|---|---|---|
| Sign-flip | ✓ | ✗ | ✓ |
| Zero-revival | ✓ | ✗ | ✓ |
| Small-weight floor | ✓ | ✗ (plateaus higher) | ✓ |
| Large-weight (BF16 spacing) | ✗ (stalls) | ✓ | ✓ |
Main Results (Table 2: 1× Chinchilla, validation perplexity)
| Weights/Compute | Optimizer | 60M | 130M | 350M | 1B |
|---|---|---|---|---|---|
| FP32/TF32 | AdamW | 29.047 | 22.615 | 15.955 | 14.011 |
| BF16/BF16 | AdamW | 29.865 | 23.587 | 19.156 | 15.642 |
| AdamW+Kahan | 29.275 | 22.859 | 18.758 | 14.854 | |
| AdamW+SR | 29.277 | 22.646 | 18.720 | 14.346 | |
| M+Adam | 29.035 | 22.032 | 16.607 | 14.139 | |
| BF16/FP8 | AdamW | 30.151 | 23.594 | 19.234 | 16.346 |
| M+Adam | 29.201 | 22.136 | 17.905 | 15.690 | |
| FP8/FP8 | AdamW | 31.560 | 24.966 | 21.674 | 17.235 |
| M+Adam | 30.484 | 24.284 | 19.395 | 16.712 | |
| NVFP4/FP8 | AdamW | 33.884 | 27.517 | 24.941 | 19.066 |
| M+Adam | 30.948 | 25.511 | 20.796 | 17.692 |
Key observations:
- M+Adam improves over AdamW in every regime and model size
- Largest relative gains occur in the most aggressive precision regime (NVFP4/FP8): 8.7–16.6% perplexity reduction
- M+Adam beats both AdamW+SR and AdamW+Kahan in BF16/BF16, showing benefits beyond additive update improvements alone
- At 350M with FP8/FP8, M+Adam (19.395) approaches BF16-weight AdamW (19.156) despite coarser weights
Scaling Results
- Improvements persist across 1–8× Chinchilla budgets (not just early-training effects)
- FP8 compute degrades absolute perplexity for both optimizers, but M+Adam maintains its advantage
- 1B results confirm gains extend beyond the main scaling sweep
Optimizer-State Compression (Table 4)
| Optimizer/State | State Precision | 130M Bytes/param | 130M PPL | 350M Bytes/param | 350M PPL |
|---|---|---|---|---|---|
| AdamW | BF16 | 4.000 | 23.587 | 4.000 | 19.156 |
| AdamW | FP32 | 8.000 | 22.615 | 8.000 | 15.955 |
| M+Adam, Apollo-E rank 4 | BF16 | 4.754 | 21.979 | 4.377 | 16.550 |
Apollo-E compression keeps memory close to BF16-state AdamW while retaining most of M+Adam's perplexity gains.
Theoretical and Practical Implications
Implications for Optimizer Design
The results suggest that optimizer geometry should match the numerical structure of the storage format. When weights live on a nonuniform grid, purely additive updates are insufficient—the optimizer needs scale-aware relative updates to make progress at large magnitudes.
Practical Benefits
- Eliminates FP32 master weights: Enables true end-to-end low-precision training
- No stochastic rounding needed: M+Adam trains stably without SR, simplifying implementation
- Compatible with existing hardware: Operates within standard floating-point arithmetic (unlike log-based approaches)
- Compressible state: Additional optimizer state can be low-rank approximated
Limitations
- Runtime overhead: ~6–9% at 1B scale from the extra multiplicative branch
- Simulation cost: FP8/FP4 storage currently simulated via explicit quantize/dequantize
- Theoretical scope: Analysis covers idealized setting without stochastic gradients or clipping
- Scale: Evaluated up to 1B parameters; larger-scale validation remains future work
Conclusion
M+Adam demonstrates that additive–multiplicative update geometry is particularly effective for low-precision training. By combining Adam-style local corrections with Madam-style relative scale changes, it addresses the fundamental mismatch between additive updates and nonuniform floating-point grids. The approach provides:
- A principled theoretical framework (monotone descent guarantee)
- Consistent empirical improvements across scales, budgets, and precisions
- A practical path toward eliminating FP32 master weights entirely
Future directions include combining M+Adam with stochastic rounding or Kahan compensation, larger-scale validation, native low-precision kernel support, and extending the theoretical analysis to stochastic settings with adaptive moments.
Related papers
- Update from Hell: Can Coding Agents Survive Hidden Breakage in Dependency Upgrades?
DEPEND-REPAIR benchmark shows current coding agents solve only 51% of dependency-upgrade tasks, failing primarily due to incomplete propagation of API changes across codebases.
- Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents — A Source-Code Study of Eleven Systems
Production harnesses replace agentic frameworks and RAG, relying on hand-rolled loops and deterministic retrieval, marking a platform turn in agent design.
- Explore More, Drift Less: Outcome-Only Reinforcement Learning Can Suffice for Long-Horizon Interactive Agents
Outcome-only reinforcement learning with CANOPY, a protocol fixing signal starvation and policy drift, lets a single open 14B model top the AppWorld leaderboard.