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

动态稀疏免训练:面向稀疏大语言模型的免训练微调

Dynamic Sparse No Training: Training-Free Fine-tuning for Sparse LLMs

Huawei Technologies(华为技术有限公司);University of Oxford(牛津大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);Eindhoven University of Technology(埃因霍温理工大学);Xiamen University(厦门大学);Tencent Youtu Lab(腾讯优图实验室);Institute of Artificial Intelligence, Xiamen University(厦门大学人工智能研究所)

Yuxin Zhang, Lirui Zhao, Mingbao Lin, Yunyun Sun, Yiwu Yao, Xingjia Han, Jared Tanner, Shiwei Liu, Rongrong Ji

AI总结:

本文提出DSnoT,一种免训练微调方法,通过迭代剪枝与生长最小化重构误差,在不进行反向传播的情况下高效提升稀疏大语言模型性能,尤其在高稀疏度下显著超越现有方法。

摘要:

规模不断增长的大语言模型(LLMs)虽然为即将到来的人工通用智能开辟了潜在路径,但遗憾的是,在其端侧部署的道路上投下了一道艰巨的障碍。作为在预训练大语言模型时代之前最成熟的降低模型复杂度方法之一,网络剪枝在LLMs时代似乎落后了,主要原因在于面对海量模型参数和训练数据时,其昂贵的微调(或重新训练)需求。为弥合这一产业与学术界之间的差距,我们提出了Dynamic Sparse No Training(DSnoT),这是一种免训练微调方法,能够在不进行昂贵的反向传播和任何权重更新的情况下轻微更新稀疏LLMs。受动态稀疏训练(Dynamic Sparse Training)的启发,DSnoT通过在稀疏LLMs之上执行迭代式权重剪枝与生长,以最小化稠密与稀疏LLMs之间的重构误差。为实现这一目标,DSnoT特别考虑了剪枝和生长时重构误差的预期减少量,以及不同输入数据对于每个权重生长的方差。由于该方法避免了为微调LLMs而进行反向传播的需要,因此可以在线性时间内高效执行。在LLaMA-V1/V2、Vicuna和OPT上跨多个基准的广泛实验证明了DSnoT在提升稀疏LLMs性能方面的有效性,尤其是在高稀疏度水平下。例如,在LLaMA-7B上70%稀疏度时,DSnoT能够以26.79的困惑度优势超越当前最先进的Wanda方法。我们的论文为如何以高效的免训练方式微调稀疏LLMs提供了新的见解,并为将稀疏性的巨大潜力扩展到LLMs开辟了新的途径。代码可在https://github.com/zyxxmu/DSnoT获取。

英文摘要:

The ever-increasing large language models (LLMs), though opening a potential path for the upcoming artificial general intelligence, sadly drops a daunting obstacle on the way towards their on-device deployment. As one of the most well-established pre-LLMs approaches in reducing model complexity, network pruning appears to lag behind in the era of LLMs, due mostly to its costly fine-tuning (or re-training) necessity under the massive volumes of model parameter and training data. To close this industry-academia gap, we introduce Dynamic Sparse No Training (DSnoT), a training-free fine-tuning approach that slightly updates sparse LLMs without the expensive backpropagation and any weight updates. Inspired by the Dynamic Sparse Training, DSnoT minimizes the reconstruction error between the dense and sparse LLMs, in the fashion of performing iterative weight pruning-and-growing on top of sparse LLMs. To accomplish this purpose, DSnoT particularly takes into account the anticipated reduction in reconstruction error for pruning and growing, as well as the variance w.r.t. different input data for growing each weight. This practice can be executed efficiently in linear time since its obviates the need of backpropagation for fine-tuning LLMs. Extensive experiments on LLaMA-V1/V2, Vicuna, and OPT across various benchmarks demonstrate the effectiveness of DSnoT in enhancing the performance of sparse LLMs, especially at high sparsity levels. For instance, DSnoT is able to outperform the state-of-the-art Wanda by 26.79 perplexity at 70% sparsity with LLaMA-7B. Our paper offers fresh insights into how to fine-tune sparse LLMs in an efficient training-free manner and open new venues to scale the great potential of sparsity to LLMs. Codes are available at https://github.com/zyxxmu/DSnoT.

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

↑