Neural Architecture Search on Efficient Transformers and Beyond
The DOI matches its DataCite record; 7 of the 7 references it cites were found in a registry or an index.
Abstract
Recently, numerous efficient Transformers have been proposed to reduce the quadratic computational complexity of standard Transformers caused by the Softmax attention. However, most of them simply swap Softmax with an efficient attention mechanism without considering the customized architectures specially for the efficient attention. In this paper, we argue that the handcrafted vanilla Transformer architectures for Softmax attention may not be suitable for efficient Transformers. To address this issue, we propose a new framework to find optimal architectures for efficient Transformers with the neural architecture search (NAS) technique. The proposed method is validated on popular machine translation and image classification tasks. We observe that the optimal architecture of the efficient Transformer has the reduced computation compared with that of the standard Transformer, but the general accuracy is less comparable. It indicates that the Softmax attention and efficient attention have their own distinctions but neither of them can simultaneously balance the accuracy and efficiency well. This motivates us to mix the two types of attention to reduce the performance imbalance. Besides the search spaces that commonly used in existing NAS Transformer approaches, we propose a new search space that allows the NAS algorithm to automatically search the attention variants along with architectures. Extensive experiments on WMT' 14 En-De and CIFAR-10 demonstrate that our searched architecture maintains comparable accuracy to the standard Transformer with notably improved computational efficiency.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Compared to baseline transformers with quadratic complexity, their searched networks have comparable accuracy on NLP and vision tasks and much better compute efficiency.”
From A Survey of Techniques for Optimizing Transformer Inference (2023) · cites this paper as [234]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Big Bird: Transformers for Longer Sequences
Zaheer, M., Guruganesh, G., Dubey, A., Ainslie, J., Alberti, C., Ontanon, S., Pham, P., Ravula, A., Wang, Q., Yang, L., et al. (2020) · arXiv · doi:10.48550/arxiv.2007.14062 · Cited by 1,349 · cited 1×
“Only a few models [25, 39, 40] have occasionally achieved improved accuracy over the Transformer [35] on some specific tasks or settings, but their performance is not consistently better in all cases.”
BackgroundEfficient transformers: A survey
Tay, Y., Dehghani, M., Bahri, D., & Metzler, D. (2023) · ACM Computing Surveys · doi:10.1145/3530811 · Cited by 1,267 · cited 4×
“Compared with these methods with one fixed pattern, the combination of multiple patterns can diversify the coverage of attention access [33].”
BackgroundMethodInfluentialEfficient Transformers: A Survey
Tay, Y., Dehghani, M., Bahri, D., & Metzler, D. (2020) · arXiv · doi:10.48550/arxiv.2009.06732 · Cited by 1,267
Generating Long Sequences with Sparse Transformers
Child, R., Gray, S., Radford, A., & Sutskever, I. (2019) · arXiv · doi:10.48550/arxiv.1904.10509 · Cited by 1,063 · cited 3×
“Pattern-based methods sparsify the attention matrix with predefined or learnable patterns, e.g ., chunking input sequences into fixed blocks [26], calculating attention at fixed intervals [7], or using axial attention [15].”
BackgroundMethodRethinking Attention with Performers
Choromanski, K., Likhosherstov, V., Dohan, D., Song, X., Gane, A., Sarlos, T., Hawkins, P., Davis, J., Mohiuddin, A., Kaiser, L., et al. (2020) · arXiv · doi:10.48550/arxiv.2009.14794 · Cited by 695 · cited 1×
“[24] approximates Softmax with the production of a series of Gaussian kernels, and alternatively, [9] uses Haar kernels instead.”
MethodRegularized Evolution for Image Classifier Architecture Search
Real, E., Aggarwal, A., Huang, Y., & Le, Q. V. (2019) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v33i01.33014780 · Cited by 328
On the Properties of the Softmax Function with Application in Game Theory and Reinforcement Learning
Gao, B., & Pavel, L. (2017) · arXiv · doi:10.48550/arxiv.1704.00805 · Cited by 207 · cited 2×
“The non-linearity concentrates the most relevant features to be aggregated and stabilizes training [2, 12].”
Background
Cited by
A Survey of Techniques for Optimizing Transformer Inference
Chitty-Venkata, K. T., Mittal, S., Emani, M., Vishwanath, V., & Somani, A. K. (2023) · Journal of Systems Architecture · doi:10.1016/j.sysarc.2023.102990 · Cited by 154
Hierarchically Gated Recurrent Neural Network for Sequence Modeling
Qin, Z., Yang, S., & Zhong, Y. (2023) · Advances in Neural Information Processing Systems 36 · doi:10.52202/075280-1442 · Cited by 49
Self-citationExploring Transformer Extrapolation
Qin, Z., Zhong, Y., & Deng, H. (2024) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v38i17.29855 · Cited by 2
Self-citationExploring Transformer Extrapolation
Qin, Z., Zhong, Y., & Deng, H. (2023) · arXiv · doi:10.48550/arxiv.2307.10156 · Cited by 2
“…2017) is advancing steadily in the areas of natural language processing (Qin et al. 2023b; Devlin et al. 2019; Liu et al. 2019; Qin et al. 2022b,a; Liu et al. 2022; Qin and Zhong 2023), computer vision (Doso-vitskiy et al. 2020; Sun et al. 2022b; Lu et al. 2022; Hao et al. 2024), and audio…”
BackgroundSelf-citation
Metadata
- Authors
- Liu, Z., Li, D., Lu, K., Qin, Z., Sun, W., Xu, J., & Zhong, Y.
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2022
- arXiv
- 2207.13955
- References
- 7
- Type
- Preprint
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.