MCaM : Efficient LLM Inference with Multi-tier KV Cache Management

计算机科学 隐藏物 智能缓存 缓存算法 并行计算 缓存失效 CPU缓存 缓存污染 缓存着色 操作系统 计算机网络 页面缓存 异步通信 嵌入式系统 延迟(音频) 重新使用 调度(生产过程) 公共汽车嗅探 吞吐量 MESI协议 德拉姆 管道(软件) 分布式计算
作者
Kexin Chu,Zixu Shen,Sheng-Ru Cheng,Dawei Xiang,Ziqin Liu,Wei Zhang
标识
DOI:10.1109/icdcs63083.2025.00062
摘要

The KV cache in current LLM serving system is primarily used to accelerate processing within a single request and is aggressively deleted once the response is generated. However, in scenarios like virtual assistants and multi-turn conversations, the KV cache can be reused across requests, which can dramatically reduce computation costs and improve serving latency. Caching historical tokens, however, significantly increases memory requirements. Furthermore, existing serving systems treat the request scheduler and KV cache separately, despite their tight coupling.MCaM is a multi-tier cache system that enables the KV cache reuse and sharing across requests. It leverages DRAM as slow- tier memory for storing the KV cache of historical prompts. To efficiently utilize fast-tier Hign Bandwidth Memory(HBM) on GPU, we co-designed the KV cache manager and scheduler to coordinate request scheduling and token placement across tiers. To hide the reload time, MCaM employs a pipeline prefetcher that overlaps communication and computation. Additionally, MCaM incorporates a quality-aware sparsification algorithm to heterogeneously compress the KV cache in each layer. This approach not only reduces data transfer size but also decreases the overall KV cache size. To remove data offloading from a request’s critical path, we designed an asynchronous offload engine that swaps data from HBM to DRAM in the background. Our experiments show that MCaM can reduce TTFT by up to 69% and improve prompt prefilling throughput by 3.3X. It can also reduce the end-to-end latency of LLM inference by up to 58% when request length increase to 4096 tokens.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
wuyyuan完成签到 ,获得积分10
2秒前
kilito完成签到 ,获得积分10
2秒前
HbY完成签到 ,获得积分10
7秒前
keonho完成签到 ,获得积分10
7秒前
lingguiyi完成签到,获得积分10
7秒前
顺利厉完成签到,获得积分10
10秒前
10秒前
你猜我是谁完成签到 ,获得积分10
11秒前
cxjie320完成签到,获得积分0
11秒前
jiaqi完成签到,获得积分10
11秒前
Belle完成签到,获得积分10
14秒前
14秒前
15秒前
行者无疆发布了新的文献求助20
15秒前
ketyone完成签到,获得积分20
16秒前
Gao15264892完成签到 ,获得积分10
16秒前
18秒前
condensate完成签到,获得积分10
19秒前
于生有你完成签到,获得积分10
22秒前
寻梦完成签到,获得积分10
23秒前
24秒前
李安全完成签到,获得积分10
25秒前
年轻的小松鼠完成签到 ,获得积分10
25秒前
乘乘的梦完成签到 ,获得积分10
26秒前
曾经的朝雪完成签到,获得积分10
26秒前
wj完成签到 ,获得积分10
27秒前
iitj举报梅夕阳的求助涉嫌违规
28秒前
31秒前
一方发布了新的文献求助10
32秒前
lattercomer完成签到 ,获得积分10
32秒前
迟来雪信关注了科研通微信公众号
32秒前
麻辣鱿鱼徐完成签到,获得积分10
35秒前
苏鑫完成签到,获得积分10
35秒前
张艾熙发布了新的文献求助10
38秒前
浩懿一完成签到,获得积分10
38秒前
科目三的应助被一抹轻笑动人采纳,获得10
40秒前
科研通AI6.4的应助被管恩杰采纳,获得10
42秒前
Ng_完成签到,获得积分10
50秒前
凌尘完成签到 ,获得积分10
51秒前
shouz完成签到,获得积分10
52秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Current status of early diagnosis of pancreatic cancer 600
Comparison of cardiorespiratory responses, kinematic changes and psychological responses between tachi run and moderate intensity constant run 500
Cortex activity fluctuations during TaiChi Run by functional near-inferred spectroscopy 500
高速电流舵型数字模拟转换器 500
Data Driven Casing Collar Feature Detection and Identification for Automated Depth Estimation for Wireline 500
Cellulose and Cellulose Derivatives PART III 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8264929
求助须知:如何正确求助?哪些是违规求助? 9638579
关于积分的说明 22208277
捐赠科研通 7890652
什么是DOI,文献DOI怎么找? 3462056
关于科研通互助平台的介绍 2582364
邀请新用户注册赠送积分活动 2514493