LearnBenchStart learning →

AI Research Scientist · Scaling Laws & Stability

Sharpness-aware minimization (SAM) algorithm

Real lesson card · Page 1 of 3

Sharpness-aware minimization (SAM) algorithm

Perturb-then-descend
is like
Scouting worst footing
Before stepping onto uneven ground, you probe the worst nearby footing, then choose your step using what that probe revealed. SAM works similarly: it approximates the highest-loss point near the current weights, evaluates the gradient there, then applies that gradient update to the original weights. The perturbed weights are a temporary probe, not the point from which the optimizer takes its actual parameter step.

Recall check from the same lesson

Since SAM's ascent step already finds the highest-loss point near the current weights, the descent step could equivalently just run ordinary gradient descent from the original weights $w$ and still bias training toward flatter minima.

Sources

· Editorial policy

One sitting · 20–30 minutes

A focused session on your AI Research Scientist interview

LearnBench starts from what you already know — skip what you have, master what you’re missing.

Start now

More Scaling Laws & Stability questions