Theoretical Constraints on the Expressive Power of $\mathsf{RoPE}$-based Tensor Attention Transformers
Xiaoyu Li, Yingyu Liang, Zhenmei Shi, Zhao Song, Mingda Wan
TL;DR
The paper analyzes the theoretical expressivity of Tensor Attention and RoPE-based Tensor Attention Transformers through circuit complexity, showing that, unless $\mathsf{TC}^0=\mathsf{NC}^1$, constant-depth, poly(n)-size implementations with $d=O(n)$ cannot solve fixed membership or $(A_{F,r})^*$ closure problems, while remaining simulable by $\mathsf{DLOGTIME}$-uniform $\mathsf{TC}^0$ circuits. It provides detailed complexity bounds for matrix operations, tensor ops, RoPE components, and full multi-layer transformers, demonstrating TC^0-simulability under certain parameter regimes and establishing NC^1-hardness implications for the related decision problems. The hardness results bridge theory and practice by highlighting fundamental expressivity constraints that accompany the empirical success of these architectures. The work offers a principled framework to guide future transformer design toward models with stronger theoretical guarantees, while acknowledging that forward-computation analyses with fixed activations may not capture training dynamics or alternative encodings. Overall, the paper clarifies a notable gap between practical performance and computational-l-theoretic limits in high-order, positional-encoded attention mechanisms.
Abstract
Tensor Attention extends traditional attention mechanisms by capturing high-order correlations across multiple modalities, addressing the limitations of classical matrix-based attention. Meanwhile, Rotary Position Embedding ($\mathsf{RoPE}$) has shown superior performance in encoding positional information in long-context scenarios, significantly enhancing transformer models' expressiveness. Despite these empirical successes, the theoretical limitations of these technologies remain underexplored. In this study, we analyze the circuit complexity of Tensor Attention and $\mathsf{RoPE}$-based Tensor Attention, showing that with polynomial precision, constant-depth layers, and linear or sublinear hidden dimension, they cannot solve fixed membership problems or $(A_{F,r})^*$ closure problems, under the assumption that $\mathsf{TC}^0 \neq \mathsf{NC}^1$. These findings highlight a gap between the empirical performance and theoretical constraints of Tensor Attention and $\mathsf{RoPE}$-based Tensor Attention Transformers, offering insights that could guide the development of more theoretically grounded approaches to Transformer model design and scaling.
