arXiv:2608.22322cs.LGAug 2026

Manuscript Offprint

arXiv:2608.22322

Beyond Dense Adam States: Adaptive Log-Space Quantization for Memory-Efficient Optimizers

Yan Wang

Abstract

Optimizer-state quantization is commonly designed for Adam's dense, parameter-aligned first- and second-moment arrays. This abstraction breaks for memory-efficient optimizers, whose states may be factored, confidence-modulated, or maintained in a projected space, so similar reconstruction error can produce different update error. We formulate optimizer-state quantization as a joint problem over representation, topology, and update semantics. We then introduce Adaptive Log-Space (AL) quantization for nonnegative states. AL fits each block's observed nonzero logarithmic interval and reserves a separate code for exact zero, enforcing q=0⇔x=0q = 0 \Leftrightarrow x = 0; signed momentum and state precision remain independently selectable. Controlled probes show that adaptive ranges reduce update error and temporal drift, exact-zero reservation preserves dormant states, and state topology constrains useful block granularity. End-to-end language-model training evaluates the resulting policy across dense, factored, confidence, and projected optimizer states. On TinyLlama-1.1B, AL8 with uniform 8-bit momentum reaches 72.90 perplexity versus 73.54 for bitsandbytes 8-bit AdamW, with comparable optimizer-state storage and higher throughput. CAME matches reference-level final perplexity across three seeds when its non-negative states use AL16, while a semantic grouping-and-protection policy closes most of quantized Adafactor's 100K-step late-loss gap. These results make state topology and update semantics first-class design constraints for optimizer quantization.

1 Introduction

Optimizer-state quantization is usually posed as a codec problem: compress Adam's dense first- and second-moment arrays [2, 5] while preserving the values they store. Block-wise 8-bit optimizers made this formulation practical [1], and later work pushed the same dense states to lower precision [3]. The formulation assumes that the state topology and the operator consuming the reconstructed state remain fixed. Memory-efficient optimizers violate both assumptions.

Adafactor replaces a matrix second moment with row and column factors [9]; CAME adds factored confidence states that modulate momentum [6]; and APOLLO derives update scales from moments maintained in a projected gradient space [15]. Quantization error no longer follows one element-wise path. A factor error can affect an entire reconstructed row or column, confidence error feeds a residual-driven EMA, and projected-state error perturbs a scale applied outside the stored space. Treating these states as interchangeable flat arrays discards the structure that makes the optimizer memory-efficient.

This paper places that structure inside the quantization problem. We separate three interacting axes—state representation, state topology, and update semantics—and evaluate fidelity after the optimizer-specific operator has consumed the reconstructed state. State traces ground the distinction in actual pre-training; controlled diagnostics isolate inverse-root sensitivity, factor reconstruction, and confidence-state precision; and end-to-end runs test the resulting poli-

Figure

representation × topology × update semantics

Figure 1: Optimizer states differ in topology and update semantics. AdamW stores dense parameter-shaped moments; Adafactor reconstructs a second-moment estimate from row and column marginals; CAME adds factored confidence states; and APOLLO maintains moments in a projected auxiliary space that determine a scale applied to the original gradient. State shapes are schematic.

cies across four optimizer paths, including projected-state scaling.

Our representation is Adaptive Log-Space (AL) quantization for non-negative optimizer states. AL directly maps each block's observed positive log interval to an integer code space and reserves code zero exclusively for exact zero, enforcing q=0⇔x=0q = 0 \Leftrightarrow x = 0. Signed momentum uses an independent encoding, while precision and grouping remain selectable by state role and topology. This separates the representation of a non-negative block from the policy that deploys it inside an optimizer.

We make three contributions:

  • We formulate optimizer-state quantization as a joint problem over representation, topology, and update semantics, and show how dense, factored, confidence, and projected update paths consume reconstruction error differently.

  • We introduce AL, a direct integer log-space representation that fits each block's observed positive interval and enforces the bidirectional exact-zero invariant. Signed momentum, state precision, and grouping remain independent policy decisions.

  • Controlled update-error and drift diagnostics, including a matched-width comparison with SOLO's adaptive QEMA8 representation, identify the decisions tested in 20K-step TinyLlama-1.1B and 100K-step GPT-2 training. The evaluation shows that AL8+UF8 improves over bitsandbytes (bnb) 8-bit AdamW, while CAME and Adafactor require precision and grouping policies matched to their structured states.

The resulting policy follows the optimizer's structure. AL8 is effective for dense AdamW second moments; CAME assigns higher precision to sensitive non-negative states; Adafactor benefits from finer blocks and semantic grouping with parameter protection; and APOLLO tests applicability on a projected-state path. The common principle is to quantize the state an optimizer actually maintains according to the operator that consumes it.