PIMphony: Overcoming Bandwidth and Capacity Inefficiency in PIM-based Long-Context LLM Inference System

Hyucksung Kwon, Kyungmo Koo, Janghyeon Kim, Woongkyu Lee, Minjae Lee +17 more
12/28/2024
cs.ARcs.AI

No confident code implementation found for this paper.

Abstract

The expansion of long-context Large Language Models (LLMs) creates significant memory system challenges. While Processing-in-Memory (PIM) is a promising accelerator, we identify that it suffers from critical inefficiencies when scaled to long contexts: severe channel underutilization, performance-limiting I/O bottlenecks, and massive memory waste from static KV cache management. In this work, we propose PIMphony, a PIM orchestrator that systematically resolves these issues with three co-designed techniques. First, Token-Centric PIM Partitioning (TCP) ensures high channel utilization regardless of batch size. Second, Dynamic PIM Command Scheduling (DCS) mitigates the I/O bottleneck by overlapping data movement and computation. Finally, a Dynamic PIM Access (DPA) controller enables dynamic memory management to eliminate static memory waste. Implemented via an MLIR-based compiler and evaluated on a cycle-accurate simulator, PIMphony significantly improves throughput for long-context LLM inference (up to 72B parameters and 1M context length). Our evaluations show performance boosts of up to 11.3x on PIM-only systems and 8.4x on xPU+PIM systems, enabling more efficient deployment of LLMs in real-world long-context applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kwon2024pimphony,
  title  = {PIMphony: Overcoming Bandwidth and Capacity Inefficiency in PIM-based Long-Context LLM Inference System},
  author = {Hyucksung Kwon and Kyungmo Koo and Janghyeon Kim and Woongkyu Lee and Minjae Lee and Gyeonggeun Jung and Hyungdeok Lee and Yousub Jung and Jaehan Park and Yosub Song and Byeongsu Yang and Haerang Choi and Guhyun Kim and Jongsoon Won and Woojae Shin and Changhyun Kim and Gyeongcheol Shin and Yongkee Kwon and Ilkon Kim and Euicheol Lim and John Kim and Jungwook Choi},
  year   = {2024},
  eprint = {2412.20166},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.20166v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.20166.svg)](https://codeofpaper.com/paper/2412.20166)

Discussion