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

通过统一的隐式注意力公式解释现代门控线性RNN

Explaining Modern Gated-Linear RNNs via a Unified Implicit Attention Formulation

Tel Aviv University(特拉维夫大学)

Itamar Zimerman, Ameen Ali, Lior Wolf

AI总结:

本文将Mamba、RWKV等门控线性RNN统一形式化为隐式因果自注意力层,提出可解释性框架,实验证明其归因方法优于针对Mamba的现有方案,并在其他架构上达到与Transformer可解释性方法相当的性能。

摘要:

近年来,高效序列建模的进展催生了无注意力层,例如Mamba、RWKV以及各种门控RNN,这些层在序列长度上均具有次二次复杂度,并展现出优异的扩展性能,从而能够构建新型基础模型。本文提出了对这些模型的统一视角,将此类层形式化为隐式因果自注意力层。该公式涵盖了它们的大部分子组件,并不局限于架构的特定部分。该框架在相似的基础上比较不同层的底层机制,并为应用可解释性方法提供了直接途径。我们的实验表明,我们的注意力矩阵和归因方法优于最近针对Mamba提出的另一种更有限的公式。对于我们的方法首次提供此类视角的其他架构,与最先进的Transformer可解释性方法所获得的结果相比,我们的方法在相关指标上有效且具有竞争力。我们的代码已公开。

英文摘要:

Recent advances in efficient sequence modeling have led to attention-free layers, such as Mamba, RWKV, and various gated RNNs, all featuring sub-quadratic complexity in sequence length and excellent scaling properties, enabling the construction of a new type of foundation models. In this paper, we present a unified view of these models, formulating such layers as implicit causal self-attention layers. The formulation includes most of their sub-components and is not limited to a specific part of the architecture. The framework compares the underlying mechanisms on similar grounds for different layers and provides a direct means for applying explainability methods. Our experiments show that our attention matrices and attribution method outperform an alternative and a more limited formulation that was recently proposed for Mamba. For the other architectures for which our method is the first to provide such a view, our method is effective and competitive in the relevant metrics compared to the results obtained by state-of-the-art Transformer explainability methods. Our code is publicly available.

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

↑