Skip to main content
QUICK REVIEW

[Paper Review] A Practical Survey on Faster and Lighter Transformers

Quentin Fournier, Gaétan Marceau Caron|arXiv (Cornell University)|Mar 26, 2021
Real-time simulation and control systemsEngineering13 citations
TL;DR

This survey provides a comprehensive analysis of techniques to accelerate and compress Transformers, covering general efficiency methods like mixed-precision training and gradient checkpointing, as well as specialized low-complexity architectures such as Longformer, Reformer, Linformer, and Performer. It offers practical guidance on selecting methods based on trade-offs between model capacity, computation, and memory, emphasizing pre-trained models and efficient training practices for real-world deployment.

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 in order to meet the desired trade-off 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.

Motivation & Objective

  • To address the challenge of high computational and memory complexity in standard Transformers, which limits their deployment in resource-constrained settings.
  • To evaluate and compare general efficiency techniques—such as mixed-precision training, gradient checkpointing, pruning, and knowledge distillation—across different scenarios.
  • To analyze specialized low-complexity Transformer variants (e.g., Longformer, Reformer, Linformer, Performer) and their underlying assumptions, strengths, and limitations.
  • To provide actionable recommendations for researchers and practitioners on selecting the most appropriate efficiency strategy based on task requirements and resource constraints.
  • To highlight the broader impacts of efficient Transformers, including improved accessibility, reduced environmental costs, and expanded application domains.

Proposed method

  • Systematic review and classification of 30+ efficiency techniques and architectures targeting Transformer efficiency.
  • Categorization of methods into general neural network optimization (e.g., mixed-precision, pruning, distillation) and specialized Transformer variants with reduced attention complexity.
  • Analysis of architectural assumptions behind low-complexity models, such as sparse attention in Longformer, kernel approximation in Performer, and low-rank factorization in Linformer.
  • Evaluation of trade-offs between model expressiveness, inference speed, memory usage, and training stability across methods.
  • Use of empirical benchmarks and theoretical complexity analysis to compare methods, including relative effective context length (RECL) as a performance metric.
  • Recommendation framework based on task-specific constraints: pre-trained models for low-resource settings, and hybrid use of mixed-precision and gradient checkpointing for training from scratch.

Experimental results

Research questions

  • RQ1Which general efficiency techniques (e.g., mixed-precision, gradient checkpointing) offer the most practical benefits with minimal implementation cost?
  • RQ2How do specialized low-complexity Transformer variants (e.g., Reformer, Performer) reduce attention complexity while preserving performance?
  • RQ3What are the key assumptions and limitations of each low-complexity Transformer architecture, and when should they be preferred?
  • RQ4How do efficiency techniques interact with model scaling, and can they enable effective training of smaller models without sacrificing generalization?
  • RQ5What are the broader implications of efficient Transformers for research equity, environmental sustainability, and real-world deployment?

Key findings

  • Mixed-precision training and gradient checkpointing are recommended as simple, effective, and widely applicable techniques that significantly reduce memory and computation with minimal engineering effort.
  • Pre-trained models are strongly advised when available, as they offer high performance with minimal training cost and are often more efficient than training from scratch.
  • Specialized architectures like Longformer and Reformer enable long-context modeling by introducing sparse attention patterns, improving scalability beyond standard self-attention.
  • Performer and Linformer achieve linear or low-rank attention approximations, reducing quadratic complexity to linear or sub-quadratic, respectively, enabling faster inference on long sequences.
  • Despite their theoretical advantages, low-complexity models often require careful hyperparameter tuning and may underperform on tasks requiring high attention expressiveness.
  • The trend toward scaling large models (e.g., GPT-3, BERT) suggests that performance improves with size, but this is incompatible with efficiency goals—making efficient architectures essential for sustainable progress.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.