arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.18750cs.AR
收藏

HillInfer: 在边缘设备上通过智能SSD实现高效长上下文LLM推理的分层KV淘汰

HillInfer: Efficient Long-Context LLM Inference on the Edge with Hierarchical KV Eviction using SmartSSD

University of Science and Technology of China(中国科学技术大学);University of Hong Kong(香港大学);University of Macau(澳门大学)

He Sun, Shinan Liu, Li Li, Mingjun Xiao

AI总结:

本文提出HillInfer框架,通过智能SSD实现轻量级KV淘汰,结合分层KV缓存管理与自适应预取管道,提升边缘设备长上下文LLM推理效率与I/O性能。

摘要:

在内存受限的AI个人电脑(AIPCs)上部署大型语言模型(LLMs)可实现低延迟、隐私保护的推理,但长上下文生成受限于Key-Value(KV)缓存线性增长。尽管动态KV淘汰缓解了内存瓶颈,现有卸载策略要么在标准SSD上触发PCIe I/O瓶颈,要么因强制在单个弱计算存储驱动(CSD)上执行计算密集型精确注意力而耗尽FPGA资源。本文提出HillInfer,一种CSD辅助的KV淘汰框架,引入范式转变:将严格轻量级令牌重要性评估卸载到AIPCs上的单个CSD(如SmartSSD)。为了充分利用此轻量级卸载策略,HillInfer orchestrate了一种分层KV缓存管理器(HKM),利用时间局部性和动态令牌命中率,将缓存池物理划分,从而消除跨设备I/O震荡。此外,我们设计了一种自适应预取基于流水线(APP),自适应平衡主机CPU与SmartSSD之间的评估工作负载,有效掩盖异构straggler效应。最后,我们引入基于CSD的评估配置(CEC)以在FPGA上实现资源高效的近数据处理。在商用AIPC上的大量实验表明,HillInfer在状态-of-the-art基线之上实现了高达8.56$\times$的加速,实现了低延迟、I/O高效的长上下文推理,而无需牺牲模型准确性。

英文摘要:

Deploying Large Language Models (LLMs) on memory-constrained AI Personal Computers (AIPCs) enables low-latency, privacy-preserving inference, but long-context generation is fundamentally bottlenecked by the linearly growing Key-Value (KV) cache. While dynamic KV eviction mitigates this memory wall, existing offloading strategies either trigger crippling PCIe I/O bottlenecks on standard SSDs or suffer from FPGA resource exhaustion by forcing compute-intensive exact attention on a single, weak Computational Storage Drive (CSD). In this paper, we propose HillInfer, a CSD-assisted KV eviction framework that introduces a paradigm shift: offloading strictly lightweight token importance evaluation to a single CSD (e.g., SmartSSD) on AIPCs. To fully capitalize on this lightweight offloading strategy, HillInfer orchestrates a Hierarchical KV Cache Manager (HKM) that leverages temporal locality and dynamic token hit rates to physically partition cache pools, thereby eliminating cross-device I/O thrashing. Additionally, we design an Adaptive Prefetch-based Pipeline (APP) that adaptively balances the evaluation workload between the host CPU and the SmartSSD, effectively masking the heterogeneous straggler effect. Finally, we introduce a CSD-based Evaluation Configuration (CEC) to enable resource-efficient near-data processing on the FPGA. Extensive experiments on a commodity AIPC demonstrate that HillInfer achieves up to an 8.56$\times$ speedup over state-of-the-art baselines, delivering low-latency, I/O-efficient long-context inference without sacrificing model accuracy.

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

↑