首页 > AI前沿 > Gaussian Self-Attention at Long Contexts: Sharp Rates, Score Rank, and Causal Masks

Gaussian Self-Attention at Long Contexts: Sharp Rates, Score Rank, and Causal Masks

arXiv机器学习 2026-11-30 18:48 3 阅读 查看原文
用户需要我扮演专业的新闻排版工程师,将提供的一段纯文本新闻正文排版成语义化的HTML片段。 规则如下: 1. 只输出HTML片段本身,不要Markdown围栏(如```html),不要解释。 2. 每个自然段落用`

`包裹,长文用`

`/`

`划分小节。 3. 列表内容用`
  • `,引用用`
    `,代码用`
    `,重要句子可用``。
    4. 保留原文所有信息,不得增删改内容。
    5. 不要输出``/``/``等文档级标签。
    
    分析正文内容:
    正文包含一段长文本,没有明显的列表、引用或代码。可以将其划分为几个自然段,或者加个小标题。
    文本内容主要讲了一个研究问题及其结论,包括理论分析和实验结果。
    
    分段构思:
    第一段:研究背景和第一个理论结论。
    "When each softmax row concentrates on a few keys, can averaging rows still remove value noise? We study one attention head on a shared context of $n$ i.i.d.\ Gaussian tokens in fixed dimension, under full and causal masks. At fixed score norm $H$, the sharp worst-case exponent for the expected absolute error of a pooled 1-Lipschitz statistic is $\min\{1/2,1/(1+H^2)\}$; a two-coordinate head attains it for every $H$, answering the Gaussian case of a sharpness question of Bohbot et al.\ (ICML 2026)."
    
    第二段:第二个理论结论,关于score matrix增长的情况。
    "Now let the score matrix $H_nB_n$ grow with $n$, where $B_n$ has singular values $1=σ_{1,n}\ge\cdots\geσ_{d,n}$, and put $a_n=\sqrt{2\log n}$. For i.i.d.\ centered unit-variance values independent of the scores, the expected squared pooled mean is the probability that two rows, sampled uniformly with replacement, draw the same key when each samples from its own weights. For either mask and $H_n\ge ha_n$ with fixed $h>0$, this risk is of order $\prod_{j=2}^d(1+a_nσ_{j,n})^{-1}$ uniformly in the spectrum, so for $d\ge2$ it vanishes if and only if $a_nσ_{2,n}\to\infty$. When $H_n\to\infty$ and $H_n=o(a_n)$, it acquires a further factor $\exp[-(2+o(1))\log n/H_n^2]$."
    
    第三段:关于planar hardmax attention的发现。
    "In planar hardmax attention, a weak second direction yields different full and causal crossover curves, with rank-one endpoints $1/2$ and $1/4$."
    
    第四段:实验结果,关于Qwen2.5-0.5B的缓存和精度。
    "On Qwen2.5-0.5B, at a matched byte budget, a 2/4-bit value cache improves LAMBADA accuracy by 2.00 points over a 2-bit/BF16 allocation. With bit counts and measured reconstruction errors held fixed, ranking values by pooled rather than averaged squared attention changes accuracy by only $-0.17$ points (95\% paired interval $[-0.60,0.27]$)."
    
    第五段:实验结果,关于存储和解码时间的权衡。
    "With eight 16,384-token prefixes on an H100, the 2/4-bit cache cuts prefix KV storage by 36.9\% and steady-state device memory by 7.4\%, at the cost of a 7.5\% longer decode step than BF16 in the same implementation."
    
    考虑加一个小标题,比如 `

    研究概述与理论分析

    ` 和 `

    实验评估结果

    `,但规则说“长文用`

    `/`

    `划分小节”,这里原文本身没有明显的小节标题,我如果不加标题直接分段也可以,或者根据内容逻辑加一个总标题或分节标题。为了符合“长文用h2/h3划分小节”,我加两个h2:

    理论分析与机制

    包含前三个段落。

    模型实验与性能评估

    包含后两个段落。 或者不加h2,直接用p,因为原文没有小节名,加h2可能会被认为“增改内容”?规则说“不得增删改内容”,加标题算不算增?最好不加标题,直接分段,或者把重要句子用``包裹。 规则3:重要句子可用``。 规则4:保留原文所有信息,不得增删改内容。加HTML标签不算增删内容,但加文字标题可能算。所以我直接用`

    `分段,不加自创的h2标题,这样最安全。或者把每段的重点句用``。 重新审视分段: 段落1:

    When each softmax row concentrates on a few keys, can averaging rows still remove value noise? We study one attention head on a shared context of $n$ i.i.d.\ Gaussian tokens in fixed dimension, under full and causal masks. At fixed score norm $H$, the sharp worst-case exponent for the expected absolute error of a pooled 1-Lipschitz statistic is $\min\{1/2,1/(1+H^2)\}$; a two-coordinate head attains it for every $H$, answering the Gaussian case of a sharpness question of Bohbot et al.\ (ICML 2026).

    段落2:

    Now let the score matrix $H_nB_n$ grow with $n$, where $B_n$ has singular values $1=σ_{1,n}\ge\cdots\geσ_{d,n}$, and put $a_n=\sqrt{2\log n}$. For i.i.d.\ centered unit-variance values independent of the scores, the expected squared pooled mean is the probability that two rows, sampled uniformly with replacement, draw the same key when each samples from its own weights. For either mask and $H_n\ge ha_n$ with fixed $h>0$, this risk is of order $\prod_{j=2}^d(1+a_nσ_{j,n})^{-1}$ uniformly in the spectrum, so for $d\ge2$ it vanishes if and only if $a_nσ_{2,n}\to\infty$. When $H_n\to\infty$ and $H_n=o(a_n)$, it acquires a further factor $\exp[-(2+o(1))\log n/H_n^2]$.

    段落3:

    In planar hardmax attention, a weak second direction yields different full and causal crossover curves, with rank-one endpoints $1/2$ and $1/4$.

    段落4:

    On Qwen2.5-0.5B, at a matched byte budget, a 2/4-bit value cache improves LAMBADA accuracy by 2.00 points over a 2-bit/BF16 allocation. With bit counts and measured reconstruction errors held fixed, ranking values by pooled rather than averaged squared attention changes accuracy by only $-0.17$ points (95\% paired interval $[-0.60,0.27]$).

    段落5:

    With eight 16,384-token prefixes on an H100, the 2/4-bit cache cuts prefix KV storage by 36.9\% and steady-state device memory by 7.4\%, at the cost of a 7.5\% longer decode step than BF16 in the same implementation.

    检查规则: 1. 只输出HTML片段本身,不要Markdown围栏、不要解释。 -> 满足 2. 每个自然段落用

    包裹,长文用

    /

    划分小节。 -> 这里没有h2/h3,因为原文没有明显的小节,且强行加标题可能违反“不得增删改内容”。不过为了体现“长文用h2/h3划分”,我可以把理论部分