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

Jayakody, Shakya, Zhao, Youpeng, Nehate, Chinmay Dhanraj, Wang, Jun

–arXiv.org Artificial Intelligence 

Shakya Jayakody * 1 Youpeng Zhao * 1 Chinmay Nehate 1 Jun Wang 1 ABSTRACT 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.7 and recovery latency by 2.1 for a single batch, and 1.2 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. 1 INTRODUCTIONHowever, as the intensity of LLM serving workloads rapidly The development of large language models (LLMs) has increases, hardware or software errors are often unavoidable, especially in large-scale distributed environments. Inbrought the prospect of artificial general intelligence (AGI) terruptions are common and frequent in enterprise-level within closer reach, due to their exceptional performancehigh-performance computing (HPC) data centers (Mohan across diverse language understanding and generationet al., 2021; Wang et al., 2023; Wan et al., 2024; Wang tasks (Brown et al., 2020; OpenAI, 2025b; Meta, 2024; Guo et al., 2025). With the emergence of LLM-based AI agent applications, a single point progress is the prevalence of scaling laws, which indicateof failure could result in catastrophic consequences for the that the performance of LLMs improves as the model sizeentire workflow, degraded user experiences, and even huge increases (Kaplan et al., 2020; Hoffmann et al., 2022). Nat-financial losses if not promptly recovered (OpenAI, 2024; urally, the deployment of inference serving has become increasingly popular in distributed environments, where speWikipedia, 2024; CNN, 2025).