arXiv:2609.02027cs.PFSep 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2609.02027

Multi-Turn LLM Conversations under the Least-Recently-Used Policy: Mean-Field Asymptotics and Hit Ratio Approximation

Heyuan Yao, Chutong Gao, Yuan Lyu, Izzy Grosof, David Simchi-Levi

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

Heyuan Yao

Northwestern University

Evanston, IL 60208

heyuanyao@u.northwestern.edu

Chutong Gao ∗^{*}

Purdue University

West Lafayette, IN 47907

gao945@purdue.edu

Yuan Lyu ∗^{*}

HKUST

Hong Kong SAR

ylyuad@connect.ust.hk

Izzy Grosof

Northwestern University

Evanston, IL 60208

izzy.grosof@northwestern.edu

∗^{*}Equal contribution.

David Simchi-Levi

Purdue University

West Lafayette, IN 47907

dslevi@purdue.edu

Abstract

The major workloads in modern large language model (LLM) serving systems have shifted from single-shot LLM calls to multi-turn conversations, where new responses are generated based on the whole conversation history across all previous turns. The hit ratio, i.e., the average fraction of KV caches accessed directly from existing caches stored in high-bandwidth memory (HBM), is hence a crucial metric that governs system performance. Estimating the hit ratio is a highly nontrivial task due to the complex system dynamics, where the KV cache prefixes grow with turns and some must be evicted due to finite memory capacity. We formulate the system as a multi-turn conversation model under the least-recently-used (LRU) policy. Through a mean-field asymptotic framework, we prove that as the conversation arrival rate and the memory capacity grow proportionally to infinity, the hit ratio converges to a closed-form limit. Based on the characterization of the limit, we further propose a practical hit ratio estimator, and validate its accuracy by real LLM serving experiments on the Qwen3-8B model implemented on Ascend NPUs. Our results provide a theoretical foundation for the analysis of multi-turn LLM serving systems and a practical guideline for memory capacity provisioning.

1 Introduction

Multi-turn interactions have become a core workload form in modern large language model (LLM) services, following the prevalence of coding agents as the most commercially validated LLM application (GitHub [2025], Anthropic [2026]). Within one conversation, coding agents must carry all conversation history (including previous system instructions, history prompt-response pairs, and tool-calling feedback) for new response generation, and such multi-turn LLM calls create prolonged and growing conversation history. A key strategy to hedge against the correspondingly growing compute is context caching, that is, storing and reusing the already generated key-value (KV) caches of the conversation history in the memory or disk, such that new prompts sharing the same history can avoid repeated prefill and thus massively reduce time-to-first-token (TTFT) and inference costs. For example, DeepSeek reports that context caching reduces the TTFT of repetitive 128K-token inputs from 13s to 500ms, and consequently, it charges a prompt that successfully hits the cached content 1/10 of the original price (DeepSeek [2024]).

To leverage the maximum value of context caching, it is important to design an LLM serving system that maximizes the long-run average hit ratio, defined as the fraction of KV caches directly reused

Preprint.

from the HBM among all KV caches in a generic conversation. A prerequisite for the optimization problem is the following performance analysis problem, which is the focus of this paper:

How to characterize (or approximate) the hit ratio as a function of given system primitives, including the conversation arrival rate, the interarrival-time distribution of prompts within one conversation, the workload distributions, and the offered HBM capacity?

The least-recently-used (LRU) eviction policy. A conversation history can be reused only if its KV caches remain resident in the HBM memory when a new prompt within the same conversation arrives. However, the HBM memory of the processing unit has only finite capacity and thus inevitably forces eviction of its resident conversations. Throughout the paper we assume the system operates under the LRU eviction policy widely adopted in multi-turn KV-cache management due to its simplicity and empirical success (Wang et al. [2025], Zhang et al. [2025]). Under LRU, when the amount of KV caches exceeds the HBM capacity, conversations (with its all history KV caches) are evicted sequentially from the least-recently-used one to the most-recently-used one until the capacity constraint is restored.

Overview of our results and contributions. We make three main contributions.

• Modeling framework. We propose a parsimonious multi-turn conversation model (MCM) for multi-turn LLM serving under LRU eviction policy, which captures key components that govern the stochastic system dynamics.

• Mean-field asymptotics. We prove the convergence of the hit ratio to an explicit limit as the conversation arrival rate and the HBM capacity grows proportionally to infinity.

• Estimator and validation. We derive a theoretically-motivated hit ratio estimator and validate its accuracy in Qwen3-8B model serving experiments implemented on Ascend 910B2 NPUs fed by conversations from the ShareGPT dataset.