Metraipolis › archive › dc_1e65f42e3049

Pretraining Transformers with Quantized Softmax in Attention — arXiv:2609.33591

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.33591
License (as archived)
CC0-1.0
Archived
2026-10-07T22:37:36.237Z
SHA-256 of the archived text
6bd2758fc1c32b66a6de7aeea7431a87865f16fcf10771636796864c82bf99ec
Stable URL of this page
https://metraipolis.com/documento/dc_1e65f42e3049

How to cite

Pretraining Transformers with Quantized Softmax in Attention — arXiv:2609.33591 — arXiv (en), https://arxiv.org/abs/2609.33591 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1e65f42e3049 (Metraipolis archive dc_1e65f42e3049, sha256 6bd2758fc1c32b66a6de7aeea7431a87865f16fcf10771636796864c82bf99ec)
BibTeX
@misc{dc1e65f42e3049,
  title = {Pretraining Transformers with Quantized Softmax in Attention — arXiv:2609.33591},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.33591},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1e65f42e3049; sha256 6bd2758fc1c32b66a6de7aeea7431a87865f16fcf10771636796864c82bf99ec},
  year = {2026}
}

Archived text

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

Low-precision Transformer systems increasingly quantize attention matrix multiplications, while softmax often remains at higher precision. During pretraining, an approximate softmax changes the gradients that train the model as well as its forward computation. We study this interaction with K-interval attention, which approximates the exponential using K+1 grid values. We vary per-row grid calibration, interpolation versus hard rounding, and the placement of a straight-through surrogate relative to normalization. We derive the corresponding backward rules, including calibration derivatives, and compare these choices in pretraining experiments matched on model, data, and optimizer. Detaching the row extrema leaves the forward computation unchanged but produces a delayed increase in validation loss. With hard rounding at K=4, min-max calibration and a pre-normalization surrogate incur a large loss gap; changing either choice substantially reduces it. At 124M parameters and 2.5B training tokens, fixed-window calibration with a post-normalization surrogate yields a validation loss gap of +0.019 nats relative to softmax at K=4, and with a pre-normalization surrogate yields +0.004 nats at K=16.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-29 in cs.LG).
Categorie arXiv: Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2609.33591 — 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-07T22:14:27.994Z dalla pagina https://arxiv.org/catchup/cs.LG/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).