线性化2-Simplicial Attention:用正随机特征将三元注意力降至二次复杂度
Linearized 2-Simplicial Attention
该研究提出2-simplicial attention的线性化形式,将三线性打分改写为复合query与key的内积,并用正随机特征近似key求和、以固定大小状态存储历史key,使序列长度成本从三次降至二次。
arXiv:2608.09307v2 Announce Type: replace Abstract: 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 keys takes the same form as ordinary softmax attention. We then approximate this sum with positive random features and store all previous keys in a fixed-size state, while the sum over second keys stays exact over all previous tokens. This reduces the cost from cubic to quadratic in sequence length, and both keys range over all previous tokens, which windowed 2-simplicial attention does not allow. We implement it with custom Triton kernels and combine it with Kimi Delta Attention to build a model with no softmax attention at all. With 15B equal training tokens on FineWeb-Edu, this model lowers validation loss from 2.35 to 2.32 over a KDA hybrid and lowers LAMBADA perplexity from 40 to 38.
来源:arXiv (AI + Vision + Imaging) · arxiv.org