A ball sits trapped in a "stuck" strategy, jostled by noise. Below a critical amount of randomness, it's trapped behind an energy barrier for a very long time — then, purely by chance, it escapes and finds the better strategy. This is grokking: noise-driven escape from a metastable state, governed by the Arrhenius law escape_time ∼ exp(ΔV / T).
Modeled after: "Noise-Driven Escape from Metastable Phases explains Grokking in Deep Neural Networks" (arXiv:2606.17120)
Every simulated trial (hero ball + fast background trials) at the current temperature is binned here (log-scale). The rightmost gold bar = trials that never escaped inside the time budget — "still stuck".
Sweeps several temperatures at the current barrier height, runs many trials each, and plots mean escape time (log scale) against inverse temperature. A straight line here is the Arrhenius law: ln(escape_time) ≈ ΔV · (1/T) + const. Dashed line = analytic Kramers prediction for this potential.