HBM Direct-KV Cache Processing in Compute-in-Memory Architectures: Decoupling for Accelerated LLM Inference
Abstract
The rapid development of Large Language Models (LLMs) has driven higher demands for their inference efficiency. As a key component of Transformer model inference, KV Cache has become a performance bottleneck due to its huge memory bandwidth and memory access latency [1]. This paper proposes an HBM Direct-KV Cache processing solution based on the Compute-in-Memory (CIM) architecture, aiming to significantly accelerate the LLM inference process through novel PD separation (Process-Data Separation) and EP separation (ExecutionPipeline Separation) technologies. We design and implement direct calculation of KV Cache data inside HBM, avoiding frequent data transmission between HBM and computing units [2]. PD separation decouples the KV Cache data processing logic from the main model calculation flow, allowing KV Cache operations to be executed in parallel on dedicated processing units inside HBM [3]. EP separation further refines the KV The cache processing pipeline decomposes different computation stages into independent execution units, achieving 2.3 times higher parallelism than PagedAttention. Through theoretical analysis, performance modeling, and pseudocode implementation, we demonstrate the significant potential of this approach in reducing memory bandwidth requirements, lowering memory access latency, and improving inference throughput.
BibTeX
@misc{wang2025hbm,
author = {Lei Wang and Da Gao and Yan Wang},
title = {{HBM Direct-KV Cache Processing in Compute-in-Memory Architectures: Decoupling for Accelerated LLM Inference}},
year = {2025},
doi = {10.1109/imcec66174.2025.11331697},
}Ask Althea to put this paper to the test.
Loading related content...