arXiv:2605.06683cs.LGcs.AI2026-05

用托普利茨矩阵替代注意力,实现低复杂度高效序列建模

Toeplitz MLP Mixers are Low Complexity, Information-Rich Sequence Models

论文配图:Toeplitz MLP Mixers are Low Complexity, Information-Rich Sequence Models
图 1 · 摘自论文原文
  • 用三角掩码的托普利茨矩阵乘法替代注意力机制
  • 训练时仅需O(dn log n)时间、O(dn)空间,推理更高效
  • 保留更多输入信息,适合需要精准记忆和少偏见的场景

基于Transformer的大语言模型受限于注意力机制的二次计算复杂度。我们提出托普利茨MLP混合器(TMM),一种类Transformer架构,将注意力替换为序列维度上的三角掩码托普利茨矩阵乘法,训练时时间复杂度为$/mathcal{O}(dn /log n)$,空间复杂度为$/mathcal{O}(dn)$;推理预填充阶段时间为$/mathcal{O}(dn)$,空间也为$/mathcal{O}(dn)$。尽管未采用复杂的输入调制或状态维护,TMM在单位算力与显存下达到更高训练效率。实验表明,TMM能保留更多输入信息,提升复制能力,这归因于其架构偏差更小。同时,在信息检索与上下文学习任务中表现优于同类模型。从算子索引理论分析发现,训练后的因果非可逆模型反而更可能具有可逆性或近似可逆性,与直觉相反。

原文摘要 · Abstract (English)

Transformer-based large language models are in some respects limited by the quadratic time and space computational complexity of attention. We introduce the Toeplitz MLP Mixer (TMM), a transformer-like architecture that swaps attention for triangular-masked Toeplitz matrix multiplication over the sequence dimension resulting in $\mathcal{O} (dn \log n)$ time and $\mathcal O(dn)$ space complexity during training and $\mathcal O(dn)$ time and space at inference prefill. Despite the lack of sophisticated input modulation or state maintenance present in other sub-quadratic architectures, TMMs yield greater training efficiency in terms of loss achieved per compute and device memory. We demonstrate that TMMs are capable of retaining more input information resulting in improved copying ability, which we argue results from a lack of architectural biases. Consistent with higher input information retention, TMMs exhibit superior information retrieval and in-context learning benchmark accuracy compared to comparable architectures. We conclude with an analysis from the perspective of operator index theory and show that, counterintuitively, trained Toeplitz layers of causal non-invertible models are more likely to be invertible or nearly so than models that are actually invertible over their inputs.

序列建模低复杂度信息保留托普利茨

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。