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

面向大语言模型的半结构化剪枝渐进式二值化

Progressive Binarization with Semi-Structured Pruning for LLMs

Shanghai Jiao Tong University(上海交通大学);ETH Zürich(苏黎世联邦理工学院)

Xianglong Yan, Tianao Zhang, Zhiteng Li, Haotong Qin, Yulun Zhang

AI总结:

针对二值化 LLM 仍有冗余且直接剪枝会严重降质的问题,提出 PBS²P 训练后框架,通过 SPBO 联合优化渐进稀疏与二值化,并以 CFS 分配剪枝比例和细化元素选择,在困惑度及下游任务上优于现有 SOTA 二值 PTQ 方法。

摘要:

大语言模型(LLM)在自然语言处理领域取得了显著进展,但其高昂的计算和内存成本阻碍了其在资源受限设备上的部署。二值化是最极端的量化形式,然而二值化模型仍包含可进一步去除的冗余。剪枝为消除此类冗余提供了自然途径,但与二值化的简单组合往往会导致严重的性能下降。本文提出渐进式二值化与半结构化剪枝(PBS²P),这是一种将二值化与半结构化剪枝无缝集成的新型训练后框架。我们首先提出带二值化优化的逐步半结构化剪枝(SPBO),该方法在优化二值化参数的同时逐步引入稀疏性,以共同降低剪枝和量化误差,从而实现更稳定、更准确的压缩。此外,我们提出由粗到细搜索(CFS),先分配剪枝比例,再细化元素选择,进一步提升整体性能。在多个 LLM 系列上的大量实验表明,PBS²P 在困惑度和下游准确率方面均持续优于最先进(SOTA)的二值训练后量化方法。代码和模型将在 https://github.com/XIANGLONGYAN/PBS2P 提供。

英文摘要:

Large language models (LLMs) have achieved remarkable progress in natural language processing, but their high computational and memory costs hinder deployment on resource-constrained devices. Binarization represents the most extreme form of quantization, yet binarized models still contain redundancy that can be further removed. Pruning provides a natural way to eliminate such redundancy, but naïve combination with binarization often results in severe performance degradation. In this paper, we propose Progressive Binarization with Semi-Structured Pruning (PBS$^2$P), a novel post-training framework that seamlessly integrates binarization and semi-structured pruning. We first propose Stepwise semi-structured Pruning with Binarization Optimization (SPBO), which progressively introduces sparsity while optimizing binarization parameters to jointly reduce pruning and quantization error, yielding more stable and accurate compression. Additionally, we propose a Coarse-to-Fine Search (CFS) that first allocates pruning ratios and then refines element selection, further enhancing overall performance. Extensive experiments across multiple LLM families show that PBS$^2$P consistently outperforms state-of-the-art (SOTA) binary post-training quantization methods in both perplexity and downstream accuracy. The code and models will be available at https://github.com/XIANGLONGYAN/PBS2P.

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

↑