SHIELD:一种用于边缘NPUs上高效LLM推断的分段分层内存架构
SHIELD: A Segmented Hierarchical Memory Architecture for Energy-Efficient LLM Inference on Edge NPUs
AI总结:
SHIELD通过分段eDRAM架构优化边缘NPUs上LLM推断的能效,减少eDRAM刷新能耗35%同时保持准确性。
摘要:
大型语言模型(LLM)在边缘神经处理单元(NPUs)上的推断本质上受到片上内存容量的限制。尽管高密度嵌入式DRAM(eDRAM)适合存储激活工作区,但其周期性刷新消耗大量能量。先前工作主要集中在减少离散通道交通或优化持久化键值(KV)缓存的刷新,而瞬时且抗误差的查询和注意力输出(QO)激活被忽视。我们提出了SHIELD,一种生命周期感知的分段eDRAM架构,联合利用BF16激活中的时间驻留性和位级敏感性。SHIELD将符号和指数字段与尾数分离,禁用瞬时QO尾数的刷新,并对持久化KV尾数应用放松刷新。在多个LLM和推断场景中,SHIELD相比标准刷新基线减少了35%的eDRAM刷新能耗,同时在WikiText-2、PIQA和ARC-Easy上保持准确性。
英文摘要:
Large Language Model (LLM) inference on edge Neural Processing Units (NPUs) is fundamentally constrained by limited on-chip memory capacity. Although high-density embedded DRAM (eDRAM) is attractive for storing activation workspaces, its periodic refresh consumes substantial energy. Prior work has primarily focused on reducing off-chip traffic or optimizing refresh for persistent Key-Value (KV) caches, while transient and error-resilient Query and Attention Output (QO) activations are largely overlooked. We propose SHIELD, a lifecycle-aware segmented eDRAM architecture that jointly exploits temporal residency and bit-level sensitivity in bfloat16 (BF16) activations. SHIELD isolates the sign and exponent fields from the mantissa, disables refresh for transient QO mantissas, and applies relaxed refresh to persistent KV mantissas. Across multiple LLMs and inference scenarios, SHIELD reduces eDRAM refresh energy by 35% relative to a standard-refresh baseline while preserving accuracy on WikiText-2, PIQA, and ARC-Easy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。