GRADIENT GOLF

Place the ball. Set the learning rate. Reach the minimum.
Click to place the ball
Low (minimum) Medium High
0.100
Copied to clipboard!

More Play & Learn Games

Neuronle
A daily AI word puzzle. Guess the ML term in 6 tries.
Classify This!
See the scatter plot, spot the pattern, classify the mystery point.
Tensor Tiles
Apply matrix operations in the right order to reach the target.

What is Gradient Golf?

Gradient Golf is a free interactive game that teaches gradient descent — the most important optimization algorithm in machine learning. You see a colorful loss landscape (dark blue = low, red = high) and your goal is to guide a ball to the deepest valley.

Each level introduces a new optimization challenge: ill-conditioned valleys, saddle points, local minima, noisy surfaces, and more. Choose your starting position and learning rate carefully — a rate too high will overshoot, too low will stall. Later levels unlock momentum, showing how it helps escape flat regions and narrow ravines.

What you will learn

Part of the Kudos AI Play & Learn collection. Read our Complete Guide to Gradient Descent for the full theory.

How to Play

Your goal is to guide a ball to the global minimum (darkest blue region) of each loss landscape.

  1. Click the landscape to place your ball at a starting position.
  2. Adjust the learning rate using the slider — too high and the ball will overshoot, too low and it will stall.
  3. Press Descend! and watch gradient descent in action.

Scoring


Color Legend

The white arrow shows the negative gradient direction — the way the ball will roll.