首页 > AI前沿 > Bilateral Log-Linear Attention

Bilateral Log-Linear Attention

arXiv机器学习 2026-11-14 06:07 14 阅读 查看原文
用户现在需要我把给定的新闻正文排版成语义化的HTML片段,按照要求来。首先看正文,没有小节划分,全是自然段落,所以每个自然段落用

包裹,重要句子比如核心的方法、结果这些可以用?不对,要保留所有信息,增删改不行。首先先理清楚内容: 第一段是讲序列模型的不同上下文表示方式:Sequence models represent past context at different resolutions, using token-level keys and values, fixed-size recurrent states, or hierarchies of compressed summaries. 然后第二句讲全注意力的优缺点:Full attention supports strong associative recall but requires quadratic work during training and prefill and a linearly growing key-value cache during inference. 然后是线性注意力和状态空间模型的特点:Linear attention and state-space models reduce these costs through fixed-size recurrent memory, but this compression can limit recall. 然后log-linear注意力的特点:Log-linear attention offers a middle ground by maintaining logarithmically many state matrices. 然后它的问题:However, its hierarchy favors finer resolution near the current query while compressing earlier context into coarser summaries. 接下来作者提出的方法:To complement this allocation of resolution, we introduce bilateral log-linear attention, which pairs the existing hierarchy with a second hierarchy anchored at the sequence origin. 然后方法的效果:By combining their reads, the two branches provide finer access to both early and recent context while remaining causal. 然后方法的公式推导相关:We derive recurrent and chunkwise parallel formulations for the added branch, preserving log-linear training and prefill work, logarithmic decoding work per token, and logarithmic persistent state storage at fixed feature dimensions and chunk size. 然后第一个实验结果:In multi-query associative recall, this design raises mean overall test accuracy from 76.37% to 96.12% over forward log-linear attention across multiple training seeds. 然后第二个实验结果:For pretrained language models under approximate parameter matching, it raises the mean score on six selected RULER needle-in-a-haystack tasks from 26.97% to 50.03% at a context length of 6144 tokens. 最后一个结果:In the same setting, bilateral attention also outperforms forward log-linear attention on seven of eight downstream retrieval tasks, including question answering and information extraction. 现在,用户要求每个自然段落用

,这里原文是一整段?不对,看原文的正文,其实是一整段吗?不对,看用户给的正文,是连续的一段?不对,等下看,用户的正文是: Sequence models represent past context at different resolutions, using token-level keys and values, fixed-size recurrent states, or hierarchies of compressed summaries. Full attention supports strong associative recall but requires quadratic work during training and prefill and a linearly growing key-value cache during inference. Linear attention and state-space models reduce these costs through fixed-size recurrent memory, but this compression can limit recall. Log-linear attention offers a middle ground by maintaining logarithmically many state matrices. However, its hierarchy favors finer resolution near the current query while compressing earlier context into coarser summaries. To complement this allocation of resolution, we introduce bilateral log-linear attention, which pairs the existing hierarchy with a second hierarchy anchored at the sequence origin. By combining their reads, the two branches provide finer access to both early and recent context while remaining causal. We derive recurrent and chunkwise parallel formulations for the added branch, preserving log-linear training and prefill work, logarithmic decoding work per token, and logarithmic persistent state storage at fixed feature dimensions and chunk size. In multi-query associative recall, this design raises mean overall test accuracy from 76.37% to 96.12% over forward log-linear attention across multiple training seeds. For pretrained language models under approximate parameter matching, it raises the mean score on six selected RULER needle-in-a-haystack tasks from 26.97% to 50.03% at a context length of 6144 tokens. In the same setting, bilateral attention also outperforms forward log-linear attention on seven of eight downstream retrieval tasks, including question answering and information extraction. 哦,原来是一整段?不对,是不是需要拆分?不,用户说每个自然段落用

,那原文的自然段落就是这一个?不对,可能可以拆分,但用户要求保留所有信息,不得增删改。那其实可以把这些内容分成几个

?不对,看内容的逻辑,比如第一部分是现有方法的介绍,然后是提出的新方法,然后是方法的推导,然后是实验结果。不过用户说不要增删改内容,所以每个自然段落,原文的换行如果是自然段落的话,这里原文的正文是一个连续的段落吗?看用户给的,是一段。那不对,可能用户给的正文是一整段,那是不是全部放在一个

里?不对,等下,再仔细看用户的要求:每个自然段落用

包裹,长文用

/

划分小节。那这里原文没有小节,所以不用h标签。那现有内容里,重要句子可以用,比如提出的新方法、关键结果这些。 等下,我需要准确: 第一个

可以是:Sequence models represent past context at different resolutions, using token-level keys and values, fixed-size recurrent states, or hierarchies of compressed summaries. Full attention supports strong associative recall but requires quadratic work during training and prefill and a linearly growing key-value cache during inference. Linear attention and state-space models reduce these costs through fixed-size recurrent memory, but this compression can limit recall. Log-linear attention offers a middle ground by maintaining logarithmically many state matrices. However, its hierarchy favors finer resolution near the current query while compressing earlier context into coarser summaries. 然后第二个

:To complement this allocation of resolution, we introduce bilateral log-linear attention, which pairs the existing hierarchy with a second hierarchy anchored at the sequence origin. By combining their reads, the two branches provide finer access to both early and recent context while remaining causal. We derive recurrent and chunkwise parallel formulations for the added branch, preserving log-linear training and prefill work, logarithmic decoding work per token, and logarithmic persistent state storage at fixed feature dimensions and chunk size. 第三个

:In multi-query associative recall, this design raises mean overall test accuracy from 76.37% to 96.12% over forward log-linear attention across multiple training seeds. For pretrained language models under approximate parameter matching, it raises the mean score on six selected RULER needle-in-a-haystack tasks from 26.97% to 50.03% at a context length of 6144 tokens. In the same setting, bilateral attention also outperforms forward log-linear attention on seven of eight downstream retrieval tasks, including question answering and information extraction. 不对,是不是应该保持原文的段落结构?原文是一整段,那是不是所有内容放在一个

里?但用户说每个自然段落用

,可能原文的自然段落就是这一个,那放在一个

里?不过可以加在重要句子上。比如:

Sequence models represent past context at different resolutions, using token-level keys and values, fixed-size recurrent states, or hierarchies of compressed summaries. Full attention supports strong associative recall but requires quadratic work during training and prefill and a linearly growing key-value cache during inference. Linear attention and state-space models reduce these costs through fixed-size recurrent memory, but this compression can limit recall. Log-linear attention offers a middle ground by maintaining logarithmically many state matrices. However, its hierarchy favors finer resolution near the current query while compressing earlier context into coarser summaries. To complement this allocation of resolution, we introduce bilateral log-linear attention, which pairs the existing hierarchy with a second hierarchy anchored at the sequence origin. By combining their reads, the two branches provide finer access to both early and recent context while remaining causal. We derive recurrent and chunkwise parallel formulations for the added branch, preserving log-linear training and prefill work, logarithmic decoding work per token, and logarithmic persistent state storage at fixed feature dimensions and chunk size. In multi-query associative recall, this design raises mean overall test accuracy from 76.37% to 96.12% over forward log-linear attention across multiple training seeds. For pretrained language models under approximate parameter matching, it raises the mean score on six selected RULER needle-in-a-