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

PDTrim: 针对预填解码分离的定向剪枝

PDTrim: Targeted Pruning for Prefill-Decode Disaggregation in Inference

Beijing Academy of Artificial Intelligence (BAAI)(北京人工智能研究院)

Hao Zhang, Mengsi Lyu, Zhuo Chen, Xingrun Xing, Yulong Ao, Yonghua Lin

AI总结:

PDTrim通过整合预填解码分离特性,实现更精确的块剪枝,提升推理性能和效率。

摘要:

大型语言模型(LLMs)在各种任务中表现出卓越的能力,但其部署受到高计算和内存成本的限制。模型剪枝提供了一种有效的方法来缓解这些需求。然而,现有方法往往忽略了实际中预填解码(PD)分离的特点。在本文中,我们提出了一种高度集成PD分离的剪枝方法,使能够更精确地剪枝块。我们的方法构建了剪枝和蒸馏集,以执行迭代块移除,从而获得更好的剪枝解决方案。此外,我们分析了预填和解码阶段的剪枝敏感性,并识别出每个阶段特有的可移除块,使其非常适合PD分离部署。广泛的实验表明,我们的方法在PD分离和PD统一(非PD分离)设置中都能持续取得优异的性能,并且可以扩展到其他非块剪枝方法。在相同的设置下,我们的方法实现了改进的性能和更快的推理。

英文摘要:

Large Language Models (LLMs) demonstrate exceptional capabilities across various tasks, but their deployment is constrained by high computational and memory costs. Model pruning provides an effective means to alleviate these demands. However, existing methods often ignore the characteristics of prefill-decode (PD) disaggregation in practice. In this paper, we propose a pruning method that is highly integrated with PD disaggregation, enabling more precise pruning of blocks. Our approach constructs pruning and distillation sets to perform iterative block removal, obtaining better pruning solutions. Moreover, we analyze the pruning sensitivity of the prefill and decode stages and identify removable blocks specific to each stage, making it well suited for PD disaggregation deployment. Extensive experiments demonstrate our approach consistently achieves strong performance in both PD disaggregation and PD unified (non-PD disaggregation) settings, and can also be extended to other non-block pruning methods. Under the same settings, our method achieves improved performance and faster inference.

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

↑