跳到正文
arXiv cs.AI· Ruben Navasardyan·· 3 小时前AI 评分40

注意力温度校准混淆零样本上下文扩展评测:arXiv 论文分析训练基线失准问题

Attention Temperature Confounds Zero-Shot Context Extension

AI 导读

一项 arXiv 研究指出,零样本上下文扩展的评测结果受基线模型注意力温度失准的干扰:8k 训练的基线在 30k 处失准 8-15%,fp32 标准配方下块稀疏训练 7% 的表观优势在校准后消失。

正文 · 原文

View PDF HTML (experimental)

Abstract: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, $\tau = 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, 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 ($\beta_2 = 0.95$) on a normalisation gain initialised at 1.0 is below half the bf16 spacing at peak learning rates under $1.7\times10^{-3}$, so the gain never moves (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.
Comments: 30 pages, 3 figures. v2: corrected scope of several statements and training details in the appendix; conclusions unchanged. Code: this https URL
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL)
Cite as: arXiv:2611.31113 [cs.LG]
  (or arXiv:2611.31113v2 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2611.31113

arXiv-issued DOI via DataCite

Submission history

From: Ruben Navasardyan [view email]
[v1] Mon, 23 Nov 2026 17:52:37 UTC (578 KB)
[v2] Fri, 27 Nov 2026 16:24:02 UTC (578 KB)

来源:arXiv cs.AI · arxiv.org