PriorityFEC:面向边缘多智能体系统中KV缓存交接的感知截止时间的流式前向纠错
PriorityFEC: Deadline-Aware Streaming FEC for KV-Cache Handoff in Edge Multi-Agent Systems
AI总结:
针对边缘多智能体系统中KV缓存交接的冗余计算与传输可靠性问题,提出PriorityFEC方案,通过联合优化KV缓存效用与流式FEC机制,在严格截止时间下提升任务质量。
摘要:
多智能体大语言模型(LLM)系统正越来越多地部署在边缘端,以支持需要多个智能体间协作与信息交换的复杂任务。然而,当任务上下文在智能体间传递时,上游智能体已处理的共享上下文往往需要重新预填充,这会产生大量冗余计算。复用已预填充的键值(KV)缓存可避免这种重新计算,但需要在接收智能体开始生成内容前,通过网络传输可复用的KV状态。在严格的首token生成时间(TTFT)截止时间和不可靠的边缘链路下,传输完整的KV缓存可能无法实现,因此需要在有限的传输预算内对最有价值的KV信息进行优先级排序和保护。本文提出PriorityFEC,一种感知效用的KV缓存交接方案,该方案联合利用模型侧的KV重要性与传输侧的可靠性。PriorityFEC首先通过将高效用KV块放置在更早的传输位置,构建感知效用的源流;随后使用反馈自适应的流式前向纠错(FEC)机制保护有序流,该机制会根据接收方反馈在TTFT截止时间前调度修复包。我们在分布式边缘LLM服务原型上实现PriorityFEC,并使用Qwen2.5-7B-Instruct和Llama-3.1-8B-Instruct在多个数据集上进行评估。结果表明,与对比传输方案相比,PriorityFEC实现了更优的任务质量,且在严格的截止时间约束下,其优势尤为显著。这些结果证明,当必须在不可靠的边缘网络间交接可复用的LLM状态时,联合优化KV缓存效用与感知截止时间的传输可靠性具有重要意义。
英文摘要:
Collaborative edge large language model (LLM) systems often require repeated prefill computation when task contexts are transferred between agents. Reusing previously computed key--value (KV) caches can eliminate this overhead, but requires KV-cache delivery before the receiving agent begins decoding. Under strict deadlines and unreliable edge links, complete KV cache transfer may be infeasible, making the timely delivery of useful KV information critical. This paper proposes PriorityFEC, a utility-aware KV-cache handoff scheme that combines prioritized source transmission with adaptive loss recovery. PriorityFEC first organizes KV blocks into a utility-aware source queue to prioritize important information. It then employs ACK-sliding Streaming FEC and a lightweight Double Deep Q-Network (Double-DQN) scheduler to dynamically balance source delivery and repair transmission under deadline constraints. We implement PriorityFEC in a distributed edge LLM-serving prototype and evaluate it using Qwen2.5-7B-Instruct and Llama-3.1-8B-Instruct across multiple workloads. Experimental results demonstrate that PriorityFEC preserves more useful KV information and achieves substantially higher task accuracy than competing transport schemes, particularly when the deadline is insufficient to deliver the complete KV cache.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。