arXiv:2605.00831cs.DCcs.AI2026-05被引 1

用纠删码在后台保护长序列缓存,故障时快速恢复推理

GhostServe: A Lightweight Checkpointing System in the Shadow for Fault-Tolerant LLM Serving

论文配图:GhostServe: A Lightweight Checkpointing System in the Shadow for Fault-Tolerant LLM Serving
图 1 · 摘自论文原文
  • 用纠删码将KV缓存切片并存于主机内存,实现轻量级备份
  • 故障恢复速度提升2.1倍,单批次检查点延迟降低2.7倍
  • 适合高并发长文本生成场景,降低大模型服务成本

随着百万词级、基于代理的应用兴起,大语言模型(LLM)推理服务面临前所未有的挑战。这类任务运行时间长,易受软硬件故障影响,导致任务失败、资源浪费和用户体验下降。其中,随序列长度增长的状态化键值(KV)缓存是分布式服务中的关键脆弱环节。本文提出GhostServe,一种新型检查点方案,通过在后台对流式KV缓存应用纠删码,将冗余数据块存储于主机内存。当设备故障发生时,可快速重构丢失的缓存,实现推理无缝恢复,无需昂贵的全量重计算或状态复制。评估表明,在系统故障环境下,GhostServe使检查点延迟降低最多2.7倍,恢复延迟减少2.1倍,中位响应延迟降低1.2倍,为大规模高可用、低成本的LLM服务提供了可行路径。

原文摘要 · Abstract (English)

The rise of million-token, agent-based applications has placed unprecedented demands on large language model (LLM) inference services. The long-running nature of these tasks increases their susceptibility to hardware and software faults, leading to costly job failures, wasted resources, and degraded user experience. The stateful key-value (KV) cache, which grows with the sequence length, presents a central challenge as it is a critical and vulnerable component in distributed serving systems. In this work, we propose GhostServe, a novel checkpointing solution to facilitate fault-tolerant LLM serving. Specifically, GhostServe protects the streaming KV cache in the shadow by applying erasure coding to generate and store the parity shards in host memory. In the event of device failures, GhostServe enables fast reconstruction of the lost KV cache, allowing the inference process to resume seamlessly without costly full recomputation or state replication. Evaluations demonstrate that GhostServe reduces checkpointing latency by up to 2.7x and recovery latency by 2.1x for a single batch, and 1.2x median response latency compared to existing methods, in the presence of system failures, paving the way for high-availability and cost-effective LLM serving at scale.

大模型推理容错机制纠删码轻量化

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