arXiv:2611.09715cs.AINov 2026

Manuscript Offprint

arXiv:2611.09715

Intent-Aware Caching for Efficient LLM Serving

Kazi Hasan Ibn Arif, JinYi Yoon, Dimitrios S. Nikolopoulos, Hans Vandierendonck, Deepu John, Bo Ji

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Kazi Hasan Ibn Arif

Virginia Tech

Blacksburg, VA, USA

hasanarif@vt.edu

JinYi Yoon

Inha University

Incheon, South Korea

jinyiyouon@inha.ac.kr

Dimitrios S. Nikolopoulos

Virginia Tech

Blacksburg, VA, USA

dsn@vt.edu

Hans Vandierendonck

Queen's University Belfast

Belfast, UK

h.vandierendonck@qub.ac.uk

Deepu John

University College Dublin

Dublin, Ireland

deepu.john@ucd.ie

Bo Ji

Virginia Tech

Blacksburg, VA, USA

boji@vt.edu

Abstract

Modern LLM serving systems use prefix caching to accelerate multi-turn conversational workloads. They cache the key-value states of previous conversation prefixes and reuse them when subsequent requests share the same prefix, to avoid redundant prefill computation and reduce serving latency. However, achieving a high cache hit rate remains challenging because cache reuse depends on whether a conversation continues and how soon the next turn arrives. Our analysis of real workloads shows that user intent is a useful signal for this behavior, as different intents exhibit different continuation probabilities and inter-turn delays. Based on this key insight, we propose Intent-Aware Caching (IAC), an online eviction policy that classifies requests by intent, learns lightweight reuse statistics from recent serving logs and leverages these statistics to guide an oracle-inspired eviction strategy. Extensive evaluation on real workloads (WildChat and ShareChat) shows that IAC reaches a 34.6% cache hit rate. This substantially outperforms both the previous learning-based approach (18.8%) and traditional methods such as least recently used (LRU, 12.2%), while reducing average serving latency by up to 46.1%. Code is available at https://github.com/hasanar1f/intent-aware-caching.

1 Introduction

Chatbots using large language models (LLMs), such as ChatGPT [1] and Gemini [2], serve millions of users every day [3]. Users often interact with these chatbots through a sequence of follow-up turns to complete different tasks [4], commonly known as multi-turn conversations (Fig. 1a). In each turn, the request includes the past conversation history as a prefix, followed by the new user query. As a result, the input context grows with the number of turns (Fig. 1b), making inference increasingly expensive and resulting in higher time-to-first-token (TTFT) latency and lower throughput (i.e., the total number of tokens processed per second). To serve such prefix-dominated workloads efficiently, modern LLM serving systems adopt prefix caching [5, 6, 7]. This is an exact caching mechanism that stores the key-value (KV) states of previously processed tokens and reuses them when subsequent requests share the same prefix, regardless of conversation or user. Therefore, the server only computes the KV states for the newly added tokens instead of recomputing the entire conversation history. Prefix caching directly reduces redundant prefill computation and improves TTFT and throughput [5, 8]. Accordingly, major providers charge 10×10 \times less for cached input tokens than for uncached ones [9, 10].

However, achieving a high cache hit rate (i.e., the number of input tokens whose KV states are reused from the cache, divided by the total number of input tokens over all requests) remains challenging in existing LLM serving systems, as their eviction policies are typically not designed for conversational

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

(a) Prefix caching in multi-turn conv.

Figure

(b) Context len. in turns

Figure

(c) Online policies vs. oracles

Figure 1: (a) In a typical multi-turn conversation, each new request includes previous user queries and model responses as a prefix; caching this prefix reduces redundant prefill computation and lowers TTFT. (b) The input context grows with the number of turns, increasing serving cost. (c) Both conventional and ML-based policies achieve much lower cache hit rates than oracle policies.

workloads [11, 12], which differ significantly from traditional object caching. This is because a cached prefix is useful only when the user continues the conversation with a follow-up turn. Even when a follow-up occurs, the reuse delay can vary substantially as users read, think, or compose their next message. In addition, cache reuse is structurally dependent across turns: a hit at turn-tt requires preserving the prefix formed by turns 1 through t−1t-1. Cache entries also grow with context length, resulting in highly variable object sizes and making eviction decisions more sophisticated than simple policies used in traditional caching regimes [13, 14]. These challenges are further amplified by workload drift, where cache reuse patterns can shift even within an hour in practical workloads [15].

Conventional policies such as least recently used (LRU), least frequently used (LFU), and greedy dual size-frequency (GDSF) are widely used because they are simple and introduce negligible runtime overhead [11, 12, 15]. However, they rely only on generic signals such as recency, frequency, and object size. These signals do not directly capture whether a conversation will continue or when its prefix will be reused, resulting in poor eviction decisions. Recently proposed Learned Prefix Caching (LPC) trains a machine learning (ML) model to predict the likelihood of follow-up turns from conversation history [16]. However, its gains are limited because continuation probability alone does not capture cache reuse patterns (e.g., a session may continue after a long delay), making the retained prefix less useful under limited GPU memory. Moreover, LLM workloads could drift significantly within an hour [15], making frequently retrained ML predictors operationally expensive.

Offline oracles, in contrast to online policies, have access to future arrival information and therefore provide an upper-bound reference for cache performance. Belady's MIN is optimal when objects have the same size [17]. Prefix caches, however, contain KV entries with variable sizes, making the optimal offline eviction problem NP-complete [18]. Therefore, prior work on variable-sized object caching proposes practical oracle approximations such as Threshold-Belady (TB) and its size-aware variant TB+S [14]. These policies are well suited for prefix caching because cached prefixes differ in both reuse time and size. As shown in Fig. 1c, existing online policies remain substantially below oracle performance on real conversational workloads.¹ This persistent gap motivates a key question: How to design an online cache eviction policy for conversational workloads that closes the gap to oracle performance, remains efficient at runtime, and requires low maintenance in deployment?

In response, we propose Intent-Aware Caching (IAC), an online cache eviction policy that uses workload-specific statistics to better estimate future cache reuse and guide eviction decisions. A key insight behind IAC is that a user's goal in a conversation, which we refer to as the intent, reveals useful cache reuse patterns. These cache reuse patterns include how many turns a conversation is likely to have (i.e., the number of turns) and how long users tend to wait between turns (i.e., reuse delay). Our experiments on real workloads reveal that grouping requests by intent and turn exposes meaningful patterns in cache reuse (see details in Section 3). For example, a conversation about generating code from a user instruction (i.e., code_generation) often involves more turns than a request for translation. Similarly, we often observe longer delays for code_generation tasks than for simple chitchat. Based on this observation, IAC estimates cache reuse patterns for each workload category from simple online statistics (i.e., empirical continuation frequencies and a fitted

¹To the best of our knowledge, WildChat [19] and ShareChat [20] are the only two public datasets that contain both conversation content and timestamps, comprising a total of 1.2M conversations between real users and ChatGPT-family models [1].

delay distribution) and translates the results into an oracle-inspired eviction policy. IAC consists of three main components (see Fig. 4). First, the lightweight intent classifier assigns each request to a workload category. Second, the statistics estimation module periodically estimates statistics for each category, including the follow-up likelihood and the delay distribution from recently completed request logs. Finally, the cache eviction policy uses these learned statistical signals to mimic TB+S, a size-aware oracle policy, to make an eviction decision in an online fashion.

Contributions. In this work, we make three main contributions: (i) we characterize multi-turn conversational workloads through user intent from a cache-reuse perspective, showing that different intents exhibit distinct continuation and inter-turn delay patterns, which are useful for cache management; (ii) by leveraging these intent-aware cache reuse patterns, we propose IAC, an online cache eviction framework that combines lightweight statistics estimation with an oracle-inspired eviction strategy; (iii) we implement IAC and evaluate it on realistic setups, demonstrating consistent improvements in cache hit rate, TTFT, and throughput across workloads and model scales.

Evaluations. We implement IAC on SGLang [12], a widely used LLM serving framework, and evaluate it on real conversational workloads (WildChat [19] and ShareChat [20]) using LLMs from 8B to 110B on a realistic multi-GPU setup with 4×A100 (80 GB) GPUs. Across workloads, model sizes, and cache capacities, IAC consistently outperforms conventional and ML-based policies, narrowing the gap to the oracle. On ShareChat at 140K token capacity, IAC reaches 34.6% cache hit rate, compared with 12.2% for LRU and 18.8% for LPC. These cache gains translate into lower serving latency: on Qwen-1.5-110B, IAC reduces TTFT to 3.76 s, compared with 6.98 s for LRU and 5.20 s for LPC. IAC also sustains higher throughput under load: at 10 requests/s, it reduces average latency to 3.41 s, compared with 7.01 s for LRU and 5.44 s for LPC. Finally, IAC improves memory efficiency: on ShareChat with Llama-3-70B, it reaches a higher cache hit rate with only 24.4 GB of KV cache than LPC does with 51.9 GB, saving 53% of GPU memory.

References (41)