Part I · Chapter 3

The Blindfolded Hiker

How machines find the best setting by feeling which way the ground slopes.

In the last chapter, our stiff wooden rod could snap straight into balance in a single jump. That magic works when you only have two knobs to turn—tilt and height.

Real learning machines, though, often juggle dozens or thousands of knobs at once. There is no single shortcut that leaps straight to the best setting. Instead, the machine has to search for it—one careful step at a time.

Walking Downhill in the Mist

Imagine standing blindfolded on a misty mountain ridge. Moving left or right changes your machine's setting. The height of the ground at any spot tells you how wrong your current setting is: lofty peaks mean terrible guesses, while the lowest valley floor is the calmest, truest setting of all.

Because of the blindfold, you cannot see the whole mountain. All you can feel is the slope right under your boots. If the ground tilts downward to your right, you take a step to the right. If the ground feels steep, you take a confident stride; as the ground flattens out near the bottom, your steps naturally grow gentler until you come to a stop.

Core Idea

You don't need a map of the whole mountain to reach the valley. Just feel which way is downhill under your feet, take a step, and repeat.

There is one crucial choice you have to make before you start walking: how big should your stride size be? Take tiny shuffles and you will crawl forever. Take a reckless giant leap and you will sail right across the valley floor, landing even higher up the opposite wall!

Interactive Walk the Valley
Click anywhere on the curve to drop the hiker, then step or walk
Stride Size Steady pace
Steps taken: 0 · Ready on the slope
Mistake Height

Try sliding Stride Size all the way to Reckless leap and watch what happens: every step overshoots the valley so badly that the hiker ricochets higher and higher up the walls. Then slide it back to Steady pace and watch the hiker glide smoothly to rest.

The Two-Valley Trap

So far, our mountain was a single smooth bowl with one unmistakable bottom. Real-world landscapes are rarely so polite. They have ridges, bumps, and decoy valleys.

Imagine a landscape with a shallow dip on the left and a much deeper canyon on the right. If our blindfolded hiker starts on the left slope, they faithfully walk downhill until they reach the bottom of the shallow dip. Once there, the ground rises in both directions! Having no way to peek over the ridge, the hiker stops—convinced they found the lowest spot on Earth, never knowing a far better canyon lay just beyond the crest.

Interactive The Two-Valley Trap
Click anywhere on the ridge to drop the hiker and see which valley catches them
Drop the hiker anywhere on the mountain to begin
Mistake Height
Takeaway

Machines tune complicated settings like a blindfolded hiker walking downhill: feel the slope under your feet, pick a sensible stride size, and step toward lower ground. Because a blindfolded walker can get caught in a shallow decoy dip, where you start—or trying several starting spots—can make all the difference.

In the Wild
Curious what researchers and engineers call these ideas?
Feeling the Slope
Gradient
The steepness and direction of the ground directly beneath the current setting.
Walking Downhill Step-by-Step
Gradient Descent
Repeatedly nudging a machine's settings in the downhill direction to shrink mistakes.
Stride Size
Learning Rate
The knob controlling how big a step to take—too small crawls, too large bounces wildly.
Shallow Dip vs. Deep Canyon
Local Minimum vs. Global Minimum
A pretty-good resting trap compared to the single lowest, best setting on the entire landscape.