arXiv:2508.02381cs.LG2025-08

用秒级预测替代人工设计,动态高效压缩大模型

Beyond Manually Designed Pruning Policies with Second-Level Performance Prediction: A Pruning Framework for LLMs

  • 用轻量预测器秒级评估剪枝策略,取代人工设计
  • 动态剪枝使困惑度降低33.4%,静态剪枝降低84.78%
  • 支持实时调整剪枝比例,适合需要灵活压缩的场景

非均匀结构化剪枝能有效减少大语言模型(LLM)规模,通过移除冗余通道或层,性能下降小于均匀剪枝。但现有方法严重依赖人工设计的剪枝策略(如层重要性、缩放因子),难以适应动态剪枝率需求。此外,剪枝策略评估耗时长,阻碍了迭代优化。为此,我们提出PPF(预测剪枝框架),通过二级性能预测消除人工设计依赖。PPF支持动态与静态剪枝场景,采用智能代理生成实时剪枝动作,搭配轻量性能预测器,可在秒级完成策略评估。实验在Llama2-7B和Llama3-8B上验证:动态剪枝困惑度降低33.4%,静态剪枝降低84.78%,优于人工设计策略;预测器误差<0.0011,评估延迟从1分38.02秒降至1.52秒,提速超64倍。

原文摘要 · Abstract (English)

Non-uniform structured network pruning methods can effectively reduce Large Language Model (LLM) size by eliminating redundant channels or layers, offering lower performance degradation than uniform strategies. However, existing non-uniform methods rely heavily on manually designed pruning policies (e.g., layer importance and scaling factors), and therefore cannot efficiently adapt to scenarios with dynamic pruning ratio requirements. Additionly, a critical bottleneck -- the time-consuming evaluation of pruning policies -- further limits the feasibility of iteratively and dynamically finding optimal pruning policies. To address these limitations, we propose PPF (Predictive Pruning Framework), a novel pruning framework for LLMs that eliminates manual design dependencies via second-level performance prediction. PPF not only supports real-time pruning decisions under dynamic pruning ratios but is also applicable to static pruning scenarios. It employs an agent for producing adaptive and real-time pruning actions, while a lightweight performance predictor that can evaluate a pruning policy in seconds, significantly speeding up the iterative optimization process. Experiments on Llama2-7B and Llama3-8B show that PPF can generate dynamic/static pruning policies and it reduces perplexity by up to 33.4% (dynamic pruning) and 84.78% (static pruning) over existing methods, outperforming manually designed pruning policies. The performance predictor achieves second-level performance prediction with high accuracy (prediction error < 0.0011). It reduces the mean evaluation latency from minute-level (1 minute and 38.02 seconds of test-set evaluation methods) to second-level (1.52 seconds), achieving over 64 times speedup. Our code will be available at https://github.com/Ma-zx/PPF .

大模型压缩剪枝动态优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。