← Latest papers
🤖 machine learning

Scaling the Memory of Balanced Adam

This paper proposes that the momentum parameter β\beta in balanced Adam should be treated as a memory-scale variable rather than a fixed constant, introducing a refresh rule (Rβ1000R_\beta \approx 1000) that significantly improves training robustness across 11 vision and language experiments by aligning the optimizer's statistical memory horizon with the effective learning horizon.

Original authors: Alberto Fernández-Hernández, Cristian Pérez-Corral, Jose I. Mestre, Manuel F. Dolz, Enrique S. Quintana-Ortí

Published 2026-05-12
📖 4 min read☕ Coffee break read

Original authors: Alberto Fernández-Hernández, Cristian Pérez-Corral, Jose I. Mestre, Manuel F. Dolz, Enrique S. Quintana-Ortí

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Picture: Tuning the "Memory" of a Learning Robot

Imagine you are teaching a robot to recognize cats, write poems, or solve math problems. To do this, the robot uses a tool called Adam (an "optimizer"). Think of Adam as the robot's internal coach. Every time the robot makes a mistake, the coach looks at the history of past mistakes to decide how to adjust the robot's brain for the next try.

For a long time, this coach had two different "memory settings" (called β1\beta_1 and β2\beta_2). One setting remembered the direction of the mistakes, and the other remembered the size of the mistakes.

The Discovery:
Recent research (including this paper) found that you don't actually need two different settings. If you set them to be exactly the same (β1=β2\beta_1 = \beta_2), the robot learns just as well, but the system becomes much simpler. Now, the coach only has one memory knob to turn.

The Problem:
The big question is: What number should we turn that knob to?
Most people just pick a standard number (like 0.9) and stick with it, no matter what. The authors of this paper argue that this is like using the same pair of shoes for a 5-mile walk and a 100-mile marathon. It doesn't make sense because the "distance" of the training changes.

The Core Idea: The "Refresh Count"

The authors propose a new way to think about that memory knob. Instead of thinking of it as a fixed number, they say it should be thought of as a memory horizon.

  • The Analogy: Imagine the robot is reading a book to learn a language.
    • If the robot has a short memory, it only remembers the last few sentences.
    • If the robot has a long memory, it remembers the whole chapter.

The paper introduces a concept called the Refresh Count (RβR_\beta). This answers the question: "How many times does the robot completely refresh its memory of the past during the entire training session?"

The authors found that the robot learns best when this "refresh count" stays roughly the same, regardless of how long the training session is.

  • Short Training Session: The robot needs a short memory (a lower number) so it can refresh its memory about 1,000 times.
  • Long Training Session: The robot needs a long memory (a higher number) so it still refreshes its memory about 1,000 times.

The Solution: A Simple Rule

The paper tested this idea on 11 different tasks, ranging from teaching a robot to recognize images (like cats and cars) to teaching it to write text (like LLMs).

They discovered a simple "Golden Rule":
Set the memory knob so that the robot refreshes its memory exactly 1,000 times during the useful part of training.

  • If the training is short (e.g., 6,000 steps), the rule picks a lower number (like 0.82).
  • If the training is long (e.g., 40,000 steps), the rule picks a higher number (like 0.97).

Why Does This Matter? (The Results)

The authors compared their "Refresh Rule" against the standard "Fixed Rule" (where everyone just uses 0.944).

  1. Average Performance: Both methods were very close in terms of average success. The standard fixed number is actually quite good.
  2. The "Safety Net" (Robustness): This is where the new rule shines.
    • Imagine you are driving a car. The "Fixed Rule" is like driving at a speed that works well on most roads, but sometimes you might hit a pothole and crash.
    • The "Refresh Rule" is like a smart suspension system. It adjusts to the road length.
    • The Result: The new rule reduced the "worst-case" failures by 33%. In other words, it made the training much more reliable. It ensured that every single experiment (all 11 of them) performed almost perfectly, whereas the old method had a few experiments that struggled significantly.

The Takeaway

The paper argues that we shouldn't treat the memory setting in AI training as a static, unchangeable constant. Instead, we should treat it as a scale.

Just as you wouldn't use the same map scale for a city and for a whole country, you shouldn't use the same memory setting for a short training run and a long one. By adjusting the memory based on how long the training lasts (keeping the "refresh count" at 1,000), we make the AI training process more robust and less likely to fail in unexpected ways.

In short: Don't just pick a number and hope for the best. Adjust the robot's memory based on how long the journey is, and you'll get a much smoother ride.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →