盘古轻量:面向大语言模型剪枝与加速的权重重新初始化方法
Pangu Light: Weight Re-Initialization for Pruning and Accelerating LLMs
AI总结:
盘古轻量通过创新的权重重新初始化技术(如CLAP和SLNP),实现大语言模型结构化剪枝与加速,在精度和效率上超越现有方法,并在昇腾NPU上展现出显著优势。
摘要:
大语言模型(LLMs)在众多任务中展现出最先进的能力,但其巨大的规模和推理成本给实际部署带来了显著的计算挑战。尽管结构化剪枝为模型压缩提供了一条有前景的途径,但现有方法往往难以应对同时进行激进的宽度和深度缩减所带来的不利影响,导致性能大幅下降。本文认为,在使这种激进的联合剪枝可行方面,一个关键且常被忽视的方面是对剩余权重进行策略性的重新初始化与调整,以提升模型剪枝后的训练精度。我们提出了盘古轻量(Pangu Light),一个以结构化剪枝为核心并结合新颖的权重重新初始化技术的大语言模型加速框架,旨在解决这一“缺失环节”。我们的框架系统地针对多个维度,包括模型宽度、深度、注意力头以及RMSNorm,其有效性根植于新颖的重新初始化方法,如跨层注意力剪枝(CLAP)和稳定化层归一化剪枝(SLNP),这些方法通过为网络提供更好的训练起点来缓解性能下降。为进一步提升效率,盘古轻量还融入了诸如吸收后置RMSNorm计算等专门优化,并针对昇腾NPU特性定制其策略。盘古轻量模型始终展现出优越的精度-效率权衡,超越了如Nemotron等主流基线剪枝方法和如Qwen3系列等成熟大语言模型。例如,在昇腾NPU上,盘古轻量-32B的平均得分81.6和吞吐量2585 tokens/s,超过了Qwen3-32B的平均得分80.9和吞吐量2225 tokens/s。
英文摘要:
Large Language Models (LLMs) deliver state-of-the-art capabilities across numerous tasks, but their immense size and inference costs pose significant computational challenges for practical deployment. While structured pruning offers a promising avenue for model compression, existing methods often struggle with the detrimental effects of aggressive, simultaneous width and depth reductions, leading to substantial performance degradation. This paper argues that a critical, often overlooked, aspect in making such aggressive joint pruning viable is the strategic re-initialization and adjustment of remaining weights to improve the model post-pruning training accuracies. We introduce Pangu Light, a framework for LLM acceleration centered around structured pruning coupled with novel weight re-initialization techniques designed to address this ``missing piece''. Our framework systematically targets multiple axes, including model width, depth, attention heads, and RMSNorm, with its effectiveness rooted in novel re-initialization methods like Cross-Layer Attention Pruning (CLAP) and Stabilized LayerNorm Pruning (SLNP) that mitigate performance drops by providing the network a better training starting point. Further enhancing efficiency, Pangu Light incorporates specialized optimizations such as absorbing Post-RMSNorm computations and tailors its strategies to Ascend NPU characteristics. The Pangu Light models consistently exhibit a superior accuracy-efficiency trade-off, outperforming prominent baseline pruning methods like Nemotron and established LLMs like Qwen3 series. For instance, on Ascend NPUs, Pangu Light-32B's 81.6 average score and 2585 tokens/s throughput exceed Qwen3-32B's 80.9 average score and 2225 tokens/s.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。