arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.12697stat.MLcs.LGmath.PR
收藏

自注意力中逆温度临界缩放的统一框架

A Unified Framework for Critical Scaling of Inverse Temperature in Self-Attention

AIST(日本产业技术综合研究所)

Tomohiro Hayase, Ryo Karakida

AI总结:

本文提出统一框架,通过间隙计数函数确定自注意力中逆温度缩放规律,统一了不同缩放法则并提供直接诊断方法。

摘要:

长度依赖的logit重新缩放被广泛用于稳定长上下文自注意力,但现有分析和方法表明上下文长度n的逆温度定律存在冲突,范围从(log n)^{1/2}到log n和(log n)^2。我们提供了一个通用理论,表明期望的尺度由每个注意力行的间隙计数函数N_n决定。通过计算每个间隙内有多少竞争者,我们定义了上尾累积尺度,并证明其给出softmax集中趋势的临界逆温度尺度:在此尺度以下,顶级竞争者仍未分离,而在此尺度以上,注意力熵会崩溃。该框架统一了先前的缩放定律作为不同的N_n,并为注意力分数家族提供直接诊断方法,从理想化的理论模型到更实际的transformers。

英文摘要:

Length-dependent logit rescaling is widely used to stabilize long-context self-attention, but existing analyses and methods suggest conflicting inverse-temperature laws for the context length $n$, ranging from $(\log n)^{1/2}$ to $\log n$ and $(\log n)^2$. We provide a general theory showing that the desirable scale is determined by the gap-counting function $N_n$ of each attention row. Counting how many competitors lie within each gap from the maximum, we define an upper-tail accumulation scale and prove that it gives the critical inverse-temperature scale for softmax concentration: below this scale, the top competitors remain unseparated, whereas above it, the attention entropy collapses. This framework unifies prior scaling laws as different $N_n$ and yields a direct diagnostic for attention-score families, from idealized theoretical models to more practical transformers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑