arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.18137cs.ARcs.AIcs.LG
收藏

AQPIM: 突破LLM的PIM容量墙:基于内存激活量化

AQPIM: Breaking the PIM Capacity Wall for LLMs with In-Memory Activation Quantization

Institute of Science Tokyo(东京科学研究院)

Kosuke Matsushima, Yasuyuki Okoshi, Masato Motomura, Daichi Fujiki

AI总结:

本文提出AQPIM,一种基于内存激活量化的PIM框架,通过聚类向量量化提升带宽和计算效率,显著减少内存占用和计算开销。

摘要:

Processing-in-Memory (PIM)架构为解决数据密集型机器学习的内存瓶颈提供了有前景的解决方案,但往往忽视激活内存占用的快速增长挑战。传统PIM方法在长上下文场景中因Transformer模型生成的大量KV缓存而难以应对,经常超出PIM的有限内存容量,而稀疏注意力等技术与PIM对数据局部性的需求冲突。现有PIM方法和量化方法往往不足或不适用于利用激活的特殊特性。本文识别了PIM专用激活量化的机会,以提升带宽和计算效率。我们探索了基于聚类的向量量化方法,这与激活特性及PIM内部带宽能力相匹配。基于此,我们引入AQPIM,一种基于Product Quantization (PQ)的新型PIM-aware激活量化框架,优化以适用于现代大语言模型(LLMs)。通过在内存中直接执行量化,AQPIM利用PIM的高内部带宽,并在压缩数据上直接进行计算,显著减少内存占用和注意力计算的计算开销。AQPIM通过引入几种算法优化解决PQ的精度问题。评估显示,AQPIM在性能上取得显著提升,大幅减少GPU-CPU通信,该通信可占解码延迟的90~98.5%,同时比最先进的PIM方法快3.4倍。

英文摘要:

Processing-in-Memory (PIM) architectures offer a promising solution to the memory bottlenecks in data-intensive machine learning, yet often overlook the growing challenge of activation memory footprint. Conventional PIM approaches struggle with massive KV cache sizes generated in long-context scenarios by Transformer-based models, frequently exceeding PIM's limited memory capacity, while techniques like sparse attention can conflict with PIM's need for data locality. Existing PIM approaches and quantization methods are often insufficient or poorly suited for leveraging the unique characteristics of activations. This work identifies an opportunity for PIM-specialized activation quantization to enhance bandwidth and compute efficiency. We explore clustering-based vector quantization approaches, which align well with activation characteristics and PIM's internal bandwidth capabilities. Building on this, we introduce AQPIM, a novel PIM-aware activation quantization framework based on Product Quantization (PQ), optimizing it for modern Large Language Models (LLMs). By performing quantization directly within memory, AQPIM leverages PIM's high internal bandwidth and enables direct computation on compressed data, significantly reducing both memory footprint and computational overhead for attention computation. AQPIM addresses PQ's accuracy challenges by introducing several algorithmic optimizations. Evaluations demonstrate that AQPIM achieves significant performance improvements, drastically reducing of GPU-CPU communication that can account for 90$\sim$98.5\% of decoding latency, together with 3.4$\times$ speedup over a SOTA PIM approach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑