SOTAVerified

Linear Attention via Orthogonal Memory

2023-12-18Unverified0· sign in to hype

Jun Zhang, Shuyang Jiang, Jiangtao Feng, Lin Zheng, Lingpeng Kong

Unverified — Be the first to reproduce this paper.

Reproduce

Abstract

Efficient attentions have greatly improved the computational efficiency of Transformers. However, most existing linear attention mechanisms suffer from an efficiency degradation problem, leading to inefficiencies in causal language modeling and hindering their application in long-range language models. This problem is more pronounced under language modeling with unbounded contexts. In this paper, we propose Linear Attention Via Orthogonal memory~( ) to address these limitations, achieving strong performance while maintaining linear complexity. employs orthogonal decomposition to compress a context into a fixed-size orthogonal memory while effectively minimizing redundancy within the context. Given that orthogonal memory compresses global information, we further dissect the context to amplify fine-grained local information. Additionally, we embed the relative position encoding into to improve the extrapolation ability. Experimental results show that greatly improves the efficiency of the causal language model with the best extrapolation performance and outperforms other efficient baselines. Further, we endeavor to employ for unbounded language modeling and successfully scale the context length to 128K.

Tasks

Reproductions