2025-07-04 · 专家 · 机器学习 · 自然语言处理

Fast and Simplex: 2-Simplicial Attention in Triton

该论文提出了一种名为2-simplicial Transformer的架构,通过高效的Triton内核实现扩展了标准点积注意力到三线性函数,从而在有限的token预算下实现了比标准Transformer更好的token效率。

更新于 2025-07-08。作者:Aurko Roy、Timothy Chou、Sai Surya Duvvuri、Sijia Chen、Jiecao Yu、Xiaodong Wang、Manzil Zaheer、Rohan Anil。

中文摘要

最近的研究表明,训练损失随着模型大小和标记数量的幂律关系而变化,而实现计算最优模型需要同时扩大模型大小和标记数量。然而,这些缩放定律假设数据供应无限,并主要适用于计算受限的环境。随着现代大型语言模型越来越多地依赖于庞大的互联网规模数据集,它们是计算受限的假设正变得不那么有效。这一转变突显了需要优先考虑标记效率的架构。在本研究中,我们探讨了2-单纯形Transformer的使用,这是一种通过高效的Triton内核实现将标准点积注意力推广到三线性函数的架构。我们证明了2-单纯形Transformer在标记效率上优于标准Transformer:对于固定的标记预算,同样大小的模型在涉及数学、编码、推理和逻辑的任务上优于其点积对应版本。我们通过证明2-单纯形注意力与点积注意力相比,改变了知识和推理任务的缩放定律中的指数,来量化这些收益。

英文摘要

Recent work has shown that training loss scales as a power law with both model size and the number of tokens, and that achieving compute-optimal models requires scaling model size and token count together. However, these scaling laws assume an infinite supply of data and apply primarily in compute-bound settings. As modern large language models increasingly rely on massive internet-scale datasets, the assumption that they are compute-bound is becoming less valid. This shift highlights the need for architectures that prioritize token efficiency. In this work, we investigate the use of the 2-simplicial Transformer, an architecture that generalizes standard dot-product attention to trilinear functions through an efficient Triton kernel implementation. We demonstrate that the 2-simplicial Transformer achieves better token efficiency than standard Transformers: for a fixed token budget, similarly sized models outperform their dot-product counterparts on tasks involving mathematics, coding, reasoning, and logic. We quantify these gains by demonstrating that 2-simplicial attention changes the exponent in the scaling laws for knowledge and reasoning tasks compared to dot product attention.

解读

一句话总结

该论文提出了一种名为2-simplicial Transformer的架构,通过高效的Triton内核实现扩展了标准点积注意力到三线性函数,从而在有限的token预算下实现了比标准Transformer更好的token效率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt