Cheaply Evaluating Inference Efficiency Metrics for Autoregressive Transformer APIs
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) power many state-of-the-art systems in natural language processing. However, these models are extremely computationally expensive, even at inference time, raising the natural question: when is the extra cost of deploying a larger model worth the anticipated boost in capabilities? Better understanding this tradeoff fundamentally could benefit from an inference efficiency metric that is both (i) easily comparable across models from different providers, and (ii) representative of the true cost of running queries in an isolated performance environment. Unfortunately, access to LLMs today is largely restricted to black-box text generation APIs and raw runtimes measured through this interface do not satisfy these desiderata: model providers can apply various software and hardware optimizations orthogonal to the model, and models served on shared infrastructure are susceptible to performance contention. To circumvent these problems, we propose a new metric for comparing inference efficiency across models. This metric puts models on equal footing as though they were served (i) on uniform hardware and software, and (ii) without performance contention. We call this metric the idealized runtime, and we propose a methodology to efficiently estimate this metric for autoregressive Transformer models. We also propose cost-aware variants that incorporate the number of accelerators needed to serve the model. Using these metrics, we compare ten state-of-the-art LLMs to provide the first analysis of inference efficiency-capability tradeoffs; we make several observations from this analysis, including the fact that the superior inference runtime performance of certain APIs is often a byproduct of optimizations within the API rather than the underlying model. Our methodology also facilitates the efficient comparison of different software and hardware stacks.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 30 of its 42 references that are in the map. First posted on arXiv 3 May 2023.
Builds on
30 of 42 references.
References · 30
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
18 more
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
- 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 618
- 2021Carbon Emissions and Large Neural Network Trainingcited by 567
- 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 559
- 2020Towards the Systematic Reporting of the Energy and Carbon Footprints of Machine Learningcited by 249
- 2016An Analysis of Deep Neural Network Models for Practical Applicationscited by 116
- 2022What Language Model to Train if You Have One Million GPU Hours?cited by 92
- 2021RAFT: A Real-World Few-Shot Text Classification Benchmarkcited by 44
- 2018Constructing Fast Network through Deconstruction of Convolutioncited by 24
- 2020Towards Accurate and Reliable Energy Measurement of NLP Modelscited by 16
Built on by
Citing papers per year: 2023: 1; 2024: 2.
3 papers.
- 2023Holistic Evaluation of Text-To-Image Modelscited by 160
- 2024A Survey of Small Language Modelscited by 31
- 2024ELLEN: Extremely Lightly Supervised Learning For Efficient Named Entity Recognitioncited by 0
- 2024A Survey of Small Language Models25 Oct 2024
- 2024ELLEN: Extremely Lightly Supervised Learning For Efficient Named Entity Recognition26 Mar 2024
- 2023Holistic Evaluation of Text-To-Image Models7 Nov 2023