arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.09201cs.ARcs.DC
收藏

SLIM:一种通过自适应阈值化在边缘侧推理稀疏大语言模型的异构加速器

SLIM: A Heterogeneous Accelerator for Edge Inference of Sparse Large Language Model via Adaptive Thresholding

Weihong Xu, Haein Choi, Po-kai Hsu, Shimeng Yu, Tajana Rosing

AI总结:

提出SLIM算法-硬件协同设计,通过自适应阈值化算法利用LLM稀疏性并结合NSP与PIM异构架构,大幅减少数据移动与能耗,在边缘设备上实现了显著的吞吐量和能效提升。

摘要:

大语言模型(LLMs)在理解和生成人类语言方面表现出色,但由于模型规模庞大以及前馈网络(FFN)和多头注意力(MHA)层中存在内存密集型操作,在资源受限的嵌入式设备上实现高效推理仍具挑战。尽管现有加速器将LLM推理卸载至昂贵的异构计算系统,但它们未能利用LLM操作中固有的显著稀疏性,导致硬件资源利用率不足。我们提出SLIM,一种针对边缘设备上稀疏LLM服务进行优化的算法-硬件协同设计。SLIM通过自适应阈值化算法利用LLM稀疏性,实现运行时可配置的稀疏度且精度损失可忽略,仅获取激活神经元以大幅减少数据移动。我们的异构硬件架构战略性地结合了近存储处理(NSP)和存内处理(PIM):FFN权重存储在高密度3D NAND中并使用NSP单元计算,而内存密集型的MHA操作在PIM模块中处理。该设计显著减少了内存占用、数据移动和能耗。全面评估证明了SLIM的有效性,与SSD-GPU系统相比实现了13-18倍的吞吐量提升,与DRAM-GPU系统相比实现了9-10倍的能效提升,同时保持低延迟,使高性价比的LLM部署在边缘计算环境中成为可能。

英文摘要:

Large language models (LLMs) have demonstrated exceptional proficiency in understanding and generating human language, but efficient inference on resource-constrained embedded devices remains challenging due to large model sizes and memory-intensive operations in feedforward network (FFN) and multi-head attention (MHA) layers. While existing accelerators offload LLM inference to expensive heterogeneous computing systems, they fail to exploit the significant sparsity inherent in LLM operations, leaving hardware resources underutilized. We propose SLIM, an algorithm-hardware co-design optimized for sparse LLM serving on edge devices. SLIM exploits LLM sparsity through an adaptive thresholding algorithm that enables runtime-configurable sparsity with negligible accuracy loss, fetching only activated neurons to dramatically reduce data movement. Our heterogeneous hardware architecture strategically combines near-storage processing (NSP) and processing-in-memory (PIM): FFN weights are stored in high-density 3D NAND and computed using NSP units, while memory-intensive MHA operations are processed in PIM modules. This design significantly reduces memory footprint, data movement, and energy consumption. Our comprehensive evaluation demonstrates SLIM's effectiveness, achieving 13-18x throughput improvements over SSD-GPU systems and 9-10x better energy efficiency over DRAM-GPU systems while maintaining low latency, making cost-effective LLM deployment viable for edge computing environments.

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

↑