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

Just CHOP:极其简单的大语言模型压缩方法

Just CHOP: Embarrassingly Simple LLM Compression

Allen Institute for Artificial Intelligence(艾伦人工智能研究所);Institute for Language, Cognition and Computation, University of Edinburgh(爱丁堡大学语言、认知与计算研究所);Language Technologies Institute, Carnegie Mellon University(卡内基梅隆大学语言技术研究所)

Ananya Harsh Jha, Tom Sherborne, Evan Pete Walsh, Dirk Groeneveld, Emma Strubell, Iz Beltagy

AI总结:

针对大语言模型压缩中剪枝策略忽视预训练后微调范式的问题,提出LayerChop方法,通过层剪枝加持续自监督预训练微调,在7B规模模型上实现优于结构化、半结构化压缩及蒸馏的效果与推理效率。

摘要:

大语言模型(LLM)具备无与伦比的少样本和零样本推理能力,但计算开销极高。目前已有越来越多的压缩方法有望降低LLM部署时的计算负担,但截至目前,仅量化方法被证明能在维持零样本性能的同时有效实现LLM压缩。在将现有剪枝策略适配于LLM或提出新剪枝策略的过程中,压缩流程里的关键步骤——“预训练后微调”范式——在很大程度上被忽视了。本研究表明,将极其简单的层剪枝与扩展式语言模型预训练(作为微调阶段)相结合,在7B规模模型的结构化甚至半结构化压缩任务中取得了当前最优结果,且推理效率更高。我们将该方法命名为LayerChop:先确定性地移除模型中的层,再通过持续自监督预训练对剩余权重进行任务无关的微调。在该模型规模下我们还发现,蒸馏法虽在较小的BERT风格模型的任务无关压缩中效果极佳,但相较于我们的简单剪枝技术效率更低。

英文摘要:

Large language models (LLMs) enable unparalleled few- and zero-shot reasoning capabilities but at a high computational footprint. A growing assortment of methods for compression promises to reduce the computational burden of LLMs in deployment, but so far, only quantization approaches have been demonstrated to be effective for LLM compression while maintaining zero-shot performance. A critical step in the compression process, the pretrain-then-finetune paradigm, has largely been overlooked when adapting existing pruning strategies to LLMs or proposing new ones. In this work, we show that embarrassingly simple layer pruning coupled with an extended language model pretraining as the finetuning phase produces state-of-the-art results against structured and even semi-structured compression of models at a 7B scale while being more inference efficient. We call this method LayerChop, where we deterministically remove layers from a model followed by task-agnostic finetuning of the remaining weights by continued self-supervised pretraining. At this scale, we also show how distillation, which has been super effective in task-agnostic compression of smaller BERT-style models, becomes inefficient against our simple pruning technique.

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

↑