A Practical Survey on Faster and Lighter Transformers
Top Cited Papers
Open Access
- 17 July 2023
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Computing Surveys
- Vol. 55 (14s) , 1-40
Abstract
Recurrent neural networks are effective models to process sequences. However, they are unable to learn long-term dependencies because of their inherent sequential nature. As a solution, Vaswani et al. introduced the Transformer, a model solely based on the attention mechanism that is able to relate any two positions of the input sequence, hence modelling arbitrary long dependencies. The Transformer has improved the state-of-the-art across numerous sequence modelling tasks. However, its effectiveness comes at the expense of a quadratic computational and memory complexity with respect to the sequence length, hindering its adoption. Fortunately, the deep learning community has always been interested in improving the models’ efficiency, leading to a plethora of solutions such as parameter sharing, pruning, mixed-precision, and knowledge distillation. Recently, researchers have directly addressed the Transformer’s limitation by designing lower-complexity alternatives such as the Longformer, Reformer, Linformer, and Performer. However, due to the wide range of solutions, it has become challenging for researchers and practitioners to determine which methods to apply in practice to meet the desired tradeoff between capacity, computation, and memory. This survey addresses this issue by investigating popular approaches to make Transformers faster and lighter and by providing a comprehensive explanation of the methods’ strengths, limitations, and underlying assumptions.Keywords
All Related Versions
Funding Information
- Natural Sciences and Engineering Research Council of Canada (NSERC), Prompt, Ericsson, Ciena, and EfficiOS
This publication has 8 references indexed in Scilit:
- Transformers in Vision: A SurveyACM Computing Surveys, 2022
- Attention in Natural Language ProcessingIEEE Transactions on Neural Networks and Learning Systems, 2020
- Estimating Carbon Emissions of Artificial Intelligence [Opinion]IEEE Technology and Society Magazine, 2020
- A Comparative Study on Transformer vs RNN in Speech Applications2019
- Scaling Neural Machine Translation2018
- Long Short-Term MemoryNeural Computation, 1997
- Adaptive Mixtures of Local ExpertsNeural Computation, 1991
- “Cloze Procedure”: A New Tool for Measuring ReadabilityJournalism Quarterly, 1953