跳到正文
arXiv (AI + Vision + Imaging)· Ruben Navasardyan·· 1 天前AI 评分17

注意力温度干扰零样本上下文扩展评估:校准后块稀疏、注意力dropout与ALiBi优势消失

Attention Temperature Confounds Zero-Shot Context Extension

AI 导读

研究发现零样本上下文扩展的评估结果受基线注意力温度失校准程度影响:在fp32主权重下,8k训练的基线在30k长度处失校准8-15%,使块稀疏训练的双胞胎模型看似优7%,校准后该优势消失。纯bf16训练且无主权重时失校准达37-58%,块稀疏预训练、注意力dropout和ALiBi看似优6-35%,按模型和长度校准温度后三者优势全部消除,ALiBi仍落后RoPE 5%。

正文 · 原文

arXiv:2611.31113v1 Announce Type: new 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 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 ($\beta_2 = 0.95$) on a gain initialised at 1.0 is below half the bf16 spacing at peak learning rates under $1.7\times10^{-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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org