potentialpaper

Understanding and Mitigating AdamW Loss Spikes

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:50 UTC · 5dfbb5ca79a0 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "pAjrfibDB9"
- }
- ],
- "title": "Understanding and Mitigating AdamW Loss Spikes",
- "authors": [],
- "abstract": "Loss spikes can disrupt AdamW training despite gradient clipping. Mismatched first- and second-moment time scales can let momentum\noutpace its normalization, amplifying the adaptive update ($u_t=m_t/(\\sqrt{v_t}+\\epsilon)$). We study how its magnitude and allocation affect immediate loss. Across three GPT-2 355M runs, at the unit threshol $|u_{t,i}|=|m_{t,i}/(\\sqrt{v_{t,i}}+\\epsilon)|>1$, the median fraction of coordinates newly crossing the threshold is 0.571\\% at 19 captured loss-spike onset states versus 0.0033\\% at nine ordinary states (over $170\\times$). Globally shrinking the adaptive update lowers immediate loss at all 19 states, while selectively limiting new tail entrants improves further at equal norm. Tensor-relative history helps allocate attenuation, and replay favors sustained over onset-only control. These findings motivate \\method{}, a lightweight yet effective combination of coordinate clipping and a tensor-relative growth constraint, with negligible optimizer-state overhead and no extra forward or backward passes. Across three GPT-2 774M runs per configuration, it reduces post-warmup spike episodes from 17 to zero and improves mean validation loss from 2.916 to 2.856. Half-rate and global norm-matched controls retain spikes despite similar validation quality. Dual control also achieves zero post-warmup spikes in the tested larger NanoGPT and Qwen3 models,\nsupporting transfer across architectures.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "d197bc65-740d-45f2-8dda-b857f87e8919"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Understanding and Mitigating AdamW Loss Spikes",
+ "authors": [],
+ "abstract": "Loss spikes can disrupt AdamW training despite gradient clipping. Mismatched first- and second-moment time scales can let momentum\noutpace its normalization, amplifying the adaptive update ($u_t=m_t/(\\sqrt{v_t}+\\epsilon)$). We study how its magnitude and allocation affect immediate loss. Across three GPT-2 355M runs, at the unit threshol $|u_{t,i}|=|m_{t,i}/(\\sqrt{v_{t,i}}+\\epsilon)|>1$, the median fraction of coordinates newly crossing the threshold is 0.571\\% at 19 captured loss-spike onset states versus 0.0033\\% at nine ordinary states (over $170\\times$). Globally shrinking the adaptive update lowers immediate loss at all 19 states, while selectively limiting new tail entrants improves further at equal norm. Tensor-relative history helps allocate attenuation, and replay favors sustained over onset-only control. These findings motivate \\method{}, a lightweight yet effective combination of coordinate clipping and a tensor-relative growth constraint, with negligible optimizer-state overhead and no extra forward or backward passes. Across three GPT-2 774M runs per configuration, it reduces post-warmup spike episodes from 17 to zero and improves mean validation loss from 2.916 to 2.856. Half-rate and global norm-matched controls retain spikes despite similar validation quality. Dual control also achieves zero post-warmup spikes in the tested larger NanoGPT and Qwen3 models,\nsupporting transfer across architectures.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}