mlsanityData to 14 Oct 2026

Towards Coarse-to-Fine Evaluation of Inference Efficiency for Large Language Models

arXiv 2404.11502 ↗First posted 17 Apr 2024cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

In real world, large language models (LLMs) can serve as the assistant to help users accomplish their jobs, and also support the development of advanced applications. For the wide application of LLMs, the inference efficiency is an essential concern, which has been widely studied in existing work, and numerous optimization algorithms and code libraries have been proposed to improve it. Nonetheless, users still find it challenging to compare the effectiveness of all the above methods and understand the underlying mechanisms. In this work, we perform a detailed coarse-to-fine analysis of the inference performance of various code libraries. To evaluate the overall effectiveness, we examine four usage scenarios within two practical applications. We further provide both theoretical and empirical fine-grained analyses of each module in the Transformer architecture. Our experiments yield comprehensive results that are invaluable for researchers to evaluate code libraries and improve inference strategies.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 15 of its 26 references that are in the map. First posted on arXiv 17 Apr 2024.

Builds on

15 of 26 references.

References · 15

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  6. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  7. 2023A Survey of Large Language Modelscited by 2,576
  8. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  9. 2020GLU Variants Improve Transformercited by 1,804
  10. 2019Root Mean Square Layer Normalizationcited by 1,480
  11. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  12. 2022Efficiently Scaling Transformer Inferencecited by 539
3 more
  1. 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 102
  2. 2023Full Stack Optimization of Transformer Inference: a Surveycited by 80
  3. 2024Inferflow: an Efficient and Highly Configurable Inference Engine for Large Language Modelscited by 4

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.