arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.08461cs.MMcs.DC
收藏

FastCache:通过轻量级KV缓存压缩框架优化多模态大语言模型服务

FastCache: Optimizing Multimodal LLM Serving through Lightweight KV-Cache Compression Framework

Jianian Zhu, Hang Wu, Haojie Wang, Yinghui Li, Biao Hou, Ruixuan Li, Jidong Zhai

AI总结:

FastCache通过动态批处理调度和高效KV缓存内存池,显著降低多模态大模型服务的首token时间并提升吞吐量,同时减少内存占用。

摘要:

多模态大语言模型(MLLMs)服务系统通常采用KV缓存压缩来减少内存占用。然而,现有压缩方法会引入显著的处理开销和排队延迟,尤其是在并发服务场景下。我们提出了FastCache,一个新颖的服务框架,通过两项关键创新有效应对这些挑战:(1)一种动态批处理策略,优化预填充、压缩和解码阶段之间的请求调度;(2)一种高效的KV缓存内存池机制,在保持高GPU利用率的同时消除内存碎片。我们在GQA和MileBench数据集上的综合实验表明,与最先进的基线相比,FastCache实现了高达19.3倍的首token时间(TTFT)降低和12.1倍的吞吐量提升。该系统在高并发场景(最高40 req/s)下保持稳定性能,同时将平均内存消耗降低20%。这些结果确立了FastCache作为具有KV缓存压缩的真实世界LLM服务系统的高效解决方案。

英文摘要:

Multi-modal Large Language Models (MLLMs) serving systems commonly employ KV-cache compression to reduce memory footprint. However, existing compression methods introduce significant processing overhead and queuing delays, particularly in concurrent serving scenarios. We present \texttt{FastCache}, a novel serving framework that effectively addresses these challenges through two key innovations: (1) a dynamic batching strategy that optimizes request scheduling across prefill, compression, and decode stages, and (2) an efficient KV-cache memory pool mechanism that eliminates memory fragmentation while maintaining high GPU utilization. Our comprehensive experiments on the GQA and MileBench datasets demonstrate that \texttt{FastCache} achieves up to 19.3$\times$ reduction in Time-To-First-Token (TTFT) and 12.1$\times$ improvement in throughput compared to state-of-the-art baselines. The system maintains stable performance under high-concurrency scenarios (up to 40 req/s) while reducing average memory consumption by 20\%. These results establish \texttt{FastCache} as an efficient solution for real-world LLM serving systems with KV-cache compression.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑