Chip-Tuning:在语言模型输出前进行分类
Chip-Tuning: Classify Before Language Models Say
AI总结:
本文提出Chip-Tuning,一种针对分类问题的结构化剪枝框架,通过在LLMs不同层附加微小探测分类器并冻结主干模型进行训练,实现高达50%的剪枝率且性能损失微小,同时具备多模态兼容性。
摘要:
大型语言模型(LLMs)性能的快速发展伴随着模型规模的扩大,导致模型训练和推理成本不断增加。先前的研究发现,LLMs中的某些层表现出冗余性,移除这些层只会带来模型性能的微小损失。在本文中,我们采用probing技术来解释LLMs中的层冗余,并证明语言模型可以通过probing classifiers进行有效剪枝。我们提出了chip-tuning,一个专门针对分类问题的简单且有效的结构化剪枝框架。Chip-tuning将名为chips的微小probing classifiers附加到LLMs的不同层上,并在backbone model冻结的情况下训练chips。选择一个chip进行分类后,附加层之后的所有层都可以被移除,且性能损失微乎其微。在各种LLMs和数据集上的实验结果表明,chip-tuning在准确率和剪枝率上均显著优于先前的state-of-the-art baselines,实现了高达50%的剪枝率。我们还发现chip-tuning可以应用于多模态模型,并可以与模型微调相结合,证明了其出色的兼容性。
英文摘要:
The rapid development in the performance of large language models (LLMs) is accompanied by the escalation of model size, leading to the increasing cost of model training and inference. Previous research has discovered that certain layers in LLMs exhibit redundancy, and removing these layers brings only marginal loss in model performance. In this paper, we adopt the probing technique to explain the layer redundancy in LLMs and demonstrate that language models can be effectively pruned with probing classifiers. We propose chip-tuning, a simple and effective structured pruning framework specialized for classification problems. Chip-tuning attaches tiny probing classifiers named chips to different layers of LLMs, and trains chips with the backbone model frozen. After selecting a chip for classification, all layers subsequent to the attached layer could be removed with marginal performance loss. Experimental results on various LLMs and datasets demonstrate that chip-tuning significantly outperforms previous state-of-the-art baselines in both accuracy and pruning ratio, achieving a pruning ratio of up to 50%. We also find that chip-tuning could be applied on multimodal models, and could be combined with model finetuning, proving its excellent compatibility.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。