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

高效上下文传播感知架构用于自回归语言建模

Efficient Context Propagating Perceiver Architectures for Auto-Regressive Language Modeling

Department of Computer Science and Statistics, University of Rhode Island, Kingston, RI, USA(计算机科学与统计学系,罗德岛大学,金斯敦,罗德岛州,美国);Department of Computer Science, Stevens Institute of Technology, Hoboken, New Jersey, USA(计算机科学系,史蒂文斯理工学院,霍博肯,新泽西州,美国)

Kaleel Mahmood, Shaoyi Huang

AI总结:

本文提出ECP架构,通过结合上下文和潜在序列提升自回归语言建模性能,实现高效计算和更优的语言建模效果。

摘要:

Transformer架构中的一个关键挑战是注意力机制的二次复杂度,这限制了长序列的高效处理。许多近期研究尝试将注意力的O(n²)时间复杂度减少到半线性复杂度。然而,从保持高性能的角度来看,降低复杂度仍是一个未解决的问题。在这方面的重要工作之一是Perceiver类架构,它们在减少计算复杂度的同时表现出色。在本文中,我们以PerceiverAR为基础,探索不同保留学术和减少注意力复杂度之间权衡的设计空间。为此,我们开发了四种新的架构范式,其中表现最好的称为高效上下文传播感知(ECP)。ECP相比PerceiverAR有两个主要优势。首先,ECP架构通过利用自回归训练中的上下文和潜在序列,克服了PerceiverAR的主要缺点。其次,ECP架构的操作注意力复杂度与LongLoRA相同,使其计算高效。更重要的是,通过成对片段注意力,它提取了更好的信息,从而提高了语言建模。从经验上,我们证明ECP架构在Wikitext-103、PG-19和sCIFAR-10上显著优于其他最先进的Transformer模型。

英文摘要:

One of the key challenges in Transformer architectures is the quadratic complexity of the attention mechanism, which limits the efficient processing of long sequences. Many recent research works have attempted to provide a reduction from the $O(n^2)$ time complexity of attention to semi-linear complexity. However, it remains an unsolved problem in the sense of maintaining high performance when complexity is reduced. One of the important works in this respect is the Perceiver class of architectures that have demonstrated excellent performance, while reducing the computation complexity. In this paper, we use the PerceiverAR as a basis and explore the design space of different trade-offs between preserving context and reducing attention complexity. To this end, we develop four new architectural paradigms, the best performing of which we denote as the Efficient Context propagating Perceiver (ECP). ECP has two major advantages over the PerceiverAR. First, the ECP architecture overcomes the main drawback of PercieverAR by utilizing both the context and the latent sequences in autoregressive training. Second, the ECP architecture operates with the same attention complexity as LongLoRA, making it computationally efficient. More importantly, via pairwise segment attention, it extracts better information resulting in improved language modeling. Empirically, we demonstrate that the ECP architecture significantly outperforms other state-of-the-art Transformer models on Wikitext-103, PG-19 and sCIFAR-10.

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

↑