StepCache: Step-Level Reuse with Lightweight Verification and Selective Patching for LLM Serving
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
We address LLM serving workloads where repeated requests share a common solution structure but differ in localized constraints, such as output schema, variable names, or numeric constants. Prior caching approaches typically reuse either full responses (semantic caching) or model-internal KV/prefix states, which are respectively brittle under partial changes or tightly coupled to specific backends. We present StepCache, a backend-agnostic step-level reuse layer that segments outputs into ordered steps, retrieves the best-matching cached request, verifies steps using lightweight task-aware checks, and regenerates only failing regions via selective patching. StepCache additionally supports strict structured-output enforcement for JSON, including single-step extraction, required-key constraints, and one-shot repair, as well as conservative skip-reuse fallbacks for semantic changes. For linear equations, StepCache promotes verification into correction via a bounded repair loop with a deterministic fallback that guarantees correctness when the backend model fails. In a CPU-only perturbation-heavy micro-benchmark on math and JSON variants, averaged over three seeds, StepCache reduces mean latency from 2.13 s to 0.67 s, median latency from 2.42 s to 0.01 s, and p95 latency from 3.38 s to 3.30 s. It also reduces total token usage from 36.1k to 27.3k and improves end-to-end correctness from 72.5% to 100% under task-specific checks and a stitched-output integrity check. Across requests, 79.7% take the reuse-only fast path, 5.4% require patching, and 14.9% trigger skip-reuse.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 13 of its 14 references that are in the map. First posted on arXiv 24 Mar 2026.
Builds on
13 of 14 references.
Closest ancestors · 2
Same direction, newest first
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Serving16 Dec
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
Other references · 11
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2024BurstGPT: A Real-world Workload Dataset to Optimize LLM Serving Systemscited by 84
- 2025vCache: Verified Semantic Prompt Cachingcited by 15
- 2026OrbitFlow: SLO-Aware Long-Context LLM Serving with Fine-Grained KV Cache Reconfigurationcited by 6
- 2025An MLP Baseline for Handwriting Recognition Using Planar Curvature and Gradient Orientationcited by 4
- 2025A Sobel-Gradient MLP Baseline for Handwritten Character Recognitioncited by 3
- 2026Asynchronous Verified Semantic Caching for Tiered LLM Architecturescited by 3
- 2026Significance-Gain Pair Encoding for LLMs: A Statistical Alternative to Frequency-Based Subword Mergingcited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026LinearKV: One Cached State Suffices for Position-Independent Caching in Hybrid LLMs
- 2026Cache-Aware Prompt Compression:A Two-Tier Cost Model for LLM API Caching
- 2025KVShare: An LLM Service System with Efficient and Effective Multi-Tenant KV Cache Reuse
- 2025KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Provider
- 2026Sparse Prefix Caching for Hybrid and Recurrent LLM Serving
- 2026When JSON Is Not Enough: Semantic Reliability of Schema-Constrained LLM Ordering Agents
- 2025Efficient Multi-Adapter LLM Serving via Cross-Model KV-Cache Reuse with Activated LoRA
- 2026Where vs What: Decomposing Structural and Content Failures in LLM-Generated Structured Outputs