线性化2-单纯形注意力 Linearized 2-Simplicial Attention 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-10
👁️ 预览文献
💡 AI 中文简介
本文提出一种线性化的2-单纯形注意力机制,将三线性打分重写为复合查询与键的内积,使一个token轴上的求和形式与普通softmax注意力相同。作者用正随机特征近似该求和,将全部历史存入固定大小状态,另一轴则保留在近期token的短窗口上,从而在序列长度上实现线性开销并具备全局覆盖能力。他们用自定义Triton内核实现,并与Kimi Delta Attention结合构建了完全不含softmax注意力的模型。在相同计算量下,该模型下游平均准确率最高,16k上下文时相比KDA混合模型平均准确率提升,LAMBADA困惑度从715.6降至602.6。
领域自然语言处理 / 高效注意力机制与长上下文建模
适合谁读需要一定专业背景(熟悉注意力机制、线性注意力与状态空间模型)
核心贡献1. 将2-单纯形注意力的三线性打分重写为复合查询与键的内积,使一个token轴上的求和化为普通softmax注意力形式,并用正随机特征近似,实现固定大小状态下的线性开销与全局覆盖。2. 用自定义Triton内核实现,并与Kimi Delta Attention结合构建完全无softmax注意力的模型,在匹配计算量下取得最高下游平均准确率。
关键数据16k上下文时,相比KDA混合模型平均准确率提升,LAMBADA困惑度从715.6降至602.6;序列长度上实现线性计算开销。
推荐理由如果你关心如何把高阶注意力做得又省又强,这篇把2-单纯形注意力线性化并跑出实测提升的工作值得一读。
关键词["线性注意力", "2-单纯形注意力", "随机特征", "状态压缩", "Triton内核", "长上下文"]

原文摘要

查看英文原文摘要

We present a linearized form of 2-simplicial attention by rewriting the trilinear score as an inner product between a composite query and a key, so that the sum over one token axis takes the same form as ordinary softmax attention. We then approximate this sum with positive random features and store the entire past in a fixed-size state, while the second axis stays explicit over a short window of recent tokens. This enables us to achieve linear cost in sequence length combined with a global reach that windowed 2-simplicial attention lacks. We implement it with custom Triton kernels and combine it with Kimi Delta Attention to build a model with no softmax attention at all. Under matched compute, this model achieves the highest mean downstream accuracy among the compared architectures, and at 16k context it improves mean accuracy over a KDA hybrid while lowering LAMBADA perplexity from 715.6 to 602.6.