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

MPIC:面向高效多模态大语言模型服务的位置无关多模态上下文缓存系统

MPIC: Position-Independent Multimodal Context Caching System for Efficient MLLM Serving

State Key Laboratory for Novel Software Technology(新型软件技术国家重点实验室);Nanjing University(南京大学);School of Computer Science(计算机学院)

Shiju Zhao, Junhao Hu, Rongxiao Huang, Jiaqi Zheng, Guihai Chen

AI总结:

本文提出位置无关缓存系统MPIC,通过本地磁盘存储KV缓存并在推理时并行加载,结合集成复用与重算机制,在保持精度的同时显著降低多模态大语言模型推理延迟并提升吞吐量。

摘要:

当前主流服务平台采用上下文缓存技术来加速多模态大语言模型(MLLM)推理。然而,这种方法仅复用提示词初始序列的键值(KV)缓存,即使前缀仅有细微差异,也会导致完整的KV缓存重新计算。在文本与图像交错以及多模态检索增强生成的场景下,这一问题尤为低效。本文提出位置无关缓存作为多模态信息管理的一种更有效的方法。我们设计并实现了一个名为MPIC的缓存系统,以应对系统层面和算法层面的挑战。MPIC在接收多模态数据时将KV缓存存储在本地磁盘上,并在推理过程中并行计算和加载KV缓存。为减轻精度下降,我们在系统中引入了集成复用与重算机制。实验结果表明,与现有上下文缓存系统相比,MPIC可实现高达54%的响应时间降低和2倍的吞吐量提升,同时保持可忽略不计或零精度损失。

英文摘要:

The context caching technique is employed to accelerate the Multimodal Large Language Model (MLLM) inference by prevailing serving platforms currently. However, this approach merely reuses the Key-Value (KV) cache of the initial sequence of prompt, resulting in full KV cache recomputation even if the prefix differs slightly. This becomes particularly inefficient in the context of interleaved text and images, as well as multimodal retrieval-augmented generation. This paper proposes position-independent caching as a more effective approach for multimodal information management. We have designed and implemented a caching system, named MPIC, to address both system-level and algorithm-level challenges. MPIC stores the KV cache on local disks when receiving multimodal data, and calculates and loads the KV cache in parallel during inference. To mitigate accuracy degradation, we have incorporated the integrated reuse and recompute mechanism within the system. The experimental results demonstrate that MPIC can achieve up to 54\% reduction in response time and 2$\times$ improvement in throughput compared to existing context caching systems, while maintaining negligible or no accuracy loss.

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

↑