LPU: A Latency-Optimized and Highly Scalable Processor for Large Language Model Inference

Seungjae Moon, Jung-Hoon Kim, Junsoo Kim, Seongmin Hong, Junseo Cha, Minsu Kim, Sukbin Lim, Gyubin Choi, Dongjin Seo, Jongho Kim, Hunjong Lee, Hyunjun Park, Ryeowook Ko, Soongyu Choi, Jongse Park, Jinwon Lee, Joo-Young KimarXiv 2024 · DOI

Introduction

Large Language Models (LLMs) have transformed artificial intelligence, yet their deployment remains constrained by significant hardware inefficiencies. LLM inference is fundamentally a memory-bound operation; processors often spend more time fetching model weights from memory than performing the actual computations. Traditional GPUs, designed for high-throughput parallel tasks, struggle with the sequential, small-batch nature of real-time text generation, often leading to hardware utilization below 30% for smaller models.

The iterative process of LLM inference, highlighting the summarization and generation stages that the LPU is designed to optimize.

The Latency Processing Unit (LPU) Architecture

To address these bottlenecks, HyperAccel developed the Latency Processing Unit (LPU), a domain-specific processor tailored for the Transformer decoder dataflow. The LPU architecture centers on three primary innovations:

  • Streamlined Memory Access (SMA): A specialized controller that links High Bandwidth Memory (HBM) directly to execution units, performing operations like matrix transposition on-the-fly to eliminate unnecessary latency.
  • Streamlined Execution Engine (SXE): Optimized Multiply-Accumulate (MAC) trees designed specifically for the vector-matrix multiplications inherent in LLMs.
  • Expandable Synchronization Link (ESL): A peer-to-peer communication technology that overlaps computation with data transfer. By hiding synchronization latency, ESL enables high-efficiency scaling across multiple devices.

Performance and Scalability

The LPU was evaluated using the Open Pre-trained Transformer (OPT) family (1.3B to 66B parameters) and GPT3-20B. In comparative tests against the NVIDIA H100, the LPU demonstrated superior memory bandwidth utilization and lower latency. While standard GPUs exhibit declining utilization as model sizes vary, the LPU achieves nearly 90% memory bandwidth utilization by matching compute units to available HBM bandwidth.

Memory bandwidth utilization of NVIDIA H100 GPUs, illustrating the efficiency gap that the LPU aims to close.

Key Results

  • Latency: The LPU achieved 1.25 ms/token for OPT-1.3B and 20.9 ms/token for OPT-66B, representing speedups of 2.09× and 1.37× over the H100, respectively.
  • Scalability: For GPT3-20B, an 8-chip LPU setup achieved 5.43× strong scaling, significantly outperforming the 2.65× scaling seen in DGX A100 systems.
  • Energy Efficiency: The LPU-based "Orion" servers provided 1.33× better energy efficiency (tokens/s/kW) than H100-based alternatives. The LPU core itself is highly efficient, consuming only ~284mW per chip on a 4nm process.

Conclusion and Future Directions

The LPU demonstrates that hardware specialization is essential for the next generation of AI inference. By focusing on the specific dataflow of Transformer decoders, the LPU overcomes the memory and synchronization taxes of general-purpose GPUs. Future work will explore multi-token batching modes and hybrid systems where GPUs handle compute-heavy pre-processing while LPUs manage sequential generation.

Summary updated

BibTeX
@misc{moon2024lpu,
  author = {Seungjae Moon and Jung-Hoon Kim and Junsoo Kim and Seongmin Hong and Junseo Cha and Minsu Kim and Sukbin Lim and Gyubin Choi and Dongjin Seo and Jongho Kim and Hunjong Lee and Hyunjun Park and Ryeowook Ko and Soongyu Choi and Jongse Park and Jinwon Lee and Joo-Young Kim},
  title = {{LPU: A Latency-Optimized and Highly Scalable Processor for Large Language Model Inference}},
  year = {2024},
  eprint = {2408.07326},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.07326},
}
Figure