Layer-wise adaptive moments
Algorithms AIMech:LayerWiseAdaptiveMoments DRAFT
Aliases: LAMB
A gradient optimizer that combines coordinate-wise Adam moment scaling with layer-wise normalization of the resulting update direction, optionally including weight decay, and scales each block by a function of its parameter norm and a global learning rate.
Identity Notes & Concept Scope
Compared all 442 pinned AIO and 565 native IDs, names, aliases and scoped synonyms; no normalized identity match. Ignored- and hidden-inclusive fixed-string searches of the recovery, older discovery and original Documents checkouts returned 55, 13, 16 lines. Canonical data hits were read: existing LARS/CLARS context or the author Alex Lamb in augmentation sources; original ignored dependencies contain unrelated ontology prefixes and an author name. Historical report and rendered-mirror paths were classified with bounded excerpts, not reread in full. A semantic search covered ten AIO rows and 88 native definitions: the preceding ten AIO and 87 native rows were verified unchanged, and the new CLARS definition was read. Three complete AIO node/edge/generated contexts were verified unchanged; six full native context records were read or verified against prior full readings. LAMB normalizes a coordinate-wise moment-scaled direction within blocks; LARS, CLARS, ordinary SGD, Adam and RMSprop have different update rules. The separately named NovoGrad paper shares layer-wise adaptive moments terminology but its primary abstract identifies a distinct pending method, not an alias.
Claims & Grounded Evidence
7 Claims
Mechanism
#raw-moments-and-bias-correction
For the minibatch loss gradient g_t, maintain raw states m_t=beta1*m_(t-1)+(1-beta1)*g_t and v_t=beta2*v_(t-1)+(1-beta2)*g_t^2 from zero initial states, with coordinate-wise squares. Form mhat_t=m_t/(1-beta1^t), vhat_t=v_t/(1-beta2^t), and r_t=mhat_t/(sqrt(vhat_t)+epsilon), with epsilon>0. Raw states, not the corrected views, feed the next recurrence. The paper reuses m_t and v_t symbols on its correction lines; the inspected official implementation explicitly distinguishes stored states from corrected values.
Mechanism
#layer-normalized-direction
For a chosen block i, form u_t^(i)=r_t^(i)+lambda*x_t^(i) and, when norm(u_t^(i))>0, update x_(t+1)^(i)=x_t^(i)-eta_t*phi(norm(x_t^(i)))*u_t^(i)/norm(u_t^(i)), using L2 norms and nonnegative global rate eta_t. Its displacement norm is eta_t*phi(norm(x_t^(i))). The paper discusses the identity scaling function and a weight-norm function clipped between lower and upper thresholds. Normalization acts on the moment-scaled combined direction, not the raw gradient norm, a mean of per-example gradient norms, or the separate sum of gradient and decay norms.
Mechanism
#decay-outside-moments-inside-normalization
The stated lambda*x_t term is added after the loss-gradient moments are formed, so it does not enter their first- or second-moment recurrences. It nevertheless changes the direction and norm used by layer adaptation. Consequently this is not generally equivalent to either adding an L2-penalty gradient before Adam moment estimation or taking an independently scaled AdamW shrinkage step after the normalized gradient update. A concrete implementation may exclude selected parameters from decay or layer adaptation.
Limitation
#zero-norm-and-grouping-boundaries
A positive epsilon protects the coordinate-wise second-moment denominator but does not make the final block norm nonzero: r_t and lambda*x_t can cancel. The displayed paper update supplies no explicit zero-block fallback. The inspected TensorFlow Addons revision uses the identity parameter-norm scaling and a ratio of one when either the parameter norm or the update norm is zero, and allows regex-based exclusions. Its zero-weight behavior can therefore differ from directly applying identity phi to the ideal formula. Parameter-block grouping, norm conventions and exclusions affect the method and must be specified.
Limitation
#bias-correction-and-sign-limit
Removing bias correction is not universally equivalent to a warm-up schedule. For the same raw moment states, zero decay, zero epsilon and a defined nonzero normalized direction, the common positive bias-correction scalar cancels in the block normalization; with decay or positive epsilon that equivalence need not hold. Similarly the beta1=beta2=0 sign-gradient relation requires an ideal zero-epsilon, zero-decay limit and appropriate treatment of zero coordinates. At positive epsilon the coordinate ratio is g/(abs(g)+epsilon), not an exact sign. These qualifications concern algebraic limits, not a recommendation to remove numerical safeguards.
Limitation
#convergence-scope
The primary theory assumes smoothness and bounded stochastic-gradient noise, and studies a uniformly selected iterate under specified rates and batch scaling. The stated LAMB theorem focuses on beta1=0 and lambda=0, uses a positive bounded scaling function and equal block dimensions, and gives different stationarity bounds for zero versus positive beta2. These conditions do not automatically cover every momentum, decay, scaling-function, numerical-offset or implementation configuration. The comparison with SGD also uses different stationarity quantities; it is not a uniform guarantee that LAMB converges faster or generalizes better.
Scope
#applications-variants-and-evidence
The paper studies neural-network optimization including BERT pretraining and image classification, with selected schedules, hardware, batch sizes and downstream evaluation. Its title training time depends on that experimental configuration and does not define the algorithm or establish universal speedup. Nesterov first-moment and two-moment variants, norm substitutions, bias-correction ablations and later library implementations require explicit version choices. This record describes the basic algorithm and a pinned implementation boundary without importing a numerical benchmark or claiming training reproduction.
⚠️ Curated Limitations & Negative Results
- The record uses separate raw and bias-corrected moment symbols, corroborated by the pinned implementation; the primary pseudocode reuses moment symbols on correction lines. Bias-correction ablations are explicitly conditional.
- Block normalization can remain undefined despite positive coordinate-wise epsilon. The inspected implementation supplies a ratio-one zero-norm policy and exclusions that are implementation choices, not a universal paper rule.
- Weight decay is outside the gradient moments but inside the normalized direction. It is not interchangeable with arbitrary L2 regularization or an independent unadapted shrinkage step.
- The stated convergence theorem has restricted momentum, decay, batch, scaling-function and block assumptions. An update-norm identity is not a universal convergence, stability or generalization theorem.
- The January 3, 2020 preprint and the April 15, 2024 archived TensorFlow Addons revision are distinct source versions. The latter was inspected statically, not treated as the exact historical training implementation; helper dependencies and runtime behavior were not audited.
- Rendered PDF pages 1–23 of 37 were inspected, including the full method, theorem proofs, variants and selected experimental material. Remaining baseline tuning tables on pp. 24–37 were not read. No numerical benchmark, independent proof certification, source-code execution or model training is claimed.
Artificial Intelligence Ontology (AIO) Grounding
Mapped AIO Classes
| AIO Target Class | Mapping Relation | Mapping Rationale |
|---|---|---|
AIO:TrainingStrategy
TrainingStrategy
|
related_match | The optimizer directly controls machine-learning parameter training, the central context named by TrainingStrategy. The pinned target uses a preprocessing genus and learning-task examples, so this contextual mapping does not assert algorithm equivalence, subclass membership or that LAMB is preprocessing. |
Evidence Sources & Primary Literature
2 Sources| Source ID | Publication / Document | Type / Access | Reference & Checksum |
|---|---|---|---|
you2020
|
Yang You, Jing Li, Sashank Reddi, Jonathan Hseu, Sanjiv Kumar, Srinadh Bhojanapalli, Xiaodan Song, James Demmel, Kurt Keutzer, Cho-Jui Hsieh
|
primary paper
full_text
|
ID: arXiv:1904.00962v5
sha256:f79503803440…
|
tfaddons
|
The TensorFlow Authors, The TensorFlow Addons Authors
|
official documentation
documentation
|
ID: tensorflow/addons@d208d752e98c310280938efa939117bf635a60a8:tensorflow_addons/optimizers/lamb.py
sha256:dfd970faf26e…
|
Curation Provenance
Curator: Codex
Method: ai_assisted
Model: GPT-6
Created: 2026-10-13T03:10:49Z
Updated: 2026-10-13T03:10:49Z
Source File:
data/curated/LayerWiseAdaptiveMoments.yaml