arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.17363cs.LG
收藏

2Mamba2Furious: 线性复杂度,准确度竞争

2Mamba2Furious: Linear in Complexity, Competitive in Accuracy

Lyle School of Engineering(莱尔学校工程学院);Southern Methodist University(南方 Methodist 大学)

Gabriel Mongaras, Eric C. Larson

AI总结:

本文通过简化并改进Mamba-2,提出2Mamba方法,在保持高准确度的同时显著提升长上下文的内存效率。

摘要:

线性注意力变换器因其效率成为softmax注意力的强替代方案,但其表达能力较弱导致准确度下降。为弥合softmax与线性注意力之间的准确度差距,本文通过简化Mamba-2并改进A-mask和隐藏状态阶数,提出2Mamba方法,其准确度接近softmax注意力,但对长上下文具有更高的内存效率。此外,本文还探讨了超越softmax注意力准确度的Mamba-2元素。所有实验代码均提供。

英文摘要:

Linear attention transformers have become a strong alternative to softmax attention due to their efficiency. However, linear attention tends to be less expressive and results in reduced accuracy compared to softmax attention. To bridge the accuracy gap between softmax attention and linear attention, we manipulate Mamba-2, a very strong linear attention variant. We first simplify Mamba-2 down to its most fundamental and important components, evaluating which specific choices make it most accurate. From this simplified Mamba variant (Mamba-2S), we improve the A-mask and increase the order of the hidden state, resulting in a method, which we call 2Mamba, that is nearly as accurate as softmax attention, yet much more memory efficient for long context lengths. We also investigate elements to Mamba-2 that help surpass softmax attention accuracy. Code is provided for all our experiments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑