Full Stack Optimization of Transformer Inference: a Survey
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
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
38 more
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014Going Deeper with Convolutionscited by 4,231
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2018DARTS: Differentiable Architecture Searchcited by 1,782
- 2021Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecastingcited by 1,654
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,489
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
- 2017Learning Transferable Architectures for Scalable Image Recognitioncited by 1,097
- 2016SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model sizecited by 1,054
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
- 2018MnasNet: Platform-Aware Neural Architecture Search for Mobilecited by 937
- 2018Regularized Evolution for Image Classifier Architecture Searchcited by 902
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 890
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2018Efficient Neural Architecture Search via Parameter Sharingcited by 831
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
- 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2018ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardwarecited by 666
- 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 636
- 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 610
- 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
Citing papers per year: 2023: 17; 2024: 33; 2025: 24; 2026: 5.
79 papers.
Sort:
By area:
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
- 2023ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Modelscited by 91
- 2024AI and Memory Wallcited by 89
- 2023Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipelinecited by 86
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
- 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partitioncited by 81
- 2023MatFormer: Nested Transformer for Elastic Inferencecited by 79
- 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 70
- 2023EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelismcited by 69
38 more
- 2024Towards Greener LLMs: Bringing Energy-Efficiency to the Forefront of LLM Inferencecited by 59
- 2023LLMCad: Fast and Scalable On-device Large Language Model Inferencecited by 45
- 2024CATS: Contextually-Aware Thresholding for Sparsity in Large Language Modelscited by 41
- 2023Predictive Pipelined Decoding: A Compute-Latency Trade-off for Exact LLM Decodingcited by 40
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 32
- 2025The ML.ENERGY Benchmark: Toward Automated Inference Energy Measurement and Optimizationcited by 31
- 2023Understanding the Potential of FPGA-Based Spatial Acceleration for Large Language Model Inferencecited by 29
- 2025QuantSpec: Self-Speculative Decoding with Hierarchical Quantized KV Cachecited by 26
- 2024Efficient and Scalable Estimation of Tool Representations in Vector Spacecited by 22
- 2023A Survey on Deep Learning Hardware Accelerators for Heterogeneous HPC Platformscited by 21
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
- 2024Lean Attention: Hardware-Aware Scalable Attention Mechanism for the Decode-Phase of Transformerscited by 16
- 2024BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Expertscited by 16
- 2023Transformers in Small Object Detection: A Benchmark and Survey of State-of-the-Artcited by 15
- 2024A Comprehensive Survey of Compression Algorithms for Language Modelscited by 15
- 2025ETS: Efficient Tree Search for Inference-Time Scalingcited by 15
- 2023ZeroQuant(4+2): Redefining LLMs Quantization with a New FP6-Centric Strategy for Diverse Generative Taskscited by 14
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Taskscited by 14
- 2024Model Quantization and Hardware Acceleration for Vision Transformers: A Comprehensive Surveycited by 13
- 2025Beyond Next-Token Prediction: A Performance Characterization of Diffusion versus Autoregressive Language Modelscited by 13
- 2024ProPD: Dynamic Token Tree Pruning and Generation for LLM Parallel Decodingcited by 12
- 2024Demystifying AI Platform Design for Distributed Inference of Next-Generation LLM modelscited by 12
- 2023GrowLength: Accelerating LLMs Pretraining by Progressively Growing Training Lengthcited by 11
- 2024FP6-LLM: Efficiently Serving Large Language Models Through FP6-Centric Algorithm-System Co-Designcited by 11
- 2025AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMscited by 8
- 2025A2ATS: Retrieval-Based KV Cache Reduction via Windowed Rotary Position Embedding and Query-Aware Vector Quantizationcited by 7
- 2023Language Modeling on a SpiNNaker 2 Neuromorphic Chipcited by 6
- 2023Conformer-Based Speech Recognition On Extreme Edge-Computing Devicescited by 6
- 2024SKIM: Any-bit Quantization Pushing The Limits of Post-Training Quantizationcited by 6
- 2025vAttention: Verified Sparse Attentioncited by 6
- 2024Towards Pareto Optimal Throughput in Small Language Model Servingcited by 5
- 2024Panacea: Novel DNN Accelerator using Accuracy-Preserving Asymmetric Quantization and Energy-Saving Bit-Slice Sparsitycited by 5
- 2025SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inferencecited by 5
- 2026Watt Counts: Energy-Aware Benchmark for Sustainable LLM Inference on Heterogeneous GPU Architecturescited by 5
- 2024Characterizing the Accuracy -- Efficiency Trade-off of Low-rank Decomposition in Language Modelscited by 4
- 2024Dynamic Vocabulary Pruning in Early-Exit LLMscited by 4
- 2025DP-LLM: Runtime Model Adaptation with Dynamic Layer-wise Precision Assignmentcited by 4
- 2025XQuant: Breaking the Memory Wall for LLM Inference with KV Cache Rematerializationcited by 4
50 most cited of 79 All 79 (JSON)
- 2026FrugalSOT - Frugal Search Over the Models21 Aug 2026
- 2026EdgeCIM: A Hardware-Software Co-Design for CIM-Based Acceleration of Small Language Models13 Apr 2026
- 2026Watt Counts: Energy-Aware Benchmark for Sustainable LLM Inference on Heterogeneous GPU Architectures10 Apr 2026
- 2026Learning to Remember, Learn, and Forget in Attention-Based Models9 Feb 2026
- 2026Compiler-Assisted Speculative Sampling for Accelerated LLM Inference on Heterogeneous Edge Devices8 Feb 2026
- 2025DCO: Dynamic Cache Orchestration for LLM Accelerators through Predictive Management8 Dec 2025
- 2025BitStopper: An Efficient Transformer Attention Accelerator via Stage-fusion and Early Termination6 Dec 2025
- 2025LAPA: Log-Domain Prediction-Driven Dynamic Sparsity Accelerator for Transformer Model26 Nov 2025
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization19 Nov 2025
- 2025FaRAccel: FPGA-Accelerated Defense Architecture for Efficient Bit-Flip Attack Resilience in Transformer Models28 Oct 2025
- 2025SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inference20 Oct 2025
- 2025AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMs12 Oct 2025
38 more
- 2025vAttention: Verified Sparse Attention7 Oct 2025
- 2025Beyond Next-Token Prediction: A Performance Characterization of Diffusion versus Autoregressive Language Models5 Oct 2025
- 2025SAIL: SRAM-Accelerated LLM Inference System with Lookup-Table-based GEMV30 Sep 2025
- 2025XQuant: Breaking the Memory Wall for LLM Inference with KV Cache Rematerialization14 Aug 2025
- 2025DP-LLM: Runtime Model Adaptation with Dynamic Layer-wise Precision Assignment8 Aug 2025
- 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generation28 Jun 2025
- 2025AWP: Activation-Aware Weight Pruning and Quantization with Projected Gradient Descent11 Jun 2025
- 2025Bayesian Attention Mechanism: A Probabilistic Framework for Positional Encoding and Context Length Extrapolation28 May 2025
- 2025The ML.ENERGY Benchmark: Toward Automated Inference Energy Measurement and Optimization9 May 2025
- 2025AccLLM: Accelerating Long-Context LLM Inference Via Algorithm-Hardware Co-Design7 Apr 2025
- 2025LLMPi: Optimizing LLMs for High-Throughput on Raspberry Pi2 Apr 2025
- 2025PIM-LLM: A High-Throughput Hybrid PIM Architecture for 1-bit LLMs31 Mar 2025
- 2025Adaptive Rank Allocation: Speeding Up Modern Transformers with RaNA Adapters23 Mar 2025
- 2025Changing Base Without Losing Pace: A GPU-Efficient Alternative to MatMul in DNNs15 Mar 2025
- 2025ETS: Efficient Tree Search for Inference-Time Scaling19 Feb 2025
- 2025A2ATS: Retrieval-Based KV Cache Reduction via Windowed Rotary Position Embedding and Query-Aware Vector Quantization18 Feb 2025
- 2025QuantSpec: Self-Speculative Decoding with Hierarchical Quantized KV Cache5 Feb 2025
- 2024Panacea: Novel DNN Accelerator using Accuracy-Preserving Asymmetric Quantization and Energy-Saving Bit-Slice Sparsity13 Dec 2024
- 2024IterL2Norm: Fast Iterative L2-Normalization6 Dec 2024
- 2024SKIM: Any-bit Quantization Pushing The Limits of Post-Training Quantization5 Dec 2024
- 2024Interactions Across Blocks in Post-Training Quantization of Large Language Models6 Nov 2024
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Tasks29 Oct 2024
- 2024Computational Bottlenecks of Training Small-scale Large Language Models25 Oct 2024
- 2024Dynamic Vocabulary Pruning in Early-Exit LLMs24 Oct 2024
- 2024BATON: Enhancing Batch-wise Inference Efficiency for Large Language Models via Dynamic Re-batching24 Oct 2024
- 2024Efficient and Scalable Estimation of Tool Representations in Vector Space2 Sep 2024
- 2024Matmul or No Matmul in the Era of 1-bit LLMs21 Aug 2024
- 2024BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Experts15 Aug 2024
- 2024Inference Optimizations for Large Language Models: Effects, Challenges, and Practical Considerations6 Aug 2024
- 2024GreenStableYolo: Optimizing Inference Time and Image Quality of Text-to-Image Generation20 Jul 2024
- 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inference19 Jul 2024
- 2024Demystifying AI Platform Design for Distributed Inference of Next-Generation LLM models3 Jun 2024
- 2024Lean Attention: Hardware-Aware Scalable Attention Mechanism for the Decode-Phase of Transformers17 May 2024
- 2024Characterizing the Accuracy -- Efficiency Trade-off of Low-rank Decomposition in Language Models10 May 2024
- 2024Trio-ViT: Post-Training Quantization and Acceleration for Softmax-Free Efficient Vision Transformer6 May 2024
- 2024Model Quantization and Hardware Acceleration for Vision Transformers: A Comprehensive Survey1 May 2024
- 2024Towards Coarse-to-Fine Evaluation of Inference Efficiency for Large Language Models17 Apr 2024
- 2024CATS: Contextually-Aware Thresholding for Sparsity in Large Language Models12 Apr 2024
50 newest of 79 All 79 (JSON)
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
- 2023Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipelinecited by 86
- 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partitioncited by 81
- 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 70
- 2023EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelismcited by 69
- 2025QuantSpec: Self-Speculative Decoding with Hierarchical Quantized KV Cachecited by 26
- 2024ProPD: Dynamic Token Tree Pruning and Generation for LLM Parallel Decodingcited by 12
- 2024Demystifying AI Platform Design for Distributed Inference of Next-Generation LLM modelscited by 12
- 2025A2ATS: Retrieval-Based KV Cache Reduction via Windowed Rotary Position Embedding and Query-Aware Vector Quantizationcited by 7
- 2026Watt Counts: Energy-Aware Benchmark for Sustainable LLM Inference on Heterogeneous GPU Architecturescited by 5
12 most cited of 16 All 16 (JSON)
- 2026Watt Counts: Energy-Aware Benchmark for Sustainable LLM Inference on Heterogeneous GPU Architectures10 Apr 2026
- 2026Compiler-Assisted Speculative Sampling for Accelerated LLM Inference on Heterogeneous Edge Devices8 Feb 2026
- 2025SAIL: SRAM-Accelerated LLM Inference System with Lookup-Table-based GEMV30 Sep 2025
- 2025XQuant: Breaking the Memory Wall for LLM Inference with KV Cache Rematerialization14 Aug 2025
- 2025A2ATS: Retrieval-Based KV Cache Reduction via Windowed Rotary Position Embedding and Query-Aware Vector Quantization18 Feb 2025
- 2025QuantSpec: Self-Speculative Decoding with Hierarchical Quantized KV Cache5 Feb 2025
- 2024Dynamic Vocabulary Pruning in Early-Exit LLMs24 Oct 2024
- 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inference19 Jul 2024
- 2024Demystifying AI Platform Design for Distributed Inference of Next-Generation LLM models3 Jun 2024
- 2024LLM Inference Unveiled: Survey and Roofline Model Insights26 Feb 2024
- 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partition23 Feb 2024
- 2024ProPD: Dynamic Token Tree Pruning and Generation for LLM Parallel Decoding21 Feb 2024
12 newest of 16 All 16 (JSON)
- 2025ETS: Efficient Tree Search for Inference-Time Scalingcited by 15
- 2025ETS: Efficient Tree Search for Inference-Time Scaling19 Feb 2025
- 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
- 2023ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Modelscited by 91
- 2024AI and Memory Wallcited by 89
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
- 2023MatFormer: Nested Transformer for Elastic Inferencecited by 79
- 2024Towards Greener LLMs: Bringing Energy-Efficiency to the Forefront of LLM Inferencecited by 59
- 2023LLMCad: Fast and Scalable On-device Large Language Model Inferencecited by 45
- 2024CATS: Contextually-Aware Thresholding for Sparsity in Large Language Modelscited by 41
- 2023Predictive Pipelined Decoding: A Compute-Latency Trade-off for Exact LLM Decodingcited by 40
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 32
- 2025The ML.ENERGY Benchmark: Toward Automated Inference Energy Measurement and Optimizationcited by 31
- 2023Understanding the Potential of FPGA-Based Spatial Acceleration for Large Language Model Inferencecited by 29
12 most cited of 59 All 59 (JSON)
- 2026FrugalSOT - Frugal Search Over the Models21 Aug 2026
- 2026EdgeCIM: A Hardware-Software Co-Design for CIM-Based Acceleration of Small Language Models13 Apr 2026
- 2026Learning to Remember, Learn, and Forget in Attention-Based Models9 Feb 2026
- 2025DCO: Dynamic Cache Orchestration for LLM Accelerators through Predictive Management8 Dec 2025
- 2025BitStopper: An Efficient Transformer Attention Accelerator via Stage-fusion and Early Termination6 Dec 2025
- 2025LAPA: Log-Domain Prediction-Driven Dynamic Sparsity Accelerator for Transformer Model26 Nov 2025
- 2025FaRAccel: FPGA-Accelerated Defense Architecture for Efficient Bit-Flip Attack Resilience in Transformer Models28 Oct 2025
- 2025SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inference20 Oct 2025
- 2025AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMs12 Oct 2025
- 2025vAttention: Verified Sparse Attention7 Oct 2025
- 2025Beyond Next-Token Prediction: A Performance Characterization of Diffusion versus Autoregressive Language Models5 Oct 2025
- 2025DP-LLM: Runtime Model Adaptation with Dynamic Layer-wise Precision Assignment8 Aug 2025
12 newest of 59 All 59 (JSON)