Minimax and Saddle-Point Optimization
Minimax training pits two players against each other, so the goal is an equilibrium where neither side can improve alone, not a single minimum.
Why Does This Exist?
GANs, adversarial training, and robust optimization all minimize over one player while maximizing over another, written . The solution is not a valley but a seat shaped equilibrium, lowest along and highest along . Standard descent assumes a single downhill and walks in circles around such points instead of settling.
Training GANs made the failure famous: generator and discriminator chase each other in persistent oscillations while both losses look flat. This page is about the dynamics, which algorithm settles and why the naive one does not. It is distinct from three neighbours that are easy to conflate. The minimax theorem proves the game value exists, zero-sum games define the pure conflict setting, and Nash equilibrium defines stability for general games. Here the value is assumed and the question is how iterates behave. The OT flavoured GAN losses live separately in optimal transport in generative modeling.
The one idea you need first
A Nash point satisfies : neither player gains by moving alone. In plain words, cannot go lower holding fixed and cannot go higher holding fixed. The descent mechanics underneath are in gradient descent variants.
Think of It Like This
Two players on a seesaw with a brake
Two kids share a seesaw and each wants their own side down. When both lean at once, the board rocks back and forth forever. Nobody wins and the motion never settles.
The fix is taking turns with a lookahead: lean slightly, feel where the board goes, then commit to the corrected lean. That preview step drains the rocking energy instead of feeding it, which is exactly what extragradient does with gradients.
Where the analogy stops: real minimax landscapes curve in millions of directions, so the rocking hides inside high dimensional rotations rather than one visible board.
How It Actually Works
Simultaneous gradient descent ascent, called GDA, runs together with . In plain words, steps downhill on its own gradient while steps uphill on its own gradient, both at once. On bilinear objectives this rotation dominates: each step turns the iterate around the equilibrium and pushes it slightly outward, so the distance grows instead of shrinking.
Extragradient fixes it with a preview. Evaluate the gradients at a lookahead point , then apply those previewed gradients at the current point. Alternatives with the same spirit are optimistic updates, which reuse the past gradient as the preview, and iterate averaging, which damps cycles into convergence for convex concave cases.
Worked example
Take the bilinear objective from with , the same numbers drawn in the diagram above.
GDA first. The gradients are and . The update gives and . Radius squared moves from to . It grew, so one naive step already moved away from the equilibrium at the origin.
Extragradient next. The lookahead is that same point, where the gradients are and . Apply them at the original point: and . Radius squared is , about and below . It shrank. One preview flipped divergence into contraction, which is the whole method in one pair of numbers.
Watch Out For
Tuning the generator and discriminator with one learning rate
The two players usually need different speeds. Equal rates let the faster player orbit while the slower one crawls, and the loss curves look healthy while the samples stay bad.
The symptom is a flat minimax loss beside non-improving sample quality. Use two time scales, commonly with the discriminator faster, and monitor sample quality rather than the raw objective values.
Reading the minimax loss as a progress bar
At equilibrium the loss value means little: both players can be strong while the number sits still. Teams stop early because the loss flattened, or keep training because it wiggles.
The symptom is decisions made from the objective curve alone. Track independent metrics instead, such as FID, robust accuracy, or the duality gap, and never ship on the raw minimax number.
The Quick Version
- Minimax seeks an equilibrium, lowest in and highest in , not a single minimum.
- This page covers optimization dynamics, while the minimax theorem covers value existence and zero-sum games cover the setting.
- Simultaneous gradient descent ascent can orbit or diverge even on bilinear problems, growing to here.
- Extragradient previews before committing and restores contraction, shrinking to about here.
- Optimistic updates and averaging are cheaper stabilizers for convex concave cases.
- Tune each player separately and judge progress by outside metrics, not the loss number.