Skip to main content
QUICK REVIEW

[Paper Review] Large Language Model Inference Acceleration: A Comprehensive Hardware Perspective

Jinhao Li, Jiaming Xu|arXiv (Cornell University)|Oct 6, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper provides a comprehensive survey of hardware-aware optimization techniques for accelerating inference in generative large language models (LLMs) across CPUs, GPUs, FPGAs, ASICs, and PIM/NDP platforms. It evaluates quantization, sparsity, operator optimization, and heterogeneous cooperation, demonstrating that operator optimization on ASICs achieves up to 1800 tokens/s with 18.557 tokens/J energy efficiency, while PIM/NDP with quantization reaches 1998 tokens/s and 46.66 tokens/J, highlighting critical trade-offs in speed, power, and efficiency for edge deployment.

ABSTRACT

Large Language Models (LLMs) have demonstrated remarkable capabilities across various fields, from natural language understanding to text generation. Compared to non-generative LLMs like BERT and DeBERTa, generative LLMs like GPT series and Llama series are currently the main focus due to their superior algorithmic performance. The advancements in generative LLMs are closely intertwined with the development of hardware capabilities. Various hardware platforms exhibit distinct hardware characteristics, which can help improve LLM inference performance. Therefore, this paper comprehensively surveys efficient generative LLM inference on different hardware platforms. First, we provide an overview of the algorithm architecture of mainstream generative LLMs and delve into the inference process. Then, we summarize different optimization methods for different platforms such as CPU, GPU, FPGA, ASIC, and PIM/NDP, and provide inference results for generative LLMs. Furthermore, we perform a qualitative and quantitative comparison of inference performance with batch sizes 1 and 8 on different hardware platforms by considering hardware power consumption, absolute inference speed (tokens/s), and energy efficiency (tokens/J). We compare the performance of the same optimization methods across different hardware platforms, the performance across different hardware platforms, and the performance of different methods on the same hardware platform. This provides a systematic and comprehensive summary of existing inference acceleration work by integrating software optimization methods and hardware platforms. We point out that three trends (multimodality, inference-time compute, and higher inference energy efficiency) are promising to redefine the capabilities of edge artificial intelligence systems. Our project is available at https://dai.sjtu.edu.cn/project.html.

Motivation & Objective

  • To systematically analyze and compare inference optimization techniques for generative LLMs across diverse hardware platforms.
  • To evaluate the performance trade-offs between absolute inference speed (tokens/s), power consumption, and energy efficiency (tokens/J) on CPUs, GPUs, FPGAs, ASICs, and PIM/NDP.
  • To identify the most effective optimization methods—such as quantization, sparsity, and operator optimization—for different hardware platforms under varying batch sizes (1 and 8).
  • To assess the feasibility of deploying LLMs on edge devices, including AI smartphones and robots, under strict power and speed constraints.
  • To guide future hardware-software co-design by identifying trends and potential directions for efficient LLM inference in edge-side scenarios.

Proposed method

  • The study conducts a systematic survey of mainstream generative LLM architectures and their inference processes, focusing on model size evolution and computational demands.
  • It evaluates platform-specific optimization techniques: quantization, sparsity, operator optimization, fast decoding, and heterogeneous cooperation across CPUs, GPUs, FPGAs, ASICs, and PIM/NDP.
  • Performance is benchmarked using three key metrics: absolute inference speed (tokens/s), power consumption, and energy efficiency (tokens/J) at batch sizes 1 and 8.
  • Quantitative comparisons are performed across platforms to assess method effectiveness, hardware suitability, and efficiency trade-offs.
  • The analysis includes real-world edge deployment scenarios—AI smartphones (≤10W, ~10 tokens/s) and robots (20W, 100–1000 tokens/s)—to evaluate practical feasibility.
  • Results are derived from published benchmarks and simulations, with a focus on pre-silicon and post-silicon validation gaps for emerging platforms.
Figure 1: Typical LLM model size in the past six years.
Figure 1: Typical LLM model size in the past six years.

Experimental results

Research questions

  • RQ1Which hardware platforms and optimization techniques deliver the highest inference speed and energy efficiency for generative LLMs at batch size 1?
  • RQ2How do the same optimization methods (e.g., quantization, sparsity) perform across different hardware platforms (CPU, GPU, FPGA, ASIC, PIM/NDP)?
  • RQ3What are the performance trade-offs between speed, power, and energy efficiency for LLM inference on edge devices such as smartphones and robots?
  • RQ4How do different optimization strategies (e.g., operator optimization vs. quantization) compare in terms of absolute speed and energy efficiency on ASIC and PIM/NDP platforms?
  • RQ5To what extent can current pre-silicon designs meet the real-time inference demands of robotics applications (100–1000 tokens/s, ~20W)?

Key findings

  • On ASIC platforms, operator optimization achieves the highest absolute inference speed at approximately 1800 tokens/s, with 18.557 tokens/J energy efficiency, outperforming sparsity (42.664 tokens/s, 1.421 tokens/J) and quantization (161.086 tokens/s, 7.434 tokens/J).
  • On PIM/NDP platforms, quantization achieves the highest throughput (1998 tokens/s) and energy efficiency (46.66 tokens/J), significantly outperforming fast decoding (174.018 tokens/s, 9.94 tokens/J) and heterogeneous cooperation (330 tokens/s, 4.34 tokens/J).
  • For batch size 8, heterogeneous cooperation on PIM/NDP achieves 3000 tokens/s with 40 tokens/J, the highest among all configurations, indicating strong scalability for high-throughput workloads.
  • On GPU platforms, operator optimization achieves ~1033 tokens/s at 2.3275 tokens/J, outperforming sparsity (290 tokens/s, 0.725 tokens/J) and quantization (1000 tokens/s, 3.155 tokens/J).
  • For edge AI smartphones (≤10W), quantization-based optimization on CPUs and ASICs enables inference speeds around 10 tokens/s, meeting typical user reading speeds while staying within power budgets.
  • Robotics applications (100–1000 tokens/s, ~20W) remain challenging: while pre-silicon designs like Guo et al. [127] and SpecPIM [168] show promise in simulation, post-silicon validation is still pending, indicating a gap between simulation and real-world deployment.
Figure 2: LLM inference includes prefill and decode stages. During inference in daily scenarios (input tokens: 128 $\leq$ I $\leq$ 256, output tokens: O $\geq$ 32), the time of decode stage is dominant.
Figure 2: LLM inference includes prefill and decode stages. During inference in daily scenarios (input tokens: 128 $\leq$ I $\leq$ 256, output tokens: O $\geq$ 32), the time of decode stage is dominant.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.