Skip to content

Near-zero token embeddings silently stall training in gated sequence modelsNear-Zero Token Embeddings Silently Stall Training in Gated Sequence Models

Hugging Face Daily Papers· arXiv:2611.04449· Xin Liu, Boyuan Sun, Yuxin Wang, Haoran Song, Mingjian Zhao, Mengyu Liu·Indexed by this site · 20 days ago· Originally publishedSelected AI updatesSelectedAttention39

Translation in progress — untranslated text is omitted.

Quick read

Analysis and theory

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe authors audited 291 open-weight model repositories (280 distinct embedding tables) and found that 52.6% of untied gated and hybrid checkpoints (20 of 38) contain reachable near-zero input embedding rows, versus 0% for weight-tied models. These rows stem from rare or template token inputs that did not appear in pretraining, whose input gradients are zero, and AdamW weight decay shrinks untied embedding rows below 10^-6. In gated models such as Mamba, Gated DeltaNet, and xLSTM, a single near-zero token amplifies the input embedding gradient by about 30 orders of magnitude, and Pre-RMSNorm amplifies it layer by layer, causing the FP32 global norm clipping to overflow to inf and the current batch's gradients to be zeroed. In Telugu continued pretraining of Nemotron-3-Nano-4B, about 20% of steps lost batch updates.

Questions
In the untied input embeddings of open-source gated sequence models (Mamba, xLSTM, etc.), unseen rare tokens are compressed to near zero by AdamW weight decay; the authors state that such tokens trigger gradient explosions during fine-tuning and silently zero out the entire batch gradient, and are mostly concentrated in non-English languages and chat templates.
Methods
The authors audited the embedding matrices of 291 HuggingFace repositories, present a two-stage gradient amplification law (Proposition 1), and verify the mechanism with causal gating patches; they propose two fixes: GroupClip (separate 64-bit norm clipping for input embeddings, three lines of code) and GateFloor (adding a positive offset to the gate, SiLU(z)+δ).
Experiments and results
52.6% of untied gated checkpoints contain reachable near-zero tokens; in Nemotron-3-Nano-4B Telugu continual pretraining, 19.8% of steps had FP32 overflow that zeroed the gradients, GroupClip reduced stalled steps to 0 and PPL matched Oracle Mask (13.04); GateFloor at 370M scale reduced near-zero gradients by more than 28 orders of magnitude, with PPL comparable to the baseline.
Limitations and future work
The authors note that the GateFloor pretraining-from-scratch experiments only reach 370M parameters, with 1–2 seeds per configuration; the audit and gradient probes cover models up to 48B, and continual pretraining covers 1.5B–4B models.
Why it was selectedThe author audited 291 open-weight repositories, traced the chain by which near-zero embeddings in gated models trigger gradient overflow and silently drop batch updates, and provides two fixes that can be applied directly.

The author audited 291 open-weight repositories, traced the chain by which near-zero embeddings in gated models trigger gradient overflow and silently drop batch updates, and provides two fixes that can be applied directly.

Read originalhuggingface.co