arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.07602cs.LGcs.AIcs.CCcs.CL
收藏

基于RoPE的Transformer架构的电路复杂度界限

Circuit Complexity Bounds for RoPE-based Transformer Architecture

Middle Tennessee State University(中田纳西州立大学);Stevens Institute of Technology(史蒂文斯理工学院);The University of Hong Kong(香港大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);South China University of Technology(华南理工大学);The Simons Institute for the Theory of Computing(西蒙斯理论计算研究所);University of California, Berkeley(加利福尼亚大学伯克利分校)

Bo Chen, Xiaoyu Li, Yingyu Liang, Jiangxuan Long, Zhenmei Shi, Zhao Song

AI总结:

为理解Transformer的容量限制,本文针对在长上下文场景表现优异且泛化能力更强的基于RoPE的Transformer架构,建立其电路复杂度界限,发现特定条件下该架构无法解决算术公式评估等问题,为后续研究提供理论指导。

摘要:

刻画Transformer架构的表达能力对于理解其容量限制和缩放定律至关重要。近期研究为类Transformer架构提供了电路复杂度界限。另一方面,旋转位置嵌入($\mathsf{RoPE}$)已成为现代大型语言模型中的关键技术,与传统位置嵌入相比,在捕捉位置信息方面表现更优,在应用前景上展现出巨大潜力,尤其是在长上下文场景中。实证证据还表明,基于$\mathsf{RoPE}$的Transformer架构比传统Transformer模型具有更强的泛化能力。在这项工作中,我们为带有$\mathsf{RoPE}$注意力的Transformer建立了电路复杂度界限。我们的核心贡献是:除非$\mathsf{TC}^0 = \mathsf{NC}^1$,否则具有$\mathrm{poly}(n)$精度、$O(1)$层、隐藏维度$d \leq O(n)$的基于$\mathsf{RoPE}$的Transformer无法解决算术公式评估问题或布尔公式值问题。这一结果显著展示了基于$\mathsf{RoPE}$的Transformer架构表达能力的根本局限性,尽管它在实证上取得了巨大成功。我们的理论结果不仅确立了复杂度界限,还可能为基于$\mathsf{RoPE}$的Transformer的进一步研究提供指导。

英文摘要:

Characterizing the express power of the Transformer architecture is critical to understanding its capacity limits and scaling law. Recent works provide the circuit complexity bounds to Transformer-like architecture. On the other hand, Rotary Position Embedding ($\mathsf{RoPE}$) has emerged as a crucial technique in modern large language models, offering superior performance in capturing positional information compared to traditional position embeddings, which shows great potential in application prospects, particularly for the long context scenario. Empirical evidence also suggests that $\mathsf{RoPE}$-based Transformer architectures demonstrate greater generalization capabilities compared to conventional Transformer models. In this work, we establish a circuit complexity bound for Transformers with $\mathsf{RoPE}$ attention. Our key contribution is that we show that unless $\mathsf{TC}^0 = \mathsf{NC}^1$, a $\mathsf{RoPE}$-based Transformer with $\mathrm{poly}(n)$-precision, $O(1)$ layers, hidden dimension $d \leq O(n)$ cannot solve the Arithmetic formula evaluation problem or the Boolean formula value problem. This result significantly demonstrates the fundamental limitation of the expressivity of the $\mathsf{RoPE}$-based Transformer architecture, although it achieves giant empirical success. Our theoretical result not only establishes the complexity bound but also may instruct further work on the $\mathsf{RoPE}$-based Transformer.

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

↑