The Hidden Ratio in Adam: Stable Structure, Compression, and Sign Dynamics
Organizations: Department of Computer Science, The University of Manchester, Manchester, UK · College of Computer Science and Technology, Zhejiang University, Hangzhou, China
Abstract
Adam is the default optimizer for training modern deep neural networks, yet its adaptive behavior remains poorly understood due to the complex interaction between its first- and second-moment exponential moving averages (EMAs). We study Adam in the tied- regime, where the two EMA decay rates are equal, and show that its adaptive dynamics can be expressed through a transformed ratio with approximately scale-stable behavior. Empirically, this transformed ratio exhibits a stable, heavy-tailed distribution across tasks, model scales, and training stages, in contrast to the variability of raw moment magnitudes. This empirical stability has both practical and conceptual consequences. First, we derive a recurrence for the transformed ratio, yielding a reparameterization of Adam that replaces the second moment with a compressible state. Leveraging its stable distribution, we show that a fixed 4-bit codebook is sufficient in our experiments to store this state without auxiliary scaling, achieving performance competitive with full-precision Adam. Second, the transformed ratio view clarifies Adam's connection to sign-based methods: Adam reduces to sign-based momentum modulated by the transformed ratio, and replacing it with a constant recovers Signum as a limiting case. This perspective further provides a simple rule for transferring learning rates between the two methods. Together, these results suggest that tied- Adam admits a simple and approximately stable ratio structure underlying its adaptive behavior and demonstrate its utility for both analysis and efficient implementation.
Figures & tables
| 0 | 3.36 | 3.31 | 3.25 | 3.21 |
| 0.1 | 3.33 | 3.28 | 3.22 | 3.18 |
| 0.2 | 3.24 | 3.19 | 3.13 | 3.09 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Adam | TR-Adam (FP32- , 4-bit ) | TR-Adam (FP8- , 4-bit ) | FP32 | FP8 | |
| Llama-style 20M | 0.90 | 3.694 | 3.706 | 3.710 | +0.012 | +0.016 |
| Llama-style 20M | 0.92 | 3.676 | 3.689 | 3.688 | +0.013 | +0.012 |
| Llama-style 20M | 0.95 | 3.672 | 3.672 | 3.670 | -0.000 | -0.002 |
| Llama-style 20M | 0.97 | 3.692 | 3.677 | 3.675 | -0.014 | -0.016 |
| Pythia-style 160M | 0.90 | 3.373 | 3.378 | 3.387 | +0.004 | +0.013 |
| Pythia-style 160M | 0.92 | 3.355 | 3.365 | 3.369 | +0.010 | +0.014 |
| Model | Adam | TR-Adam (FP32- , 4-bit ) | TR-Adam (FP8- , 4-bit ) | FP32 | FP8 | |
| Pythia-1B | 0.90 | 1.299 | 1.297 | 1.297 | -0.002 | -0.002 |
| Pythia-1B | 0.92 | 1.302 | 1.295 | 1.295 | -0.007 | -0.006 |
| Pythia-1B | 0.95 | 1.309 | 1.299 | 1.299 | -0.011 | -0.011 |
| Llama-3.2-1B | 0.90 | 1.075 | 1.072 | 1.072 | -0.002 | -0.002 |
| Llama-3.2-1B | 0.92 | 1.076 | 1.071 | 1.071 | -0.005 | -0.005 |
| Llama-3.2-1B | 0.95 | 1.082 | 1.073 | 1.073 | -0.009 | -0.009 |
| Adam | TR-Adam (FP32- , 4-bit ) | TR-Adam (FP8- , 4-bit ) | FP32 | FP8 | |
| 0.90 | 0.788 | 0.825 | 0.813 | +0.036 | +0.025 |
| 0.92 | 0.800 | 0.824 | 0.819 | +0.024 | +0.019 |
| 0.95 | 0.808 | 0.817 | 0.811 | +0.009 | +0.003 |
| Dataset | FineWeb 10B / 10B / 100B |
| Models | Llama-style 20M / Pythia-style 160M / Pythia-1B |
| Training budget | 1.5B / 4B / 20B tokens |
| Sequence length | 2048 |
| Batch size | 256 |
| Warmup | 512 / 1024 / 1024 steps |
| LR schedule | constant after warmup |
| Dataset | UltraChat |
| Models | Pythia-1B, Llama-3.2-1B |
| Training budget | 2000 steps |
| Maximum sequence length | 2048 |
| Batch size | 128 |
| Learning rate | |
| LR schedule | constant after warmup |
| Dataset | UltraFeedback |
| Actor model | Llama-3.2-1B |
| Reward model | Skywork-Reward-V2-Llama-3.2-3B |
| Algorithm | ReMax Li et al. [2024] |
| Training budget | 600 steps |
| Batch size | 64 prompts |
| Maximum prompt length | 768 |