Circuit Complexity Bounds for RoPE-based Transformer Architecture
Preprint
Abstract
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 tighter 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 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 framework not only establishes tighter complexity bounds but also may instruct further work on the $\mathsf{RoPE}$-based Transformer.
Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Towards Infinite-Long Prefix in Transformer2025
- The Fine-Grained Complexity of Gradient Computation for Training Large Language Models2024
- Revisiting Zero-Shot Abstractive Summarization in the Era of Large Language Models from the Perspective of Position Bias2024
- The Parallelism Tradeoff: Limitations of Log-Precision TransformersTransactions of the Association for Computational Linguistics, 2023
- Saturated Transformers are Constant-Depth Threshold CircuitsTransactions of the Association for Computational Linguistics, 2022
- Uniform constant-depth threshold circuits for division and iterated multiplicationJournal of Computer and System Sciences, 2002
- On the Complexity of k-SATJournal of Computer and System Sciences, 2001