arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.04185cs.LGcs.AIcs.CL
收藏

利用无标签数据的无梯度结构化剪枝

Gradient-Free Structured Pruning with Unlabeled Data

Google DeepMind(谷歌DeepMind);University of Alberta(阿尔伯塔大学)

Azade Nova, Hanjun Dai, Dale Schuurmans

AI总结:

针对 LLM 压缩依赖标签或重训练的问题,提出仅用无标签数据和预训练权重的无梯度结构化剪枝框架,在 GLUE、SQuAD 上数分钟内最高减少 40% FLOP,精度损失低于 4%。

摘要:

大语言模型(LLM)已在众多领域解决困难任务方面取得巨大成功,但这种成功伴随着高昂的计算成本和推理延迟。随着开发者和第三方对这些模型进行定制,提供高效推理的需求不断增长。已有许多工作尝试通过剪枝和蒸馏等模型压缩技术降低推理成本。然而,这些技术要么需要有标签数据,要么十分耗时,因为它们需要重新训练压缩后的模型以恢复准确率。本文提出一种仅使用无标签数据的无梯度结构化剪枝框架。使用 BERT_BASE 和 DistilBERT 在 GLUE 与 SQuAD 基准上进行的评估证明了所提方法的有效性。仅利用预训练模型的权重和无标签数据,在单块 GPU 上只需几分钟,即可将原始 FLOP 数量减少至多 40%,并且在所考虑的全部任务中准确率损失均低于 4%。

英文摘要:

Large Language Models (LLMs) have achieved great success in solving difficult tasks across many domains, but such success comes with a high computation cost, and inference latency. As developers and third parties customize these models, the need to provide efficient inference has increased. Many efforts have attempted to reduce inference cost through model compression techniques such as pruning and distillation. However, these techniques either require labeled data, or are time-consuming as they require the compressed model to be retrained to regain accuracy. In this paper, we propose a gradient-free structured pruning framework that uses only unlabeled data. An evaluation on the GLUE and SQuAD benchmarks using BERT$_{BASE}$ and DistilBERT illustrates the effectiveness of the proposed approach. By only using the weights of the pre-trained model and unlabeled data, in a matter of a few minutes on a single GPU, up to 40% of the original FLOP count can be reduced with less than a 4% accuracy loss across all tasks considered.

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

↑