FastFormers: Highly Efficient Transformer Models for Natural Language Understanding
Not on the map. Why?
Abstract (arXiv)
Transformer-based models are the state-of-the-art for Natural Language Understanding (NLU) applications. Models are getting bigger and better on various tasks. However, Transformer models remain computationally challenging since they are not efficient at inference-time compared to traditional approaches. In this paper, we present FastFormers, a set of recipes to achieve efficient inference-time performance for Transformer-based models on various NLU tasks. We show how carefully utilizing knowledge distillation, structured pruning and numerical optimization can lead to drastic improvements on inference efficiency. We provide effective recipes that can guide practitioners to choose the best settings for various NLU tasks and pretrained models. Applying the proposed recipes to the SuperGLUE benchmark, we achieve from 9.8x up to 233.9x speed-up compared to out-of-the-box models on CPU. On GPU, we also achieve up to 12.4x speed-up with the presented methods. We show that FastFormers can drastically reduce cost of serving 100 million requests from 4,223 USD to just 18 USD on an Azure F16s_v2 instance. This translates to a sustainable runtime by reducing energy consumption 6.9x - 125.8x according to the metrics used in the SustaiNLP 2020 shared task.
Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). First posted on arXiv 26 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 10; 2023: 5; 2024: 5; 2025: 3.
28 papers.
Sort:
By area:
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 219
- 2021Block Pruning For Faster Transformerscited by 176
- 2021Sparse is Enough in Scaling Transformerscited by 86
- 2021Prune Once for All: Sparse Pre-Trained Language Modelscited by 66
- 2022A Survey on Model Compression and Acceleration for Pretrained Language Modelscited by 45
- 2022Visual Attention Methods in Deep Learning: An In-Depth Surveycited by 37
- 2023HomoDistil: Homotopic Task-Agnostic Distillation of Pre-trained Transformerscited by 25
- 2023AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference with Transformerscited by 24
- 2023FineQuant: Unlocking Efficiency with Fine-Grained Weight-Only Quantization for LLMscited by 22
- 2021KroneckerBERT: Learning Kronecker Decomposition for Pre-trained Language Models via Knowledge Distillationcited by 19
- 2024SLMRec: Distilling Large Language Models into Small for Sequential Recommendationcited by 18
16 more
- 2022On the link between conscious function and general intelligence in humans and machinescited by 15
- 2022FAR: Fourier Aerial Video Recognitioncited by 10
- 2022A Theoretical View on Sparsely Activated Networkscited by 6
- 2023MoMA: Momentum Contrastive Learning with Multi-head Attention-based Knowledge Distillation for Histopathology Image Analysiscited by 6
- 2024Large Language Models Are Overparameterized Text Encoderscited by 6
- 2022SwiftPruner: Reinforced Evolutionary Pruning for Efficient Ad Relevancecited by 4
- 2022Investigating Neural Architectures by Synthetic Dataset Designcited by 3
- 2022SAMP: A Model Inference Toolkit of Post-Training Quantization for Text Processing via Self-Adaptive Mixed-Precisioncited by 3
- 2022Transformer with Memory Replaycited by 2
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systemscited by 2
- 2025Input Conditioned Layer Dropping in Speech Foundation Modelscited by 2
- 2022Building an Efficiency Pipeline: Commutativity and Cumulativeness of Efficiency Operators for Transformerscited by 1
- 2024Confidence Preservation Property in Knowledge Distillation Abstractionscited by 1
- 2024On Importance of Pruning and Distillation for Efficient Low Resource NLPcited by 1
- 2025On Multilingual Encoder Language Model Compression for Low-Resource Languagescited by 0
- 2025Restoring Rhythm: Punctuation Restoration Using Transformer Models for Bangla, A Low-Resource Languagecited by 0
- 2025Restoring Rhythm: Punctuation Restoration Using Transformer Models for Bangla, A Low-Resource Language24 Jul 2025
- 2025Input Conditioned Layer Dropping in Speech Foundation Models10 Jul 2025
- 2025On Multilingual Encoder Language Model Compression for Low-Resource Languages22 May 2025
- 2024Large Language Models Are Overparameterized Text Encoders18 Oct 2024
- 2024On Importance of Pruning and Distillation for Efficient Low Resource NLP21 Sep 2024
- 2024SLMRec: Distilling Large Language Models into Small for Sequential Recommendation28 May 2024
- 2024The Unreasonable Ineffectiveness of the Deeper Layers26 Mar 2024
- 2024Confidence Preservation Property in Knowledge Distillation Abstractions21 Jan 2024
- 2023MoMA: Momentum Contrastive Learning with Multi-head Attention-based Knowledge Distillation for Histopathology Image Analysis31 Aug 2023
- 2023FineQuant: Unlocking Efficiency with Fine-Grained Weight-Only Quantization for LLMs16 Aug 2023
- 2023AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference with Transformers28 Feb 2023
- 2023HomoDistil: Homotopic Task-Agnostic Distillation of Pre-trained Transformers19 Feb 2023
16 more
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems23 Jan 2023
- 2022SAMP: A Model Inference Toolkit of Post-Training Quantization for Text Processing via Self-Adaptive Mixed-Precision19 Sep 2022
- 2022SwiftPruner: Reinforced Evolutionary Pruning for Efficient Ad Relevance30 Aug 2022
- 2022A Theoretical View on Sparsely Activated Networks8 Aug 2022
- 2022Building an Efficiency Pipeline: Commutativity and Cumulativeness of Efficiency Operators for Transformers31 Jul 2022
- 2022Transformer with Memory Replay19 May 2022
- 2022Investigating Neural Architectures by Synthetic Dataset Design23 Apr 2022
- 2022Visual Attention Methods in Deep Learning: An In-Depth Survey16 Apr 2022
- 2022On the link between conscious function and general intelligence in humans and machines24 Mar 2022
- 2022FAR: Fourier Aerial Video Recognition21 Mar 2022
- 2022A Survey on Model Compression and Acceleration for Pretrained Language Models15 Feb 2022
- 2021Sparse is Enough in Scaling Transformers24 Nov 2021
- 2021Prune Once for All: Sparse Pre-Trained Language Models10 Nov 2021
- 2021KroneckerBERT: Learning Kronecker Decomposition for Pre-trained Language Models via Knowledge Distillation13 Sep 2021
- 2021Block Pruning For Faster Transformers10 Sep 2021
- 2021FNet: Mixing Tokens with Fourier Transforms9 May 2021
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 219
- 2024The Unreasonable Ineffectiveness of the Deeper Layers26 Mar 2024
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2021Block Pruning For Faster Transformerscited by 176
- 2021Sparse is Enough in Scaling Transformerscited by 86
- 2021Prune Once for All: Sparse Pre-Trained Language Modelscited by 66
- 2022A Survey on Model Compression and Acceleration for Pretrained Language Modelscited by 45
- 2022Visual Attention Methods in Deep Learning: An In-Depth Surveycited by 37
- 2023HomoDistil: Homotopic Task-Agnostic Distillation of Pre-trained Transformerscited by 25
- 2023AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference with Transformerscited by 24
- 2021KroneckerBERT: Learning Kronecker Decomposition for Pre-trained Language Models via Knowledge Distillationcited by 19
- 2024SLMRec: Distilling Large Language Models into Small for Sequential Recommendationcited by 18
- 2022On the link between conscious function and general intelligence in humans and machinescited by 15
- 2022FAR: Fourier Aerial Video Recognitioncited by 10
12 most cited of 24 All 24 (JSON)
- 2025Restoring Rhythm: Punctuation Restoration Using Transformer Models for Bangla, A Low-Resource Language24 Jul 2025
- 2025Input Conditioned Layer Dropping in Speech Foundation Models10 Jul 2025
- 2025On Multilingual Encoder Language Model Compression for Low-Resource Languages22 May 2025
- 2024Large Language Models Are Overparameterized Text Encoders18 Oct 2024
- 2024On Importance of Pruning and Distillation for Efficient Low Resource NLP21 Sep 2024
- 2024SLMRec: Distilling Large Language Models into Small for Sequential Recommendation28 May 2024
- 2023MoMA: Momentum Contrastive Learning with Multi-head Attention-based Knowledge Distillation for Histopathology Image Analysis31 Aug 2023
- 2023AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference with Transformers28 Feb 2023
- 2023HomoDistil: Homotopic Task-Agnostic Distillation of Pre-trained Transformers19 Feb 2023
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems23 Jan 2023
- 2022SAMP: A Model Inference Toolkit of Post-Training Quantization for Text Processing via Self-Adaptive Mixed-Precision19 Sep 2022
- 2022SwiftPruner: Reinforced Evolutionary Pruning for Efficient Ad Relevance30 Aug 2022
12 newest of 24 All 24 (JSON)