mlsanityData to 7 Oct 2026

Full Stack Optimization of Transformer Inference: a Survey

arXiv 2302.14017 ↗First posted 27 Feb 2023cs.CL cs.LGcited by 79

Not on the map. Why?

Abstract (arXiv)

Recent advances in state-of-the-art DNN architecture design have been moving toward Transformer models. These models achieve superior accuracy across a wide range of applications. This trend has been consistent over the past several years since Transformer models were originally introduced. However, the amount of compute and bandwidth required for inference of recent Transformer models is growing at a significant rate, and this has made their deployment in latency-sensitive applications challenging. As such, there has been an increased focus on making Transformer models more efficient, with methods that range from changing the architecture design, all the way to developing dedicated domain-specific accelerators. In this work, we survey different approaches for efficient Transformer inference, including: (i) analysis and profiling of the bottlenecks in existing Transformer architectures and their similarities and differences with previous convolutional models; (ii) implications of Transformer architecture on hardware, including the impact of non-linear operations such as Layer Normalization, Softmax, and GELU, as well as linear operations, on hardware design; (iii) approaches for optimizing a fixed Transformer architecture; (iv) challenges in finding the right mapping and scheduling of operations for Transformer models; and (v) approaches for optimizing Transformer models by adapting the architecture using neural architecture search. Finally, we perform a case study by applying the surveyed optimizations on Gemmini, the open-source, full-stack DNN accelerator generator, and we show how each of these approaches can yield improvements, compared to previous benchmark results on Gemmini. Among other things, we find that a full-stack co-design approach with the aforementioned methods can result in up to 88.7x speedup with a minimal performance degradation for Transformer inference.

Key facts. Cited by 79 papers in the map (data through 7 Oct 2026). Builds on 145 of its 249 references that are in the map. First posted on arXiv 27 Feb 2023.

Builds on

145 of 249 references.

References · 145

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  7. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  8. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  9. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  10. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  11. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  12. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
38 more
  1. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  2. 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
  3. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  4. 2014Going Deeper with Convolutionscited by 4,231
  5. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  6. 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
  7. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  8. 2016Pointer Sentinel Mixture Modelscited by 2,992
  9. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  10. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  11. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  12. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  13. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
  14. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  15. 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
  16. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  17. 2018DARTS: Differentiable Architecture Searchcited by 1,782
  18. 2021Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecastingcited by 1,654
  19. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
  20. 2016Neural Architecture Search with Reinforcement Learningcited by 1,489
  21. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
  22. 2017Learning Transferable Architectures for Scalable Image Recognitioncited by 1,097
  23. 2016SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model sizecited by 1,054
  24. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
  25. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
  26. 2018MnasNet: Platform-Aware Neural Architecture Search for Mobilecited by 937
  27. 2018Regularized Evolution for Image Classifier Architecture Searchcited by 902
  28. 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 890
  29. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  30. 2018Efficient Neural Architecture Search via Parameter Sharingcited by 831
  31. 2019Are Sixteen Heads Really Better than One?cited by 803
  32. 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
  33. 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
  34. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  35. 2018ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardwarecited by 666
  36. 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 636
  37. 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 610
  38. 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 557

50 most cited of 145 All 145 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 17; 2024: 33; 2025: 24; 2026: 5.

79 papers.

Sort:

By area:

  1. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
  2. 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
  3. 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
  4. 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
  5. 2023ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Modelscited by 91
  6. 2024AI and Memory Wallcited by 89
  7. 2023Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipelinecited by 86
  8. 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
  9. 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partitioncited by 81
  10. 2023MatFormer: Nested Transformer for Elastic Inferencecited by 79
  11. 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 70
  12. 2023EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelismcited by 69
38 more
  1. 2024Towards Greener LLMs: Bringing Energy-Efficiency to the Forefront of LLM Inferencecited by 59
  2. 2023LLMCad: Fast and Scalable On-device Large Language Model Inferencecited by 45
  3. 2024CATS: Contextually-Aware Thresholding for Sparsity in Large Language Modelscited by 41
  4. 2023Predictive Pipelined Decoding: A Compute-Latency Trade-off for Exact LLM Decodingcited by 40
  5. 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 32
  6. 2025The ML.ENERGY Benchmark: Toward Automated Inference Energy Measurement and Optimizationcited by 31
  7. 2023Understanding the Potential of FPGA-Based Spatial Acceleration for Large Language Model Inferencecited by 29
  8. 2025QuantSpec: Self-Speculative Decoding with Hierarchical Quantized KV Cachecited by 26
  9. 2024Efficient and Scalable Estimation of Tool Representations in Vector Spacecited by 22
  10. 2023A Survey on Deep Learning Hardware Accelerators for Heterogeneous HPC Platformscited by 21
  11. 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
  12. 2024Lean Attention: Hardware-Aware Scalable Attention Mechanism for the Decode-Phase of Transformerscited by 16
  13. 2024BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Expertscited by 16
  14. 2023Transformers in Small Object Detection: A Benchmark and Survey of State-of-the-Artcited by 15
  15. 2024A Comprehensive Survey of Compression Algorithms for Language Modelscited by 15
  16. 2025ETS: Efficient Tree Search for Inference-Time Scalingcited by 15
  17. 2023ZeroQuant(4+2): Redefining LLMs Quantization with a New FP6-Centric Strategy for Diverse Generative Taskscited by 14
  18. 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Taskscited by 14
  19. 2024Model Quantization and Hardware Acceleration for Vision Transformers: A Comprehensive Surveycited by 13
  20. 2025Beyond Next-Token Prediction: A Performance Characterization of Diffusion versus Autoregressive Language Modelscited by 13
  21. 2024ProPD: Dynamic Token Tree Pruning and Generation for LLM Parallel Decodingcited by 12
  22. 2024Demystifying AI Platform Design for Distributed Inference of Next-Generation LLM modelscited by 12
  23. 2023GrowLength: Accelerating LLMs Pretraining by Progressively Growing Training Lengthcited by 11
  24. 2024FP6-LLM: Efficiently Serving Large Language Models Through FP6-Centric Algorithm-System Co-Designcited by 11
  25. 2025AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMscited by 8
  26. 2025A2ATS: Retrieval-Based KV Cache Reduction via Windowed Rotary Position Embedding and Query-Aware Vector Quantizationcited by 7
  27. 2023Language Modeling on a SpiNNaker 2 Neuromorphic Chipcited by 6
  28. 2023Conformer-Based Speech Recognition On Extreme Edge-Computing Devicescited by 6
  29. 2024SKIM: Any-bit Quantization Pushing The Limits of Post-Training Quantizationcited by 6
  30. 2025vAttention: Verified Sparse Attentioncited by 6
  31. 2024Towards Pareto Optimal Throughput in Small Language Model Servingcited by 5
  32. 2024Panacea: Novel DNN Accelerator using Accuracy-Preserving Asymmetric Quantization and Energy-Saving Bit-Slice Sparsitycited by 5
  33. 2025SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inferencecited by 5
  34. 2026Watt Counts: Energy-Aware Benchmark for Sustainable LLM Inference on Heterogeneous GPU Architecturescited by 5
  35. 2024Characterizing the Accuracy -- Efficiency Trade-off of Low-rank Decomposition in Language Modelscited by 4
  36. 2024Dynamic Vocabulary Pruning in Early-Exit LLMscited by 4
  37. 2025DP-LLM: Runtime Model Adaptation with Dynamic Layer-wise Precision Assignmentcited by 4
  38. 2025XQuant: Breaking the Memory Wall for LLM Inference with KV Cache Rematerializationcited by 4

50 most cited of 79 All 79 (JSON)