arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.17170cs.LGcs.DC
收藏

TriAxialKV: 向极低精度KV缓存量化迈进以应对代理推理任务

TriAxialKV: Toward Extreme Low-Precision KV-Cache Quantization for Agentic Inference Tasks

University of Cambridge(剑桥大学);Imperial College London(伦敦帝国学院)

Hanzhang Shen, Haoran Wu, Yiren Zhao, Robert Mullins

AI总结:

本文提出TriAxialKV,一种混合精度的KV缓存量化方案,通过为每个token分配三轴标签,校准每种标签的敏感性,并在固定内存预算下分配INT2/INT4位宽,以提高代理推理任务的效率和吞吐量。

摘要:

代理工作负载已成为LLM推理中的主要工作负载。它们与仅聊天的工作负载有显著不同,要求长上下文处理、处理多模态输入以及支持结构化的多轮交互和工具调用能力。因此,其上下文表现出结构,可以沿三个关键轴携带不同的重要性:时间最近性、模态(如文本或图像标记)以及语义角色(如用户查询、工具调用、观察或推理)。这些轴捕捉了不同的标记行为,并导致不同的对KV缓存压缩的敏感性。然而,现有的KV缓存量化方法通常是同质的或仅在单一维度上利用异质性,如时间接近性或模态,忽略了它们之间的相互作用。为此,我们引入TriAxialKV,一种新的混合精度KV缓存量化方案,为每个token分配三轴标签,校准每种标签的敏感性,并在固定内存预算下分配INT2/INT4位宽。我们实现了TriAxialKV作为端到端的服务系统,包括校准、混合精度量化和内存管理,并定制了融合的Triton解码内核。当使用Qwen3-VL-32B-Thinking作为计算机使用代理操作OSWorld时,TriAxialKV在BF16 KV缓存的准确性与SGLang相当,同时支持4.5倍的KV缓存大小,并在真实GPU系统上实现了30%更高的端到端吞吐量。

英文摘要:

Agentic workloads have emerged as a major workload for LLM inference. They differ significantly from chat-only workloads, requiring long-context processing, the ability to handle multimodal inputs, and structured multi-turn interactions with tool calling capabilities. As a result, their context exhibits structure that can carry different importance along three key axes: temporal recency to the current turn, modality such as text or image tokens, and semantic role such as user queries, tool calls, observations, or reasoning. These axes capture distinct token behaviors and lead to different sensitivities to KV-cache compression. However, existing KV-cache quantization methods are typically homogeneous or exploit only heterogeneity on a single dimension, such as temporal proximity or modality, overlooking the interactions among them. To this end, we introduce TriAxialKV, a novel mixed-precision KV-cache quantization scheme that assigns each token a triaxial tag, calibrates per-tag sensitivity, and allocates INT2/INT4 bit-widths under a fixed memory budget. We implement TriAxialKV as an end-to-end serving system, comprising calibration, mixed-precision quantization and memory management, and custom fused Triton decode kernels. When using Qwen3-VL-32B-Thinking as a computer-use agent operating the OSWorld, TriAxialKV matches the accuracy of SGLang with BF16 KV cache while supporting 4.5$\times$ KV cache capacity and achieving 30% higher end-to-end throughput, when running on real GPU systems.

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

↑