arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.03728cs.LGmath.OC
收藏

基于凸优化的逐层训练后剪枝器,用于大型语言模型

A Convex-optimization-based Layer-wise Post-training Pruner for Large Language Models

The University of Hong Kong(香港大学);Huawei Cloud(华为云)

Pengxiang Zhao, Hanyu Hu, Ping Li, Yi Zheng, Zhefeng Wang, Xiaoming Yuan

AI总结:

本文提出首个基于凸优化的训练后剪枝器FISTAPruner,通过ℓ1范数凸优化模型和FISTA求解器,结合层内累积误差校正与并行剪枝,在多个LLM上优于现有方法。

摘要:

剪枝是压缩已训练大型语言模型(LLMs)的关键策略,旨在在不牺牲性能的情况下大幅节省内存并加速计算。然而,现有剪枝方法通常需要对数十亿参数规模的LLMs进行低效的重新训练,或依赖诸如最优脑外科医生框架等启发式方法,这些方法会降低性能。在本文中,我们提出了FISTAPruner,这是首个基于凸优化模型和算法的训练后剪枝器。具体而言,我们提出了一个包含ℓ1范数以诱导稀疏性的凸优化模型,并利用FISTA求解器进行优化。FISTAPruner结合了层内累积误差校正机制,并支持并行剪枝。我们在OPT、LLaMA、LLaMA-2和LLaMA-3等模型上,在非结构化和2:4半结构化稀疏性条件下,对参数规模从125M到70B的模型进行了全面评估,结果表明在各种语言基准测试上,其性能优于现有的最先进方法。

英文摘要:

Pruning is a critical strategy for compressing trained large language models (LLMs), aiming at substantial memory conservation and computational acceleration without compromising performance. However, existing pruning methods often necessitate inefficient retraining for billion-scale LLMs or rely on heuristic methods such as the optimal brain surgeon framework, which degrade performance. In this paper, we introduce FISTAPruner, the first post-training pruner based on convex optimization models and algorithms. Specifically, we propose a convex optimization model incorporating $\ell_1$ norm to induce sparsity and utilize the FISTA solver for optimization. FISTAPruner incorporates an intra-layer cumulative error correction mechanism and supports parallel pruning. We comprehensively evaluate FISTAPruner on models such as OPT, LLaMA, LLaMA-2, and LLaMA-3 with 125M to 70B parameters under unstructured and 2:4 semi-structured sparsity, demonstrating superior performance over existing state-of-the-art methods across various language benchmarks.

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

↑