PBT能挽救“顿悟”,但不会加速训练
一项发表于 Reddit 的实验在模 97 加法任务上测试了 Population Based Training(PBT),使用小型 MLP,并让 20 个成员调整学习率和权重衰减。在没有任何固定参数能实现顿悟的“死区”中,快速 PBT 在 3 次运行中均于约 6,850 步成功,而固定设置和慢速 PBT 均未成功。不过在相同算力下,最佳固定网格单元以 317 ± 29 步达到 95% 验证准确率,PBT 则需要 2,667 ± 2,244 步。
实验结果表明,PBT 可以作为不利超参数区间的潜在补救手段,但并非通用加速器;单一任务和有限随机种子也限制了其结论的普适性。
I ran Population Based Training over learning rate and weight decay on grokking (modular addition mod 97, 35% train split, small MLP, 20 members, 20k steps, full batch).
Results
- vs a grid (equal compute, 3 seeds): the best fixed cell reached 95% val acc in 317 ± 29 steps; PBT took 2667 ± 2244. PBT was slower in every seed, but the grid’s corner already contained the answer.
- Dead-zone start (lr 1e-4 to 1e-3, wd 0.01 to 0.08, where no fixed setting groks): fixed 0/3, slow PBT 0/3, fast PBT (every 100 steps, ×0.5/×2) 3/3 at about 6850 steps.
- Its path: lr drops to the floor, then wd climbs to the ceiling, then lr rises. Val loss rewards low lr × wd early on, which is the wrong direction for grokking, then flips sign later.
- Ablations: a random donor still escapes, just later. With no selection, members grok and then the population loses it.
- 10 seeds: wide random search hits 95% at a median of 300 steps, vs 6650 for PBT from the dead zone. PBT also sometimes collapses into the lr-floor/wd-ceiling corner and never leaves.
- Replay: the winning lr/wd schedule with no PBT, on fresh inits: 55/60 reach 95%. Constant knobs at the schedule’s geometric mean: 0/60. The schedule carries the result, not the weight copying.
Takeaway: PBT is a rescue tool for a bad range, not a speed-up.
Caveats: one task, one model, one split. 3 to 10 seeds per test, with p-values mostly above 0.05. The replayed schedules are post-hoc winners. I haven’t tested a range with no grokking region at all, which is where PBT should beat random search.
Write-up with interactive figures: https://shauryasharma.tech/pbt-grokking.html Code and all results: https://github.com/Shaurya-34/grok-pbt
#Population Based Training#grokking#modular addition mod 97#multilayer perceptron