Search arXiv⌕ Search

arXiv · 2610.18925

CacheSmith: Accurate RAG Serving under Latency SLOs with Adaptive KV Reuse

Abstract

This paper presents CacheSmith, a KV cache reuse system for RAG prefill that maximizes quality-gated SLO attainment. While context caching lowers prefill latency by reusing precomputed KV states for retrieved chunks, it misses cross-chunk attention that a full prefill would compute over concatenated inputs. Prior selective recomputation schemes tackle this problem but enforce static, one-size-fits-all configurations that fail to effectively handle request heterogeneity or dynamic latency budgets. CacheSmith decomposes selective recomputation into a three-phase workflow of WarmUp, Probe, and Patch that can be dynamically configured to exploit a wide range of cost-accuracy trade-offs. At serving time, an SLO-aware scheduler in CacheSmith forms batches to mitigate inter-request interference during layer-by-layer prefill, while a budget-aware planner configures recomputation phases across the batch to maximize the number of requests satisfying both generation quality and latency targets. Both components make fast, solver-free decisions over profiled cost-accuracy bands. On four benchmarks across varying arrival rates and burstiness levels, CacheSmith improves quality-gated SLO attainment by up to 27.5%, over four state-of-the-art baselines.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Xinyue Ma, Damin Lee, Aashaka Shah, Myeongjae Jeon. 2026-10-13. CacheSmith: Accurate RAG Serving under Latency SLOs with Adaptive KV Reuse. https://searcharxiv.org/abs/2610.18925

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Pudding: A Retargetable Compiler for Processing-Using-DRAM Systems

Processing-Using-DRAM (PUD) architectures exploit the physics of DRAM arrays to perform Boolean operations directly in memory, eliminating the data movement bottleneck in memory-intensive workloads. Several PUD architectures have been recently proposed which differ in their primitive operation sets, row allocation models, and execution metrics. These architectural differences are today hard-coded in emerging PUD-aware compilers, making crossarchitecture reuse impossible. We present a retargetable, end-to-end compilation framework for PUD architectures. The central idea is to make the architecture description a first-class object in the compilation pipeline: retargeting to a new PUD architecture only requires supplying its description. Built upon the MLIR framework, our compiler operates at two coupled levels. At the tensor level, it lowers high-level programs through bit-slicing, mixed-precision assignment, and integer-linear-programming (ILP) based placement to reduce the number of PUD commands and inter-bank data movement. At the logic level, it employs equality saturation to explore Boolean network implementations, with rewrite rules and cost functions derived directly from the architecture description. Evaluated on representative workloads across multiple PUD targets with the same compiler passes, our framework matches (and in several cases surpasses) architecture-specific hand-optimized compilers, while delivering retargetability and extensibility.

cs.AR↗

Sattva: A Hardware-Algorithm Co-Designed SAT Solving Accelerator with Off-Chip Scalability

Boolean Satisfiability (SAT) solvers underpin verification, scheduling, and security, and hard problems can take years of CPU time. Yet solvers improve by only 4.6% per year on average, and their core algorithm, Conflict-Driven Clause Learning (CDCL), has remained unchanged for three decades, which makes it an ideal target for hardware specialization. Still, CDCL runs only on single-threaded CPUs in practice: its fine-grained data dependencies preclude effective parallelization, and industrial problems demand off-chip memory that no prior complete CDCL accelerator supports. Our insight is that these dependencies are structural, so custom hardware can parallelize CDCL safely with lightweight synchronization, while direct control over memory layout and prefetching hides the off-chip latency of CDCL's pointer chasing. The resulting parallelism further unlocks algorithmic improvements that do not pay off on sequential processors. We present Sattva, the first hardware-algorithm co-designed CDCL accelerator with off-chip scalability, and the first to run most of Kissat's search heuristics in hardware. It propagates literals in parallel across cores and threads, learns from several conflicts per round, decides through a SAT-tailored priority queue, and selects MiniSat's or most of Kissat's search heuristics. Built on an FPGA and measured at 206 MHz, Sattva is 5-793x faster than each prior SAT accelerator on that accelerator's own benchmarks, and 3-454x faster than CPU solvers on them. Per cycle, it does 6-8x as much search work as a CPU core. Projected to 3 GHz, it solves 49 of 100 randomly sampled SAT Competition 2026 instances, where MiniSat solves 22 and Kissat 36, and is 41x and 4x faster than them. In Samsung 8 nm, Sattva delivers 13x Kissat's performance per mm^2 of CPU.

cs.AR↗

PACER: Accelerating Mixture-of-Experts LLM Inference on High Bandwidth Flash Memory via Resource-Aware Expert Prefetching and Caching

The weights of frontier mixture-of-experts (MoE) large language models (LLMs) exceed the on-package memory capacity of modern accelerators. High bandwidth flash (HBF) addresses this capacity gap by stacking NAND flash dies in the form factor of high bandwidth memory (HBM). However, the sparse and dynamic expert selection of MoE models limits the performance of a demand-driven HBF controller. One possible solution is to prefetch experts ahead of time, as MoE offloading systems do. Our goal is to increase the decode throughput of MoE LLM inference on an HBF-equipped inference accelerator by efficiently prefetching experts from HBF into HBM. To this end, we propose PACER (Prefetching And Caching of Experts under Read disturb). The key idea of PACER is to make expert prefetching resource-aware, so that a prefetch uses only the HBM bandwidth that the inference accelerator leaves idle, the HBM capacity that the KV cache does not occupy, and the flash reads that storing experts in HBM saves. PACER leverages this key idea in software and in hardware. In software, the PACER runtime manages an HBM expert cache with a hint-protected replacement policy, which protects prefetched experts from eviction until the expert kernels of their layer finish. In hardware, the PACER controller comprises (i) a copy-preserving read unit, which serves demand reads from prefetched experts instead of reading these experts from HBF, (ii) an HBM write throttling engine, which throttles the HBM writes of prefetched experts, and (iii) a lifetime control engine, which limits the flash reads of useless prefetches to the flash reads that storing experts in HBM saves.

cs.AR↗