arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.08568cs.LG
收藏

不同提示,不同秩:基于SVD的LLM压缩的提示感知动态秩选择

Different Prompts, Different Ranks: Prompt-aware Dynamic Rank Selection for SVD-based LLM Compression

Stevens Institute of Technology(史蒂文斯理工学院);Technical University of Darmstadt(达姆施塔特技术大学)

Hengyi Zhu, Zhendong Mi, Grace Li Zhang, Shaoyi Huang

AI总结:

本文提出PARSE框架,通过提示感知的动态秩选择提升SVD压缩LLM的效率与性能,实现任务准确率提升10%及推理速度提升。

摘要:

大型语言模型(LLMs)的规模迅速增长,导致内存和计算成本显著增加,阻碍了高效部署。奇异值分解(SVD)已成为一种有效的后训练压缩技术,但现有基于SVD的方法依赖静态秩截断,对所有输入应用固定的奇异成分前缀,无论其多样性如何。我们发现这种静态设计有两个局限性:个体提示的最优秩不同,且所选秩对校准集的选择敏感,导致在多样输入上性能不佳。为解决这些挑战,我们提出PARSE,一种后训练框架,用于提示感知的动态秩选择,作为SVD压缩LLM中的专家。PARSE通过离线训练线性路由器进行提示感知的秩选择,通过监督路由器对抗大规模语料库上的密集模型输出,将秩选择与校准信息解耦。我们进一步观察到,相似提示的秩选择模式共享,并在解码步骤中保持稳定,允许从模式缓存中直接服务适当的秩子集。通过专家内存聚合和内核融合,PARSE在系统层面提高了效率,并且与现有SVD流程正交,一致提升了模型质量和推理效率。与四种代表性的SVD方法结合,PARSE在LLaMA-7B上以0.6的压缩比实现了平均任务准确率提升高达10%,并在原生SVD执行上实现了2.5倍的prefill和2.4倍的decode加速。

英文摘要:

Large language models (LLMs) have rapidly grown in scale, creating substantial memory and computational costs that hinder efficient deployment. Singular value decomposition (SVD) has emerged as an effective post-training compression technique, but existing SVD-based methods rely on static rank truncation, applying a fixed prefix of singular components to all inputs regardless of their diversity. We identify two limitations of this static design: the optimal rank varies across individual prompts, and the selected rank is sensitive to the choice of calibration set, leading to suboptimal performance across diverse inputs. To address these challenges, we propose $\textbf{PARSE}$, a post-training framework for $\textbf{P}$rompt-$\textbf{A}$ware $\textbf{R}$ank $\textbf{S}$election as $\textbf{E}$xperts in SVD-compressed LLMs. PARSE trains a linear router offline to perform prompt-aware rank selection, decoupling it from calibration information by supervising the router against dense-model outputs on a large-scale corpus. We further observe that rank-selection patterns are shared across semantically similar prompts and remain stable across decoding steps, allowing appropriate rank subsets to be served directly from a pattern cache at inference. Complemented by expert memory aggregation and kernel fusion for system-level efficiency, PARSE is orthogonal to existing SVD-based pipelines and consistently improves both model quality and inference efficiency. Integrated with four representative SVD-based methods, PARSE improves average task accuracy by up to 10% at a compression ratio of 0.6 on LLaMA-7B, and achieves up to 2.5 $\times$ prefill and 2.4 $\times$ decode speedup over native SVD execution.

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

↑