DeltaMomentum: A Key-Value based Anisotropic Momentum Update via Delta Rule
Euijin Hong, Guannan Qu
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Optimization & Federated Learning › Optimizer Design and Analysis for LLMs · Type: new method · Keywords: anisotropic momentum, key-value optimizer, gradient memory, implicit preconditioning, zero-shot hyperparameter transfer
Areas: Memory › Memory mechanisms › Memory Augmentation; Optimization & Algorithms › Optimization Dynamics › Optimization Algorithms
Summary
DeltaMomentum introduces a key-value based anisotropic momentum update that adapts forgetting per direction, improving optimizer efficiency and convergence.
Explained to a 5-year-old
When a computer learns, it keeps track of how to improve by remembering past mistakes. Usually it forgets old mistakes at the same speed everywhere, like a timer that ticks the same for everything. This paper makes the computer smarter about forgetting: it forgets quickly the mistakes that happen a lot and keeps the rare mistakes for a long time. It does this by looking at each mistake as a key and a value, like a note with a topic and an answer. The computer updates its memory using a simple rule that matches how often each mistake appears.
Explained to a 5-year-old, longer
When a computer learns, it keeps track of how to improve by remembering past mistakes. Usually it forgets old mistakes at the same speed everywhere, like a timer that ticks the same for everything. This paper makes the computer smarter about forgetting: it forgets quickly the mistakes that happen a lot and keeps the rare mistakes for a long time. It does this by looking at each mistake as a key and a value, like a note with a topic and an answer. The computer updates its memory using a simple rule that matches how often each mistake appears. This way, the memory becomes more useful for the parts of learning that matter most. As a result, the computer can learn faster and needs less extra memory. The idea works for many kinds of learning tasks, not just one. It also helps the computer adjust its learning speed automatically without needing new settings. The method is simple enough to be added to existing learning algorithms. It can be used in many different computer programs that learn from data. Overall, it makes learning more efficient and easier to handle.
For a technical reader
The paper addresses the limitation of standard optimizers that use a single exponential moving average for gradient memory, which treats all parameter directions equally. It proposes interpreting this memory as an associative store of key-value pairs derived from per-sample gradients, updating it with a delta rule that yields anisotropic forgetting rates. Consequently, frequently queried directions are forgotten quickly while rare directions retain information longer, effectively providing implicit preconditioning. This mechanism can be dropped into any optimizer (e.g., SGD or Adam) with minimal computational overhead. Experiments show faster convergence on two training benchmarks without additional hyperparameter tuning.
Problem
Most optimizers use a single exponential moving average for gradient memory, which forgets information uniformly across all parameter directions, ignoring the natural key-value structure of per-sample gradients. This uniform forgetting can be inefficient when some directions are queried frequently while others are rare, leading to suboptimal tracking of non-stationary gradients.
Method
The approach interprets the optimizer's first-moment buffer as an online linear associative memory of key-value pairs derived from per-sample gradients, updating it via a delta rule that yields anisotropic forgetting. This results in directions queried often being forgotten quickly while rare directions retain information longer, effectively providing implicit input-side natural-gradient preconditioning without extra covariance inversion.
Results
The approach reaches AdamW's terminal validation loss in up to 31.35% fewer steps on FineWeb-Edu at 67M parameters and 19.28% fewer steps at 370M, and DeltaSGD shows similar gains on CIFAR-10 compared to SGD-momentum.
Contributions
The paper proposes an anisotropic momentum update that leverages key-value structure for per-direction memory scheduling and provides theoretical analysis linking it to implicit preconditioning. It also demonstrates zero-shot hyperparameter transfer across model widths and validates improvements on two training benchmarks.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction