arXiv:2510.16040cs.ARcs.AI2025-10被引 9

Kelle通过软硬件协同设计,让边缘设备高效运行大模型。

Kelle: Co-design KV Caching and eDRAM for Efficient LLM Serving in Edge Computing

  • 用eDRAM存大模型的键值缓存,提升存储密度
  • 结合逐粒度内存淘汰与重计算,实现3.9倍加速、4.5倍省电
  • 适合资源受限的边缘智能设备部署

在边缘设备上运行大语言模型(LLM)对降低延迟、提升实时处理能力与隐私保护至关重要。通过本地推理,数据无需上传云端,实现快速响应并减少网络依赖。然而,边缘设备面临内存与算力有限的挑战,尤其在长文本输入时,键值(KV)缓存大小随序列长度线性增长,导致显著内存占用与访问开销。为缓解这一问题,本文提出使用嵌入式动态随机存取存储器(eDRAM)作为边缘设备上LLM服务的主要存储介质,其存储密度高于静态随机存取存储器(SRAM)。但eDRAM需周期性刷新以保证数据完整性,功耗较高。为此,我们提出软硬件协同优化方案Kelle,集成细粒度内存淘汰、重计算及刷新控制算法,在基于eDRAM的边缘系统中实现相比基线方案3.9倍的加速与4.5倍的能效提升。

原文摘要 · Abstract (English)

Running Large Language Models (LLMs) on edge devices is crucial for reducing latency, improving real-time processing, and enhancing privacy. By performing inference directly on the device, data does not need to be sent to the cloud, ensuring faster responses and reducing reliance on network connectivity. However, implementing LLMs on edge devices presents challenges, particularly with managing key-value (KV) caches, which plays a pivotal role in LLM serving. As the input text lengthens, the size of the KV cache increases linearly with the sequence length, leading to a significant memory footprint and data access costs. On the other hand, edge devices have limited memory and computational power, making it hard to store and efficiently access the large caches needed for LLM inference. To mitigate the substantial overhead caused by KV cache, we propose using embedded DRAM (eDRAM) as the primary storage for LLM serving in edge device, which offers higher storage density compared to SRAM. However, to ensure data integrity, eDRAM needs periodic refresh operations, which are power-intensive. To reduce eDRAM costs and improve overall system performance, we propose~\textit{Kelle}, a software-hardware co-design solution optimized for deploying LLMs on eDRAM-based edge systems. Combined with our fine-grained memory eviction, recomputation, and refresh control algorithms, the \textit{Kelle} accelerator delivers a $3.9\times$ speedup and $4.5\times$ energy savings compared to existing baseline solutions.

边缘计算大模型部署eDRAM缓存优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。