TACT-KV:用于压缩医学视觉语言模型中体KV缓存的三轴余弦变换
TACT-KV: Tri-Axis Cosine Transform for Compressing Volumetric KV Caches in Medical VLMs
AI总结:
针对医学VLMs的KV缓存内存瓶颈,提出TACT-KV三轴余弦变换压缩法,利用3D扫描三轴空间相关性,在多模型基准测试中性能最优,可扩展单GPU解码批次至8倍。
摘要:
应用于3D医学扫描的视觉语言模型(VLMs)面临结构性内存瓶颈:单个CT或MRI体数据会产生数万个视觉token,生成的键值(KV)缓存随批次和上下文呈线性扩展。现有KV压缩方法多基于缓存的特征或token统计,或应用1D、2D变换,未利用缓存中的三轴空间结构。本文提出TACT-KV(Tri-Axis Cosine Transform,三轴余弦变换),一种无需校准的KV压缩方法,利用3D扫描的三个解剖轴上视觉KV状态的强空间相关性,该相关性使KV缓存能量在频域变换下集中。TACT-KV对KV缓存应用可分离的3D离散余弦变换,通过反向注水法在频率区间分配每一层的比特预算(高能量分量分配更多比特),并使用固定标量码本对每个区间量化。本文推导了闭式关系:自适应比特分配的失真减少由变换后缓存的频谱集中度主导。在6个医学VLMs和2个3D CT基准测试中,TACT-KV在12组模型与数据集对比的11组中实现最低的1比特预测翻转率;在视频任务评估的4个通用VLMs上也复现了该优势,表明利用三轴结构的益处可推广至医学成像之外。在同等高带宽内存(HBM)条件下,TACT-KV可将单GPU的解码批次大小扩展至最高8倍。
英文摘要:
Vision-language models (VLMs) applied to 3D medical scans face a structural memory wall. A single CT or MRI volume produces tens of thousands of vision tokens, and the resulting key-value (KV) cache scales linearly with both batch and context. Existing KV compression methods operate on the cache's feature or token statistics, or apply 1D and 2D transforms, leaving the three-axis spatial structure in the cache unexploited. We propose TACT-KV (Tri-Axis Cosine Transform), a calibration-free KV compression method that exploits strong spatial correlations in visual KV states along all three anatomical axes of 3D scans. This correlation concentrates the KV cache energy under a frequency-domain transform. TACT-KV applies a separable 3D discrete cosine transform to the KV cache, allocates a per-layer bit budget across frequency bins via reverse water-filling (more bits to high-energy components), and quantizes each bin with a fixed scalar codebook. We derive a close-form relation: the distortion reduction from adaptive bit allocation is dominated by the spectral concentration of the transformed cache. Across six medical VLMs and two 3D CT benchmarks, TACT-KV achieves the lowest 1-bit prediction-flip rate on eleven of twelve model and dataset pairs in our main comparison. The same advantage reproduces on four general-purpose VLMs evaluated on video tasks, indicating that the benefit of exploiting three-axis structure generalizes beyond medical imaging. At equal high-bandwidth memory (HBM), TACT-KV scales the decoding batch size on a single GPU by up to $8\times$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。