MI-LLM: Multiplier-Free LLM Inference on Commodity Processing-in-Memory Hardware

IF 4.9 2区 计算机科学 Q2 COMPUTER SCIENCE, HARDWARE & ARCHITECTURE
IEEE Transactions on Computers Pub Date : 2026-02-01 Epub Date: 2025-10-28 DOI:10.1109/TC.2025.3626449
Puyun Hu;Minhui Xie;Linjiang Li;Kuiyaohui Zhang;Erge Xiang;Jing Wang;Size Zheng;Xiao Zhang;Yunpeng Chai
{"title":"MI-LLM: Multiplier-Free LLM Inference on Commodity Processing-in-Memory Hardware","authors":"Puyun Hu;Minhui Xie;Linjiang Li;Kuiyaohui Zhang;Erge Xiang;Jing Wang;Size Zheng;Xiao Zhang;Yunpeng Chai","doi":"10.1109/TC.2025.3626449","DOIUrl":null,"url":null,"abstract":"Large language models (LLMs) are prominent for their superior ability in language understanding and generation. However, a notorious problem for LLM inference is low computational utilization caused by the memory bottleneck, since it typically requires large memory capacity and high bandwidth to process neural weights. By integrating processing cores into memory, Processing-In-Memory (PIM) architecture excels at alleviating memory bottleneck; with the recent release of the first commodity near-bank PIM hardware (NBP), PIM becomes off-the-shelf and shows great potential for accelerating LLM inference practically. However, simply shoehorning LLM inference on NBP can not achieve satisfactory performance due to its inherent limitations: weak compute performance, frequent cache misses caused by the limited working memory capacity, and poor inter-PIM-core communication bandwidth. To address these limitations, we propose <sc>MI-LLM</small>, an efficient system deploying LLM inference on NBP hardware. Its key idea is to build NBP-aware Lookup Tables (LUTs) and completely replace multiplications with lookups on LUTs, thereby mitigating the limitation of weak compute performance. 1) To reduce the model accuracy drop caused by the use of LUT, <sc>MI-LLM</small> tailors a learning-based LUT construction method to maintain the model accuracy. 2) To cope with frequent cache misses caused by LUT sizes far exceeding PIM working memory capacity, <sc>MI-LLM</small> introduces the design of PIM-aware linear kernel, with the optimization of intra-row and inter-row reordering enabled, to enhance LUT lookup locality. 3) <sc>MI-LLM</small> further proposes a model partitioning scheme to minimize inter-PIM-core communication. Kernel-level benchmarks reveal that <sc>MI-LLM</small> achieves a 9% throughput improvement and an 11% increase in energy efficiency over GPU implementations. Compared to FP8 quantization, <sc>MI-LLM</small> incurs only a 0.24 times increase in perplexity, demonstrating minimal accuracy degradation. Moreover, in our end-to-end evaluation, <sc>MI-LLM</small> requires 80% fewer ALU operation ticks per output token than the GPU baseline.","PeriodicalId":13087,"journal":{"name":"IEEE Transactions on Computers","volume":"75 2","pages":"503-515"},"PeriodicalIF":4.9000,"publicationDate":"2026-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Computers","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/11219263/","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/10/28 0:00:00","PubModel":"Epub","JCR":"Q2","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
引用次数: 0

Abstract

Large language models (LLMs) are prominent for their superior ability in language understanding and generation. However, a notorious problem for LLM inference is low computational utilization caused by the memory bottleneck, since it typically requires large memory capacity and high bandwidth to process neural weights. By integrating processing cores into memory, Processing-In-Memory (PIM) architecture excels at alleviating memory bottleneck; with the recent release of the first commodity near-bank PIM hardware (NBP), PIM becomes off-the-shelf and shows great potential for accelerating LLM inference practically. However, simply shoehorning LLM inference on NBP can not achieve satisfactory performance due to its inherent limitations: weak compute performance, frequent cache misses caused by the limited working memory capacity, and poor inter-PIM-core communication bandwidth. To address these limitations, we propose MI-LLM, an efficient system deploying LLM inference on NBP hardware. Its key idea is to build NBP-aware Lookup Tables (LUTs) and completely replace multiplications with lookups on LUTs, thereby mitigating the limitation of weak compute performance. 1) To reduce the model accuracy drop caused by the use of LUT, MI-LLM tailors a learning-based LUT construction method to maintain the model accuracy. 2) To cope with frequent cache misses caused by LUT sizes far exceeding PIM working memory capacity, MI-LLM introduces the design of PIM-aware linear kernel, with the optimization of intra-row and inter-row reordering enabled, to enhance LUT lookup locality. 3) MI-LLM further proposes a model partitioning scheme to minimize inter-PIM-core communication. Kernel-level benchmarks reveal that MI-LLM achieves a 9% throughput improvement and an 11% increase in energy efficiency over GPU implementations. Compared to FP8 quantization, MI-LLM incurs only a 0.24 times increase in perplexity, demonstrating minimal accuracy degradation. Moreover, in our end-to-end evaluation, MI-LLM requires 80% fewer ALU operation ticks per output token than the GPU baseline.
MI-LLM:基于内存中商品处理硬件的无乘法器LLM推理
大型语言模型以其卓越的语言理解和生成能力而著称。然而,LLM推理的一个臭名昭著的问题是由于内存瓶颈导致的低计算利用率,因为它通常需要大的内存容量和高带宽来处理神经权值。通过将处理核心集成到内存中,内存中处理(PIM)架构在缓解内存瓶颈方面表现出色;随着最近第一个商品近银行PIM硬件(NBP)的发布,PIM成为现成的,并显示出在实际中加速LLM推理的巨大潜力。然而,简单地在NBP上硬塞LLM推理并不能获得令人满意的性能,因为其固有的局限性:计算性能较弱,工作内存容量有限导致缓存丢失频繁,pim核间通信带宽差。为了解决这些限制,我们提出了MI-LLM,一个在NBP硬件上部署LLM推理的高效系统。其关键思想是构建支持nbp的查找表(lut),并用查找表上的查找完全取代乘法,从而减轻了计算性能薄弱的限制。1)为了减少由于使用LUT而导致的模型精度下降,MI-LLM定制了一种基于学习的LUT构建方法来保持模型精度。2)为了应对LUT大小远远超过PIM工作内存容量导致的频繁缓存丢失,MI-LLM引入了PIM感知的线性内核设计,启用了行内和行间重排序优化,增强了LUT查找局部性。3) MI-LLM进一步提出了一种模型划分方案,以减少pim核间的通信。内核级基准测试显示,与GPU实现相比,MI-LLM实现了9%的吞吐量改进和11%的能源效率提高。与FP8量化相比,MI-LLM的困惑度仅增加0.24倍,显示出最小的精度下降。此外,在我们的端到端评估中,MI-LLM每个输出令牌所需的ALU操作次数比GPU基线少80%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Computers
IEEE Transactions on Computers 工程技术-工程:电子与电气
CiteScore
6.60
自引率
5.40%
发文量
199
审稿时长
6.0 months
期刊介绍: The IEEE Transactions on Computers is a monthly publication with a wide distribution to researchers, developers, technical managers, and educators in the computer field. It publishes papers on research in areas of current interest to the readers. These areas include, but are not limited to, the following: a) computer organizations and architectures; b) operating systems, software systems, and communication protocols; c) real-time systems and embedded systems; d) digital devices, computer components, and interconnection networks; e) specification, design, prototyping, and testing methods and tools; f) performance, fault tolerance, reliability, security, and testability; g) case studies and experimental and theoretical evaluations; and h) new and important applications and trends.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书