Salvato in:
Dettagli Bibliografici
Autori principali: Zhu, Fangwei, Li, Dian, Huang, Jiajun, Liu, Gang, Wang, Hui, Sui, Zhifang
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:https://arxiv.org/abs/2410.06541
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866929537448673280
author Zhu, Fangwei
Li, Dian
Huang, Jiajun
Liu, Gang
Wang, Hui
Sui, Zhifang
author_facet Zhu, Fangwei
Li, Dian
Huang, Jiajun
Liu, Gang
Wang, Hui
Sui, Zhifang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_06541
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Chip-Tuning: Classify Before Language Models Say
Zhu, Fangwei
Li, Dian
Huang, Jiajun
Liu, Gang
Wang, Hui
Sui, Zhifang
Computation and Language
Artificial Intelligence
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.
title Chip-Tuning: Classify Before Language Models Say
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2410.06541