PAPI: Exploiting Dynamic Parallelism in Large Language Model Decoding with a Processing-In-Memory-Enabled Computing System
Large language models (LLMs) are widely used for natural language understanding and text generation. An LLM model relies on a time-consuming step called LLM decoding to generate output tokens. Several prior works focus on improving the performance of LLM decoding using parallelism techniques, such as batching and speculative decoding. State-of-the-art LLM decoding has both compute-bound and memory-bound kernels. Some prior works statically identify and map these different kernels to a heterogeneous architecture consisting of both processing-in-memory (PIM) units and computation-centric accelerators (e.g., GPUs). We observe that characteristics of LLM decoding kernels (e.g., whether or not a kernel is memory-bound) can change dynamically due to parameter changes to meet user and/or system demands, making (1) static kernel mapping to PIM units and computation-centric accelerators suboptimal, and (2) one-size-fits-all approach of designing PIM units inefficient due to a large degree of heterogeneity even in memory-bound kernels.
Authors
- Mohammad Sadrosadati (ORCID: https://orcid.org/0000-0002-4029-0175)
- Haiyu Mao (ORCID: https://orcid.org/0000-0002-7393-4504)
- Xiaowei Li (ORCID: https://orcid.org/0000-0002-0874-814X)
- Christina Giannoula (ORCID: https://orcid.org/0000-0003-0162-4547)
- Juan Gómez-Luna (ORCID: https://orcid.org/0000-0002-6514-1571)
- Onur Mutlu (ORCID: https://orcid.org/0000-0002-0075-2312)
- Yintao He (ORCID: https://orcid.org/0000-0003-3054-0617)
- Ying Wang (ORCID: https://orcid.org/0000-0001-5172-4736)
- Huawei Li (ORCID: https://orcid.org/0000-0001-8082-4218)
Institutions
- King's College London (GB)
- University of Toronto (CA)
- ETH Zurich (CH)
- Institute of Computing Technology (CN)
- Vector Institute (CA)
- University of Chinese Academy of Sciences (CN)
Publication Details
- Published
- 2025-03-27
- DOI
- https://doi.org/10.1145/3676641.3716009
- Citations
- 18
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 40.85