EdgeCIM: 一种基于CIM的边缘设备小型语言模型加速的软硬件协同设计
EdgeCIM: A Hardware-Software Co-Design for CIM-Based Acceleration of Small Language Models
AI总结:
本文提出EdgeCIM,一种针对边缘设备小型语言模型加速的软硬件协同设计框架,通过CIM宏和基于瓷砖的映射策略提升并行性并缓解DRAM带宽瓶颈,实现更高的吞吐量和能效。
摘要:
本文针对边缘设备上部署小型语言模型(SLMs)的需求,提出EdgeCIM,一种面向端到端解码-only推理的软硬件协同设计框架。现有加速器在处理预填充工作负载时效率较高,但在自回归解码阶段,GEMV操作因内存受限而效率低下,导致利用率低且能耗高。本文提出的EdgeCIM采用CIM宏和基于瓷砖的映射策略,在65nm工艺下实现平衡流水线阶段,最大化并行性并缓解DRAM带宽瓶颈。我们的模拟器支持对SLMs进行高达4B参数的设计空间探索,识别出在延迟和能耗方面的帕累托最优配置。与NVIDIA Orin Nano相比,EdgeCIM在LLaMA3.2-1B上实现了最高7.3倍的吞吐量和49.59倍更好的能效,在LLaMA3.2-3B上实现了9.95倍的吞吐量提升。在TinyLLaMA-1.1B、LLaMA3.2(1B、3B)、Phi-3.5-mini-3.8B、Qwen2.5(0.5B、1.5B、3B)、SmolLM2-1.7B、SmolLM3-3B和Qwen3(0.6B、1.7B、4B)等广泛基准测试中,我们的加速器在INT4精度下平均达到336.42 tokens/s和173.02 tokens/J的性能,证明了EdgeCIM在实时、低能耗边缘规模SLMs推理方面的竞争力。
英文摘要:
The growing demand for deploying Small Language Models (SLMs) on edge devices, including laptops, smartphones, automotive and robotic computing platforms, and high-performance embedded systems, has exposed fundamental inefficiencies in existing accelerators. While GPUs handle prefill workloads efficiently, the autoregressive decoding phase is dominated by GEMV operations that are inherently memory-bound, resulting in poor utilization and prohibitive energy costs at the edge. In this work, we present EdgeCIM, a hardware-software co-design framework for accelerating autoregressive decoding of SLMs on edge devices in latency-critical applications. At its core is a CIM macro, implemented in 65 nm, coupled with a tile-based mapping strategy that balances pipeline stages, maximizing parallelism while alleviating DRAM bandwidth bottlenecks. Our simulator enables design space exploration of SLMs up to 4B parameters, identifying hardware configurations that optimize latency and energy according to a configurable objective function. On LLaMA3.2 3B (INT4), EdgeCIM achieves 1.76x and 3.21x higher throughput than NVIDIA Jetson AGX Orin and Orin Nano Super operating in MAXN mode, respectively, and 7.07x higher throughput than Qualcomm's Snapdragon-X Elite. Extensive benchmarks on TinyLLaMA 1.1B, LLaMA3.2 (1B, 3B), Phi 3.5 mini 3.8B, Qwen2.5 (0.5B, 1.5B, 3B), SmolLM2 1.7B, SmolLM3 3B, and Qwen3 (0.6B, 1.7B, 4B) reveal that our accelerator, at INT4 precision, achieves on average 336.4 tokens/s and 173 tokens/J. These results establish EdgeCIM as a compelling solution towards real-time, energy-efficient, latency-critical SLM inference at the edge.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。