Model Compression and Efficient Inference for Large Language Models: A Survey

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Wang, Wenxiao, Chen, Wei, Luo, Yicong, Long, Yongliu, Lin, Zhengkai, Zhang, Liye, Lin, Binbin, Cai, Deng, He, Xiaofei
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929244304572416
author Wang, Wenxiao
Chen, Wei
Luo, Yicong
Long, Yongliu
Lin, Zhengkai
Zhang, Liye
Lin, Binbin
Cai, Deng
He, Xiaofei
author_facet Wang, Wenxiao
Chen, Wei
Luo, Yicong
Long, Yongliu
Lin, Zhengkai
Zhang, Liye
Lin, Binbin
Cai, Deng
He, Xiaofei
contents Transformer based large language models have achieved tremendous success. However, the significant memory and computational costs incurred during the inference process make it challenging to deploy large models on resource-constrained devices. In this paper, we investigate compression and efficient inference methods for large language models from an algorithmic perspective. Regarding taxonomy, similar to smaller models, compression and acceleration algorithms for large language models can still be categorized into quantization, pruning, distillation, compact architecture design, dynamic networks. However, Large language models have two prominent characteristics compared to smaller models: (1) Most of compression algorithms require finetuning or even retraining the model after compression. The most notable aspect of large models is the very high cost associated with model finetuning or training. Therefore, many algorithms for large models, such as quantization and pruning, start to explore tuning-free algorithms. (2) Large models emphasize versatility and generalization rather than performance on a single task. Hence, many algorithms, such as knowledge distillation, focus on how to preserving their versatility and generalization after compression. Since these two characteristics were not very pronounced in early large models, we further distinguish large language models into medium models and ``real'' large models. Additionally, we also provide an introduction to some mature frameworks for efficient inference of large models, which can support basic compression or acceleration algorithms, greatly facilitating model deployment for users.
format Preprint
id arxiv_https___arxiv_org_abs_2402_09748
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Model Compression and Efficient Inference for Large Language Models: A Survey
Wang, Wenxiao
Chen, Wei
Luo, Yicong
Long, Yongliu
Lin, Zhengkai
Zhang, Liye
Lin, Binbin
Cai, Deng
He, Xiaofei
Computation and Language
Artificial Intelligence
Machine Learning
Performance
Transformer based large language models have achieved tremendous success. However, the significant memory and computational costs incurred during the inference process make it challenging to deploy large models on resource-constrained devices. In this paper, we investigate compression and efficient inference methods for large language models from an algorithmic perspective. Regarding taxonomy, similar to smaller models, compression and acceleration algorithms for large language models can still be categorized into quantization, pruning, distillation, compact architecture design, dynamic networks. However, Large language models have two prominent characteristics compared to smaller models: (1) Most of compression algorithms require finetuning or even retraining the model after compression. The most notable aspect of large models is the very high cost associated with model finetuning or training. Therefore, many algorithms for large models, such as quantization and pruning, start to explore tuning-free algorithms. (2) Large models emphasize versatility and generalization rather than performance on a single task. Hence, many algorithms, such as knowledge distillation, focus on how to preserving their versatility and generalization after compression. Since these two characteristics were not very pronounced in early large models, we further distinguish large language models into medium models and ``real'' large models. Additionally, we also provide an introduction to some mature frameworks for efficient inference of large models, which can support basic compression or acceleration algorithms, greatly facilitating model deployment for users.
title Model Compression and Efficient Inference for Large Language Models: A Survey
topic Computation and Language
Artificial Intelligence
Machine Learning
Performance
url https://arxiv.org/abs/2402.09748