mlsanityData to 24 Nov 2026

Attention Temperature Confounds Zero-Shot Context Extension

arXiv 2611.31113 ↗Submitted 23 Nov 2026Announced 24 Nov 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

A training-time attention change is usually judged for zero-shot context extension against a dense baseline beyond the training length at the default temperature, τ = 1. The outcome depends on how miscalibrated the baseline is there: the share of perplexity it recovers when its logits are sharpened by one scalar. Under the standard recipe (fp32 master weights), an 8k-trained baseline is 8-15% miscalibrated at 30k in three seed-paired 365M twins; in one of them this makes the block-sparse-trained twin look 7% better, which calibration removes. In pure-bf16 training without master weights the miscalibration is several times larger: an AdamW step (β2 = 0.95) on a gain initialised at 1.0 is below half the bf16 spacing at peak learning rates under 1.7×10-3, so gains never move (22 checkpoints), the baseline is 37-58% miscalibrated, and block-sparse pretraining, attention dropout and ALiBi look 6-35% better. Calibrating one temperature per model and length removes all three advantages, leaves ALiBi 5% behind RoPE and keeps part of the gain of a positive control, NTK-aware scaling. Unfreezing the gains reverses the block-sparse advantage at 365M and removes 71-89% of it at 1.2B. We recommend reporting extension results at calibrated temperatures and checking that normalisation gains moved.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 36 of its 45 references that are in the map. Submitted 23 Nov 2026, announced 24 Nov 2026.

Builds on

36 of 45 references.

References · 36

  1. 2014Adam: A Method for Stochastic Optimizationcited by 38,596
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,787
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,132
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
  5. 2020Longformer: The Long-Document Transformercited by 3,606
  6. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
  7. 2020Reformer: The Efficient Transformercited by 1,718
  8. 2019Generating Long Sequences with Sparse Transformerscited by 1,641
  9. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,356
  10. 2017Mixed Precision Trainingcited by 1,234
  11. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,166
  12. 2016Deep Networks with Stochastic Depthcited by 1,005
24 more
  1. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 798
  2. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 794
  3. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 581
  4. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 491
  5. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 469
  6. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 461
  7. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 420
  8. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 348
  9. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 346
  10. 2020Query-Key Normalization for Transformerscited by 322
  11. 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 206
  12. 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 206
  13. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 199
  14. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 149
  15. 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 142
  16. 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 122
  17. 2024What is Wrong with Perplexity for Long-context Language Modeling?cited by 81
  18. 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 60
  19. 2025Scalable-Softmax Is Superior for Attentioncited by 58
  20. 2024Length Generalization of Causal Transformers without Position Encodingcited by 55
  21. 2025InfLLM-V2: Dense-Sparse Switchable Attention for Seamless Short-to-Long Adaptationcited by 40
  22. 2025The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Textcited by 38
  23. 2025The Sparse Frontier: Sparse Attention Trade-offs in Transformer LLMscited by 34
  24. 2020Revisiting BFloat16 Trainingcited by 24

Built on by

Not cited yet.