Efficient Self-Attention Mechanisms: Current Status and Challenges from Quadratic Complexity to Linear Approximations
Abstract
The vanilla self-attention of Transformer suffers from the problem of squared complexity, and the high computational power and memory overhead constrain the modeling of ultra long sequences. This article provides an overview of efficient self-attention mechanisms, categorizing existing solutions into four types: low-rank sequence projection approximation, kernelized linear attention, sparse attention, and IO-aware hardware optimization. A multidimensional evaluation index is established to compare the principles, performance, and engineering applicability boundaries of various methods, and their applications in vertical scenarios such as industrial timing fault diagnosis are introduced. Research has found that existing algorithms generally have a trade-off between efficiency and accuracy. Approximation methods can reduce theoretical overhead, but they are prone to losing modeling capabilities; IO aware optimization preserves vanilla accuracy but cannot eliminate squared complexity. This article summarizes the existing challenges in the field and looks forward to future research from the perspectives of adaptive architecture, software hardware collaboration, inference optimization, and vertical scene customization, providing reference for the research and engineering selection of long sequence modeling.
References
- Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). Attention is all you need.Advances in Neural Information Processing Systems, 30. DOI: 10.48550/arXiv.1706.03762
- Katharopoulos, A., Vyas, A., Pappas, N., et al. (2020). Transformers are rnns: Fast autoregressive transformers with linear attention.International Conference on Machine Learning. PMLR, 5156-5165. DOI: 10.48550/arXiv.2006.16236
- Wang, S., Li, B. Z., Khabsa, M., et al. (2020). Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768. DOI: 10.48550/arXiv.2006.04768
- Tay, Y., Dehghani, M., Bahri, D., et al. (2022). Efficient transformers: A survey.ACM Computing Surveys, 55(6), 1-28. DOI: 10.1145/3530811
- Xia, Q. F., Xu, K. E., Li, M. Y., et al. (2024). Review of attention mechanisms in reinforcement learning.Journal of Frontiers of Computer Science and Technology, 18(6), 1457-1475. DOI: 10.3778/j.issn.1673-9418.2312006
- Ren, H., & Wang, X. G. (2021). Review of attention mechanism.Journal of Computer Applications, 41(S1), 1–6. DOI: 10.11772/j.issn.1001-9081.2020101634
- Jin, Y., Wu, Y., Gao, Y., et al. (2025). LinFormer: A linear-based lightweight transformer architecture for time-aware MIMO channel prediction.IEEE Transactions on Wireless Communications, 24(9), 7177–7190. DOI: 10.1109/TWC.2025.3558950
- Choromanski, K., Likhosherstov, V., Dohan, D., et al. (2020). Rethinking attention with performers.arXiv preprint arXiv:2009.14794, https://doi.org/10.48550/arXiv.2009.14794
- Gao, Y., Zeng, Z., Du, D., et al. (2024). Seerattention: Learning intrinsic sparse attention in your llms.arXiv preprint arXiv:2410.13276, https://doi.org/10.48550/arXiv.2410.13276
- Yan, R., Jiang, Y., Chen, Z., et al. (2026). Fsa: An altervanilla efficient implementation of vanilla sparse attention kernel.International Conference on Learning Representations, 39570–39590. https://doi.org/10.48550/arXiv.2508.18224
- Beltagy, I., Peters, M. E., & Cohan, A. (2020). Longformer: The long-document transformer.arXiv preprint arXiv:2004.05150. DOI: 10.48550/arXiv.2004.05150
- Dao, T., Fu, D., Ermon, S., et al. (2022). Flashattention: Fast and memory-efficient exact attention with io-awareness.Advances in Neural Information Processing Systems, 35, 16344–16359. https://doi.org/10.48550/arXiv.2205.14135
- Dao, T. (2024). Flashattention-2: Faster attention with better parallelism and work partitioning.International Conference on Learning Representations, 35549–35562. DOI: 10.48550/arXiv.2307.08691
- Zhang, H. Y., Wu, H. L., Liu, H., et al. (2026). Lightweight fault diagnosis of rolling bearings based on improved linear attention transformer.Journal of Beijing University of Aeronautics and Astronautics, 52(7), 2563–2579. DOI: 10.13700/j.bh.1001-5965.2024.0366