Adaptive Preconditioners Trigger Loss Spikes in Adam
Abstract
Lay Summary
When training deep neural networks, the goal is to smoothly reduce the model's "loss" or error. However, a widely used training tool called the Adam optimizer frequently suffers from "loss spikes"—sudden, violent increases in error that can severely disrupt the learning process. Previously, some scientists believed these spikes occurred simply because the network wandered into a sharply curved, unstable area of the loss landscape. Our research proves otherwise. We discovered a hidden mechanical flaw inside the Adam optimizer itself. Adam uses an internal memory mechanism to automatically adjust its learning pace. We found that under certain conditions, this memory stops paying attention to the actual steepness of the problem and begins to shrink on its own. Because of this "blind spot," Adam gets tricked into taking dangerously large steps. This built-up energy eventually launches the network out of its safe zone, resulting in a massive spike in loss. In this paper, we map out the exact five-stage life cycle of these spikes. We also introduce a new early-warning metric to predict them before they happen. Importantly, we demonstrate that this internal flaw isn't just a theoretical curiosity—it actively triggers instabilities from simple toy models to the massive neural networks powering today's advanced language models.