Trick: Adam with betas=0 and lr=ε=10,000 acts as an exact gradient observer

anpaure · x · 2026-10-29

Origin of anpaure's optimizer forensics thread: run Adam and Dimuon from identical weights on the same batch, set Adam's betas to 0 and lr = ε = 10,000 — its update becomes ≈ −G, and inverting Adam's formula recovers G exactly. This enables a general measurement scheme: use an "Adam gradient observer" to recover G from ΔW, predict the target optimizer's update, and repeat with fresh observers to quantify disagreement — revealing the hidden transformation any optimizer applies to gradients.

Related event: Developer reverse-engineers Dimuon optimizer, open-sources PyTorch implementation(5 posts)→

Original post →

More from Research

Research channel →