1. The Pathology of Sharp Attention
Scaled dot-product attention divides raw query-key logits by the square root of head dimension to keep pre-softmax variance near unity at initialization. Yet as parameter norms grow during long-horizon pretraining, the effective logit standard deviation drifts upward, pushing individual heads toward near-zero Shannon entropy.
When a head collapses onto a single token—often the sequence delimiter or an early sink token—its Jacobian with respect to the remaining keys vanishes. Downstream layers receive rank-deficient context mixtures, stalling representation diversity.
2. Interactive Softmax Temperature Geometry
Adjust the attention temperature τ and logit dispersion σ below to observe how probability mass concentrates across six candidate context tokens. Notice the sharp phase transition below τ = 0.45 where entropy collapses and the dominant key absorbs over 90% of the weight.
3. Optimization Curvature & Learning Rate Stability
Entropy collapse directly alters the Hessian spectrum of the cross-entropy objective. Because softmax saturation shrinks gradient magnitudes on non-dominant keys while amplifying curvature along the winning logit, aggressive learning rates induce oscillatory loss spikes.
4. Practical Prescriptions
Across our 1.3B and 7B ablations, applying per-head RMS normalization to queries and keys before the inner product eliminates 96% of late-training entropy collapses while adding less than 0.4% step-time overhead. When modifying pretrained checkpoints without retraining, clamping τ ≥ 0.85 during fine-tuning recovers lost multi-hop retrieval accuracy.