Large Language Model Inference Acceleration: A Comprehensive Hardware Perspective
Authors:
- Jun LiuJLJun Liu
- Guohao DaiGDGuohao Dai
Preprint
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, which can point to the future trends and potential developments of generative LLMs and hardware technology for edge-side scenarios.Keywords
All Related Versions
This publication has 42 references indexed in Scilit:
- Efficient LLM Inference on CPUs2025
- Mobile Edge Intelligence for Large Language Models: A Contemporary SurveyIEEE Communications Surveys & Tutorials, 2025
- SOFA: A Compute-Memory Optimized Sparsity Accelerator via Cross-Stage Coordinated Tiling2024
- Cambricon-LLM: A Chiplet-Based Hybrid Architecture for On-Device Inference of 70B LLM2024
- PIM GPT a hybrid process in memory accelerator for autoregressive transformersnpj Unconventional Computing, 2024
- Exploiting Intel Advanced Matrix Extensions (AMX) for Large Language Model InferenceIEEE Computer Architecture Letters, 2024
- Unleashing the Potential of PIM: Accelerating Large Batched Inference of Transformer-Based Generative ModelsIEEE Computer Architecture Letters, 2023
- A 1ynm 1.25V 8Gb, 16Gb/s/pin GDDR6-based Accelerator-in-Memory supporting 1TFLOPS MAC Operation and Various Activation Functions for Deep-Learning Applications2022
- How many words do we read per minute? A review and meta-analysis of reading rateJournal of Memory and Language, 2019
- Ultra-Performance Pascal GPU and NVLink InterconnectIEEE Micro, 2017