← Latest papers
🤖 machine learning

Understanding Dynamics of Adam in Zero-Sum Games: An ODE Approach

This paper establishes a continuous-time ODE framework to analyze the Adam-DA algorithm in zero-sum games, revealing that its momentum parameters function oppositely to their roles in minimization problems and validating these theoretical insights through GAN experiments.

Original authors: Yi Feng, Weiming Ou, Xiao Wang

Published 2026-05-20
📖 5 min read🧠 Deep dive

Original authors: Yi Feng, Weiming Ou, Xiao Wang

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 two AI agents to play a game of chess against each other. One player (the "Generator") wants to create fake chess positions that look real, while the other player (the "Discriminator") wants to spot the fakes. This is a zero-sum game: for one to win, the other must lose.

To teach them, we use a smart coach called Adam. In regular training (where an AI tries to minimize a single error, like predicting the weather), Adam is a superstar. It uses "momentum" to keep rolling forward, ignoring small bumps and speeding up down hills.

However, when this same coach tries to train two players fighting each other, things get weird. The paper you provided, "Understanding Dynamics of Adam in Zero-Sum Games," discovers that Adam behaves in the exact opposite way in these games compared to regular training.

Here is the breakdown of their findings using simple analogies:

1. The Problem: The Coach is Confused

In regular training, the coach uses momentum to help the AI glide over small bumps and reach the bottom of a valley quickly. The paper found that in a zero-sum game (like GANs), if the coach uses the same "gliding" momentum, the two players start spinning in circles or running away from each other instead of learning.

The authors realized that to understand why this happens, they couldn't just look at the step-by-step moves. Instead, they built a continuous-time model (an ODE).

  • The Analogy: Imagine watching a movie of the players moving. The discrete steps are like individual frames of the movie. The authors created a smooth, high-definition video (the ODE) that perfectly predicts the movie's motion. This smooth video revealed the hidden rules of the game that the individual frames were hiding.

2. Finding #1: The "Momentum" Switch is Flipped

The paper focuses on two settings in the Adam coach:

  • First-order momentum (β\beta): How much the coach remembers the direction of the last move.
  • Second-order momentum (ρ\rho): How much the coach remembers the speed of the last move.

In Regular Training (Minimization):

  • To go fast and stable, you want high momentum. It's like a heavy truck; once it's moving, it's hard to stop, which helps it power through rough terrain.

In Zero-Sum Games (The Paper's Discovery):

  • The authors found that low momentum is actually better.
  • The Analogy: Imagine two dancers trying to synchronize. If they both have "heavy truck" momentum, they will overshoot each other, spin out of control, and crash. But if they move with light, nimble steps (low momentum), they can adjust quickly to each other's moves and find a stable rhythm.
  • The Result: The paper proves mathematically that in these games, using a smaller first-order momentum allows the players to converge (learn) over a much wider range of step sizes. If you use the "standard" high momentum, they often diverge (fail).

3. Finding #2: Finding the "Flat" Ground

In machine learning, we often want the AI to find a "flat" spot in the landscape rather than a sharp "spike."

  • Sharp Spike: The AI learns the training data perfectly but fails on new data (overfitting).
  • Flat Valley: The AI learns general patterns and works well on new data.

In Regular Training:

  • To find these flat valleys, you usually need high momentum and low speed-momentum.

In Zero-Sum Games:

  • The paper found the opposite is true. To find the "flat" regions where the game is stable, you need low first-order momentum and high second-order momentum.
  • The Analogy: Think of the loss landscape as a bumpy field. In a regular game, a heavy truck (high momentum) helps you roll over the bumps to find the flat spot. In a zero-sum game, the "truck" is too heavy and gets stuck in the deep pits. Instead, you need a lightweight, bouncy ball (low momentum) that can bounce around the edges and settle into the wide, flat areas naturally.

4. The "Bilinear" Trap

The paper also looked at a specific type of game called a "bilinear game" (a very simple, linear version of the conflict).

  • The Finding: No matter what settings you choose for the Adam coach, it always fails (diverges) in these specific games.
  • The Analogy: It's like trying to balance a pencil on its tip. No matter how gently you try to steady it, the physics of the situation makes it impossible to stay balanced. This is a fundamental difference from regular training, where Adam can almost always find a solution.

5. Proof in the Pudding (Experiments)

The authors didn't just do math; they tested this on real AI image generators (GANs) using datasets like CIFAR-10 and STL-10.

  • The Experiment: They trained AI models with different momentum settings.
  • The Result: The models using the "reversed" settings (low first-order momentum, high second-order) produced:
    1. Smaller gradient norms (meaning they were exploring those "flatter," more stable regions).
    2. Better image quality (higher Inception Scores).
    3. More stable training.

Summary

The paper tells us that what works for a solo runner (minimization) does not work for a tug-of-war (zero-sum games).

  • Solo Runner: Needs a heavy, fast-moving truck (High Momentum) to get to the finish line.
  • Tug-of-War: Needs two light, agile dancers (Low Momentum) to stay in sync.

The authors used a mathematical "smooth video" (ODE) to prove that the standard settings for Adam are actually hurting performance in games like GANs, and that flipping the momentum settings fixes the problem. This explains why experienced practitioners have been using "negative momentum" (a form of low momentum) in GANs for years, even though the theory didn't explain why it worked until now.

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 →