← Latest papers
📊 statistics

Why Adam Works Better with β1=β2\beta_1 = \beta_2: The Missing Gradient Scale Invariance Principle

This paper reveals that setting β1=β2\beta_1 = \beta_2 in the Adam optimizer is optimal because it uniquely ensures first-order gradient scale invariance, a structural property that explains the empirically observed improvements in training stability and performance across diverse tasks.

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

Imagine you are trying to teach a robot to walk. You give it instructions based on how it stumbled in the last few steps. This is how Adam, the most popular "optimizer" (a tool that helps AI learn), works. It uses two "memory knobs" to decide how much to listen to the past versus the present.

For nearly a decade, experts have turned these knobs to specific settings: 0.9 for the first memory and 0.999 for the second. But recently, a curious pattern emerged: when researchers set both knobs to the same number (e.g., both to 0.99), the robot walked smoother and learned faster. No one knew why this magic trick worked.

This paper solves the mystery. Here is the explanation in plain English, using some analogies.

The Problem: The "Volume Knob" vs. The "Direction"

Imagine you are driving a car down a winding road.

  • The Gradient is the road itself. Sometimes the road is steep (big gradient), sometimes it's flat (small gradient).
  • The Update is how you turn the steering wheel.

Ideally, you only care about which way to turn (the direction). You don't want the steepness of the hill to make you spin the wheel wildly. If the road gets suddenly steeper, you shouldn't suddenly jerk the wheel 90 degrees; you should just keep steering in the same direction.

The authors discovered that standard Adam (with different knobs) is too sensitive to the "steepness" of the road. If the gradient gets bigger, Adam overreacts. But when the two knobs are set to the same value, Adam stops caring about the "volume" (the size) of the error and focuses purely on the "direction."

The Secret Sauce: "Gradient Scale Invariance"

The paper calls this property Gradient Scale Invariance.

Think of it like listening to music.

  • Standard Adam (Different Knobs): If you turn up the volume on the music (make the gradient bigger), the equalizer (the optimizer) freaks out and changes the bass and treble settings wildly. The song sounds distorted.
  • Balanced Adam (Same Knobs): If you turn up the volume, the equalizer stays calm. It realizes, "Oh, the song is just louder, but the melody is the same." It adjusts the settings perfectly to keep the music sounding smooth, regardless of the volume.

The paper proves mathematically that only when the two memory knobs are equal does Adam achieve this "volume-proof" stability. When they are different, the math creates a "lag" that makes the robot stumble whenever the gradient size changes.

The "Smoothness" Test

To prove this, the researchers didn't just look at the final score (how well the AI did). They watched the robot's movements step-by-step.

They measured the oscillation (how much the robot's steps wobbled back and forth).

  • When the knobs were different: The robot's steps were jittery. The size of the step would jump up and down wildly, like a car with a shaky suspension.
  • When the knobs were the same: The steps became incredibly smooth. The robot moved with a steady, rhythmic pace.

They tested this on many different "robots" (AI models) doing different tasks:

  • Vision: Recognizing images (like cats vs. dogs).
  • Language: Writing text or answering questions.

In every single case, the "Balanced" setting (where β1=β2\beta_1 = \beta_2) resulted in the smoothest, most stable training.

The Big Takeaway

For years, people thought the two knobs in Adam had to be different to work well. This paper shows that the "secret sauce" for stability was actually hiding in plain sight: make them equal.

When you set them equal, you unlock a hidden superpower: the optimizer becomes immune to the chaotic ups and downs of the gradient's size. It stops reacting to the "noise" of how big the error is and starts focusing purely on the "signal" of which way to go.

In short: If you want your AI training to be smoother and more stable, stop guessing the settings. Just set both momentum knobs to the same number, and let the math do the rest.

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 →