arXiv:2611.04449cs.LGNov 2026

Manuscript Offprint

arXiv:2611.04449

Near-Zero Token Embeddings Silently Stall Training in Gated Sequence Models

Xin Liu, Boyuan Sun, Yuxin Wang, Haoran Song, Mingjian Zhao, Mengyu Liu

Abstract

Among 291 surveyed open-weight language model repositories (280 distinct embedding tables), 52.6% of untied gated and hybrid checkpoints (20 of 38) contain reachable input embeddings with norms below 10−610^{-6}, versus 0% of weight-tied models. These near-zero rows arise during pre-training when unseen rare or template tokens receive zero input gradients while AdamW weight decay shrinks untied embeddings. Transformers remain unaffected at non-initial positions or with a BOS token. In gated sequence models (Mamba, Gated DeltaNet, xLSTM), however, one near-zero token amplifies input-embedding gradients by over 30 (up to 35) orders of magnitude. Because current-token readout factors (SiLU gates or linear queries) vanish at zero input, historical state readout shrinks. Residual root-mean-square norms then stay below the square root of the RMSNorm floor across consecutive layers, so Pre-RMSNorm multiplies backward gradients by up to 103×10^3 \times per layer. Once any gradient entry exceeds 1.84×10191.84 \times 10^{19}, FP32 global-norm clipping in PyTorch, HuggingFace Trainer, and FSDP2 overflows to infinity and zeroes all current-batch gradients. On Nemotron-3-Nano-4B Telugu continual pretraining, this overflow discards batch updates on ≈20%\approx 20\% of steps while leaving triggered rows frozen. We propose two remedies with no step-time or peak-memory overhead. For released checkpoints, GroupClip decouples input-embedding clipping (via a 64-bit or rescaled norm) in three lines, eliminating update loss and healing triggered rows in one step. For pretraining, GateFloor (SiLU(z)+δ,δ∈[0.01,0.1]\text{SiLU}(z) + \delta, \delta \in [0.01, 0.1]) keeps the gate positive at zero input, cutting near-zero gradients by over 28 orders of magnitude up to 370M parameters with perplexity comparable to the baseline.

1. Introduction

To reduce long-context decoding cost, recent open-weight language models replace or interleave Softmax Attention with gated recurrences such as Mamba [Gu and Dao, 2024, Dao and Gu, 2024], Gated DeltaNet [Yang et al., 2025], and xLSTM [Beck et al., 2024], including Jamba [Lenz et al., 2025], Nemotron-H [Blakeman et al., 2025], Falcon-H1 [Zuo et al., 2025], and Kimi Linear [Kimi Team et al., 2025]. Practitioners routinely adapt these checkpoints to new languages [Penedo et al., 2025] or chat templates with AdamW [Loschilov and Hutter, 2019]. In the input embedding matrix, ordinary tokens have norms near 1, yet many

Figure

Figure 1: Near-zero input tokens trigger gradient blowup in gated models, not mid-sequence Transformers. Starting from normal embedding norm (≈1\approx 1), shrinking a single mid-sequence token (t>0t > 0) toward zero leaves standard Transformers (Llama-3.1-8B, Falcon3-7B) flat, whereas gated and hybrid models (xLSTM-7B, Nemotron-3-Nano-4B) blow up by over 30 orders of magnitude across the 1.84×10191.84 \times 10^{19} FP32 overflow threshold.

checkpoints contain rare script characters or chat tags with norms below 10−610^{-6} (down to 10−3610^{-36}), which we term near-zero tokens. During full-parameter training, encountering one near-zero token raises neither exceptions nor NaN losses. However, input-embedding gradients grow by over 30 (up to 35) orders of magnitude in gated models while staying near 10010^0-10210^2 in mid-sequence Transformers (Figure 1). These spikes overflow FP32 global-norm clipping and zero out all current-batch gradients, discarding batch signal on roughly 20% of steps in Nemotron-3-Nano-4B Telugu continual pretraining.

Why do released checkpoints contain near-zero embeddings? Prior studies observed under-trained rare tokens [Land and Bartolo, 2024] and mild early-layer gradient increases from embedding weight decay in Transformers [Takase et al., 2025, Team OLMo et al., 2025]. Every language model maintains an input table Ein\mathbf{E}_{\text{in}} and an output matrix Eout\mathbf{E}_{\text{out}}. When a token never appears in pretraining text, its input row receives zero gradient, whereas its output row receives non-zero softmax gradients every step. Weight-tied models (Eout=Ein\mathbf{E}_{\text{out}} = \mathbf{E}_{\text{in}}) keep unseen tokens at normal scale through these output gradients. Although OLMo 2 disables

Figure

Figure 2: Signal propagation for a near-zero input et\mathbf{e}_t at t>0t > 0. (a) A Transformer block pulls normal-scale context e<t\mathbf{e}_{<t} through K,VK,V and restores h1\mathbf{h}_1 at Layer 1. (b) Across KK stacked gated blocks, a zero-preserving current-token factor (such as a SiLU gate or linear readout query) zeroes out historical state st−1\mathbf{s}_{t-1} at ⊗\otimes, leaving hK\mathbf{h}_K near zero.

embedding weight decay [Team OLMo et al., 2025], standard AdamW recipes decay untied input matrices each step, shrinking unseen input rows toward zero while leaving output rows intact. Among 291 surveyed open repositories (280 distinct embedding tables), reachable near-zero tokens occur in 0% of weight-tied models, versus 52.6% of surveyed untied gated models (20 of 38; 35.3% of all untied models).

Why does a near-zero input amplify gradients in gated models (Figure 2)? Each Pre-RMSNorm block normalizes the token vector before adding context onto the residual stream. In gated recurrences, historical state readout is multiplied by a current-token function that vanishes at zero input, such as a SiLU gate or linear readout query (Figure 2b). A near-zero input drives this factor near zero and shrinks historical readout toward zero, keeping the residual vector near zero across consecutive blocks. Whenever root-mean-square magnitude falls below the square root of the RMSNorm floor (10−310^{-3} at a 10−610^{-6} floor), normalization divides by 10−310^{-3} and multiplies backward gradients by 103×10^3 \times per layer, compounding past 103010^{30} across depth (Figure 1). Transformers lack this multiplicative bottleneck: at non-initial positions (or with BOS), Layer 1 Attention averages normal-scale value vectors from prior tokens (Figure 2a), restoring scale in one layer.

How does a finite embedding spike erase batch updates without warning? Before each step, PyTorch, HuggingFace Trainer, and FSDP2 sum squared gradients in FP32 (max ≈3.4×1038\approx 3.4 \times 10^{38}) and divide by the global norm. Any gradient entry above 1.84×10191.84 \times 10^{19} overflows to +∞+\infty when squared. In IEEE-754 arithmetic, dividing finite gradients by +∞+\infty yields exact 0.0 without NaN. All current-batch gradients become

zero: AdamW steps only stale momentum and weight decay on the backbone, while the newly encountered near-zero row (whose momentum is zero) stays frozen and triggers repeated overflow on future batches. Frozen-embedding LoRA [Hu et al., 2022] and inference do not encounter this gradient-clipping failure mode, and on-policy RL rollouts sample zero near-zero tokens (though full-parameter RL updates still trigger on prompts with near-zero chat tags).

This diagnosis motivates two remedies. On released checkpoints, disabling weight decay cannot stop Step-1 blowup. GroupClip clips Ein\mathbf{E}_{\text{in}} (using a 64-bit or rescaled norm) separately from backbone weights in three lines of code, preserving full backbone updates and self-healing triggered rows without architectural edits or vocabulary scans. When pretraining from scratch, disabling embedding weight decay prevents unseen-token shrinkage [Team OLMo et al., 2025], yet SiLU blocks still amplify gradients under small-norm initialization [Peng et al., 2023] or vocabulary expansion. GateFloor adds a positive gate offset (SiLU(z)+δ\text{SiLU}(z) + \delta) so Layer 1 passes non-zero state at zero input, cutting near-zero gradients by over 28 orders of magnitude up to 370M parameters with validation perplexity comparable to the baseline (1–2 seeds).

Our contributions are threefold:

  • We audit 291 open repositories (280 distinct embedding tables), find reachable near-zero tokens in 52.6% of untied gated models, and trace how gated readout shrinkage and FP32 overflow erase batch gradients (Sections 2 to 4).

  • We propose GroupClip, a 3-line decoupled clipping rule that eliminates silent update loss on released checkpoints while self-healing near-zero rows (Section 5).

  • We propose GateFloor, a positive gate offset for pre-training that eliminates gradient amplification at zero input up to 370M parameters (Section 5).