arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.16360cs.LGcs.AI
收藏

ProxyKV:跨模型代理剪枝用于高效长上下文LLM推理

ProxyKV: Cross-Model Proxy Pruning for Efficient Long-Context LLM Inference

Shanghai Jiao Tong University(上海交通大学)

Junjie Li, Jiong Lou, Jie Li

AI总结:

ProxyKV通过跨模型代理剪枝方法,解决LLM长上下文推理中的KV缓存内存瓶颈,实现高效推理与高精度的平衡,提升预填充速度和长上下文处理能力。

摘要:

高效长上下文推理在大型语言模型(LLM)中受到键值(KV)缓存内存瓶颈的严重限制,而现有剪枝方法在低延迟启发式和高精度重建方法之间做出取舍。为弥合评分成本与精度之间的差距,我们提出了ProxyKV,一种跨模型代理剪枝框架,将重要性评分卸载到轻量级的同族小型模型代理上,该代理异步执行于大型模型目标。为弥合异构模型之间的架构差距,我们设计了HybridAxialMapper,将时间特征提取与跨头对齐解耦,并设计了多粒度混合损失,将学习目标从刚性回归转向相对排名一致性。在Llama-3.1、Qwen-2.5和Qwen-3家族上,针对LongBench、SCBench和RULER等基准测试,ProxyKV在聚合层面(恢复约98.7%的平均精度)与KVZip相当,同时在Llama-3.1-8B上实现了高达3.21倍的预填充加速(双GPU;约1.5倍共享单GPU),并在Qwen-2.5-7B上支持高达170k tokens的上下文长度。

英文摘要:

Efficient long-context inference in Large Language Models (LLMs) is severely constrained by the Key-Value (KV) cache memory wall, yet existing pruning methods force a choice between low-latency heuristics that sacrifice precision and high-precision reconstruction methods that incur prohibitive prefilling overhead. To bridge this scoring-cost--accuracy gap, we propose ProxyKV, a cross-model proxy pruning framework that offloads importance scoring to a lightweight intra-family Small-Model Proxy executed asynchronously to the Large-Model Target. To bridge the architectural gap between heterogeneous models, we design the HybridAxialMapper, which disentangles temporal feature extraction from cross-head alignment, together with a Multi-Granularity Hybrid Loss that shifts the learning objective from rigid regression to relative ranking consistency. Across the Llama-3.1, Qwen-2.5, and Qwen-3 families spanning targets from 7B up to 32B parameters on LongBench, SCBench, and RULER, ProxyKV matches KVZip on aggregate (recovering $\sim$$98.7\%$ of its mean accuracy) while delivering up to a $3.21\times$ prefilling speedup on Llama-3.1-8B (dual-GPU; $\sim$$1.5\times$ shared single-GPU) and sustaining the speedup at contexts up to 170k tokens on Qwen-2.5-7B.

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

↑