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

AI-generated keywords: Model Compression

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • The study focuses on challenges and solutions for deploying large language models on resource-constrained devices
  • Compression and acceleration algorithms for large language models are categorized into quantization, pruning, distillation, compact architecture design, and dynamic networks
  • Differentiating characteristics of large models include the need for fine-tuning or retraining post-compression and prioritizing versatility over performance on a single task
  • Medium-sized models are distinguished from "real" large models based on these characteristics
  • Mature frameworks for efficient inference of large models are introduced to support basic compression or acceleration algorithms
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Wenxiao Wang, Wei Chen, Yicong Luo, Yongliu Long, Zhengkai Lin, Liye Zhang, Binbin Lin, Deng Cai, Xiaofei He

47 pages, review 380 papers. The work is ongoing

Abstract: 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.

Submitted to arXiv on 15 Feb. 2024

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2402.09748v1

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

In their paper titled "Model Compression and Efficient Inference for Large Language Models: A Survey," authors Wenxiao Wang, Wei Chen, Yicong Luo, Yongliu Long, Zhengkai Lin, Liye Zhang, Binbin Lin, Deng Cai, and Xiaofei He delve into the challenges and solutions surrounding the deployment of large language models on resource-constrained devices. The study focuses on exploring compression and efficient inference methods for these models from an algorithmic perspective. Transformer-based large language models have seen remarkable success but face obstacles due to high memory and computational costs during inference. The authors categorize compression and acceleration algorithms for large language models into quantization, pruning, distillation, compact architecture design, and dynamic networks. They highlight two key characteristics that differentiate large models from smaller ones. Firstly, most compression algorithms for large models require fine-tuning or even retraining post-compression, which incurs a significant cost. To address this issue, researchers are exploring tuning-free algorithms like quantization and pruning. Secondly, large models prioritize versatility and generalization over performance on a single task. Algorithms such as knowledge distillation aim to preserve these qualities post-compression. The paper distinguishes between medium-sized models and "real" large models based on these characteristics. Additionally, the authors introduce mature frameworks for efficient inference of large models that support basic compression or acceleration algorithms. This introduction aims to facilitate model deployment for users by providing them with the necessary tools. Overall, the study spans 47 pages and reviews 380 papers as part of ongoing work in the field of model compression and efficient inference for large language models. Through their research efforts, the authors shed light on innovative approaches to address the challenges associated with deploying large language models efficiently on various devices while maintaining their effectiveness and versatility in different tasks.
Created on 05 Nov. 2024

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.