Metraipolis › archive › dc_b18b9d3091a0

Z-Loss Backward Geometry in Dense Output Heads and Sparse Routers — arXiv:2609.16179

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.16179
License (as archived)
CC0-1.0
Archived
2026-10-15T19:23:23.028Z
SHA-256 of the archived text
26d6b6e123b9e9fa133b42ef587dda6a520202bf59a636fd478138ca37f9f720
Stable URL of this page
https://metraipolis.com/documento/dc_b18b9d3091a0

How to cite

Z-Loss Backward Geometry in Dense Output Heads and Sparse Routers — arXiv:2609.16179 — arXiv (en), https://arxiv.org/abs/2609.16179 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b18b9d3091a0 (Metraipolis archive dc_b18b9d3091a0, sha256 26d6b6e123b9e9fa133b42ef587dda6a520202bf59a636fd478138ca37f9f720)
BibTeX
@misc{dcb18b9d3091a0,
  title = {Z-Loss Backward Geometry in Dense Output Heads and Sparse Routers — arXiv:2609.16179},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.16179},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b18b9d3091a0; sha256 26d6b6e123b9e9fa133b42ef587dda6a520202bf59a636fd478138ca37f9f720},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.16179. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Z-loss has been widely applied to the logits of language-model output heads and sparse mixture-of-experts routers. Z-loss constrains the softmax log-normalizers of these output heads and routers, thereby limiting large-logit excursions, reducing finite-precision roundoff exposure, and avoiding training-loss divergence. These use cases arise in modern Transformer settings where large-vocabulary softmax heads, top-$k$ routing, fused losses, and mixed-precision optimizers interact. Z-loss has typically been understood only as a scalar penalty on the log-normalizer. This paper instead analyzes Z-loss from a backward-pass perspective, focusing on the gradients produced by the Z-loss penalty. The logit-space gradient, which we call the backward source, is injected at the logit boundary of the Z-loss branch of backpropagation; consequently, the backward source's effect depends on the architecture and implementation through which the gradient is transported. We develop a backward-transport view for Z-loss that separates the source's scalar amplitude and softmax shape from the transport factors. These factors include common-shift coordinates, tied-embedding pathways, output-to-hidden gain, fused-loss source consistency, optimizer-facing updates, and top-$k$ router reduction scale. These diagnostics show that nearly identical forward Z-loss values can coexist with distinct logit-space Z-loss gradients and, after architectural and optimizer transport, distinct parameter updates. The transport diagnostics also explain why raw-logit Z-loss can reduce scalar tails without changing output-to-hidden gain and why active-route reductions alter the effective router coefficient. Across evaluations of models in the GPT-2 and Pythia families on WikiText-103 and FineWeb-Edu, architecture-aware variants reduce backward-geometry tails while maintaining comparable validation perplexity in low-coefficient regimes.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-16 in cs.CL).
Categorie arXiv: Machine Learning (cs.LG) ; Computation and Language (cs.CL).
Pagina del lavoro: https://arxiv.org/abs/2609.16179 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-15T18:32:32.882Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-16?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).