arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.23652cs.LGcs.AI
收藏

结构手术刀:面向大语言模型的自动化连续层剪枝

The Structural Scalpel: Automated Contiguous Layer Pruning for Large Language Models

Institute of Cyberspace Security, College of Information Engineering, Zhejiang University of Technology(浙江工业大学信息工程学院网络安全研究所);Binjiang Institute of Artificial Intelligence, Zhejiang University of Technology(浙江工业大学滨江人工智能研究院);City College of New York, City University of New York(纽约市立大学城市学院);Australian AI Institute, Faculty of Engineering and Information Technology, University of Technology(澳大利亚人工智能研究院,技术大学工程与信息学院)

Yao Lu, Yuqi Li, Wenbin Xie, Shanqing Yu, Qi Xuan, Zhaowei Zhu, Shiping Wen

AI总结:

针对现有大语言模型层剪枝忽略层间依赖导致性能骤降的问题,提出含可微凹门控与截断端点调优的CLP连续层剪枝框架,多模型实验显示其性能显著优于现有基线,还可与量化结合进一步压缩模型。

摘要:

尽管大语言模型(LLM)已在诸多领域取得革命性突破,但其庞大的模型规模与高昂的计算成本,给资源受限的边缘设备上的实际部署带来了严峻挑战。为此,学界提出层剪枝方法,通过直接移除冗余层来降低计算开销。然而现有层剪枝方法通常依赖手工设计的指标来评估并移除单个层,却忽略了层间的依赖关系,这会破坏模型的信息流,导致性能严重下降。针对这些问题,我们提出CLP——一种新型连续层剪枝框架,它包含两项核心创新:一是可微凹门控算法,可通过基于梯度的优化自动识别最优的连续剪枝层段;二是截断端点调优策略,仅需微调剪枝段相邻的层即可有效恢复模型性能。我们在多种模型架构(包括LLaMA2、LLaMA3和Qwen)及不同规模(70亿至700亿参数)上开展了大量实验,结果表明CLP的性能显著优于现有最优基线方法。例如,在20%的剪枝率下,CLP在LLaMA3-70B上实现了95.34%的平均性能保留率,较基线方法高出4.29%至30.52%。此外,CLP可与量化技术无缝结合,在仅造成轻微性能损失的情况下进一步压缩模型。

英文摘要:

Although large language models (LLMs) have achieved revolutionary breakthroughs in many fields, their large model size and high computational cost pose significant challenges for practical deployment on resource-constrained edge devices. To this end, layer pruning has been proposed to reduce the computational overhead by directly removing redundant layers. However, existing layer pruning methods typically rely on hand-crafted metrics to evaluate and remove individual layers, while ignoring the dependencies between layers. This can disrupt the model's information flow and severely degrade performance. To address these issues, we propose CLP, a novel continuous layer pruning framework that introduces two key innovations: a differentiable concave gate algorithm that automatically identifies the best continuous layer segments for pruning via gradient-based optimization; and a cutoff endpoint tuning strategy that effectively restores model performance by fine-tuning only the layers adjacent to the pruned segments. Extensive experiments across multiple model architectures (including LLaMA2, LLaMA3 and Qwen) and sizes (from $7$B to $70$B parameters) show that CLP significantly outperforms existing state-of-the-art baselines. For example, at a pruning rate of $20\%$, CLP achieves an average performance retention of $95.34\%$ on LLaMA3-70B, outperforming baselines by $4.29\%$-$30.52\%$. Furthermore, CLP can be seamlessly combined with quantization to further compress the model with only a slight performance loss.

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

↑