Skip to main content
QUICK REVIEW

[Paper Review] Model Compression and Efficient Inference for Large Language Models: A Survey

Wenxiao Wang, Wei Chen|arXiv (Cornell University)|Feb 15, 2024
Topic ModelingComputer Science13 citations
TL;DR

This survey reviews algorithmic model compression and efficient inference techniques for large language models, discusses taxonomy, challenges, and frameworks, and distinguishes medium versus large LLMs.

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.

Motivation & Objective

  • Motivate the need to reduce memory and compute costs to deploy LLMs on resource-constrained devices.
  • Provide a taxonomy of compression and acceleration methods for LLMs (quantization, pruning, distillation, compact architectures, dynamic networks).
  • Highlight two key challenges specific to LLMs: finetuning/training costs after compression and preserving versatility/generalization.
  • Differentiate medium models (≈1B params) from “real” large models (>1B) to clarify applicable techniques.
  • Offer introductory guidance to mature efficient-inference frameworks that support compression methods.

Proposed method

  • Survey and categorize compression methods for LLMs by technique and training/finetuning requirements (PTQ vs QAT).
  • Explain foundational concepts in Transformer architectures to ground the discussion (attention, MHA, encoder/decoder variants).
  • Summarize representative methods within each category (quantization, pruning, distillation, compact design, dynamic networks) and discuss their applicability to medium vs large models.
  • Discuss tuning-free or tuning-efficient approaches tailored to the high finetuning cost of LLMs.
  • Introduce practical considerations such as calibration, quantization granularity, and static/dynamic quantization distinctions.

Experimental results

Research questions

  • RQ1What compression and acceleration techniques best reduce memory and compute costs for LLMs without prohibitive retraining?
  • RQ2How can quantization, pruning, distillation, and dynamic architectures be adapted to preserve generalization and versatility of LLMs after compression?
  • RQ3What distinctions exist between medium models and truly large LLMs that affect the choice of compression strategy?
  • RQ4What frameworks and practical tools support efficient inference and deployment of compressed LLMs?
  • RQ5What are the practical considerations (calibration, quantization granularity, PTQ vs QAT) that influence performance after compression?

Key findings

  • LLMs impose high memory and computation costs during inference, motivating compression and efficient inference strategies.
  • A taxonomy of compression methods applies to LLMs, including quantization, pruning, distillation, compact architectures, and dynamic networks, with potential for combination.
  • Large models face two distinguishing challenges: (1) high cost of finetuning/retraining after compression, driving interest in tuning-free or tuning-efficient methods, and (2) emphasis on versatility/generalization across tasks rather than single-task performance.
  • The survey introduces a framework distinguishing medium (~1B params) from large (>1B params) models to clarify when traditional methods remain applicable versus when specialized approaches are needed.
  • The paper also provides an introduction to mature inference frameworks that support basic compression/acceleration techniques for practical deployment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.