Skip to main content
QUICK REVIEW

[논문 리뷰] Model Compression and Efficient Inference for Large Language Models: A Survey

Wenxiao Wang, Wei Chen|arXiv (Cornell University)|2024. 02. 15.
Topic ModelingComputer Science인용 수 13
한 줄 요약

이 설문은 대형 언어 모델의 알고리즘적 모델 압축 및 효율적 추론 기법을 검토하고, 분류 체계, 도전과제, 프레임워크를 논의하며, 중형 LLMs와 대형 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.

연구 동기 및 목표

  • 자원 제약 기기에 LLMs를 배포하기 위해 메모리와 계산 비용을 줄일 필요성을 촉진한다.
  • LLMs의 압축 및 가속 방법의 분류 체계 제공(양자화, 가지치기, 증류, 컴팩트 아키텍처, 동적 네트워크).
  • 압축 후 미세조정/훈련 비용과 다재다능성/일반화 보존이라는 LLMs에 특화된 두 가지 핵심 도전 과제를 강조한다.
  • 중형 모델(≈1B 매개변수)과 '실제' 대형 모델(>1B)을 구분하여 적용 가능한 기술을 명확히 한다.
  • 압축 방법을 지원하는 성숙한 효율적 추론 프레임워크에 대한 입문 지침을 제공한다.

제안 방법

  • PTQ vs QAT에 따른 기술별로 LLMs의 압축 방법을 조사하고 분류한다.
  • 토론의 기초가 되는 Transformer 아키텍처의 개념을 설명한다(어텐션, MHA, 인코더/디코더 변형).
  • 각 범주(양자화, 가지치기, 증류, 컴팩트 디자인, 동적 네트워크) 내 대표적 방법을 요약하고 중형 대비 대형 모델에의 적용 가능성을 논의한다.
  • 미세조정 비용이 높은 LLMs에 맞춘 튜닝 프리 또는 튜닝 효율적 접근법을 논의한다.
  • 보정, 양자화 입자, 정적/동적 양자화 구분과 같은 실용적 고려사항을 소개한다.

실험 결과

연구 질문

  • RQ1저장 메모리 및 계산 비용을 과다한 재학습 없이 LLMs에 대해 가장 잘 줄이는 압축 및 가속 기술은 무엇인가?
  • RQ2양자화, 가지치기, 증류 및 동적 아키텍처가 압축 후 LLMs의 일반화와 다재다능성을 보존하도록 어떻게 적용될 수 있는가?
  • RQ3중형 모델과 진정한 대형 LLMs 사이에 존재하는 차이가 압축 전략 선택에 어떤 영향을 미치는가?
  • RQ4효율적 추론 및 압축된 LLM의 배포를 지원하는 프레임워크 및 실용 도구는 무엇인가?
  • RQ5압축 후 성능에 영향을 주는 실용적 고려사항(보정, 양자화 입자, PTQ vs QAT)은 무엇인가?

주요 결과

  • LLMs는 추론 중에 높은 메모리 및 계산 비용을 부과하므로 압축 및 효율적 추론 전략이 필요하다.
  • LLMs에 적용 가능한 압축 방법의 분류 체계가 존재하며, 양자화, 가지치기, 증류, 컴팩트 아키텍처, 동적 네트워크를 포함하고 조합 가능성이 있다.
  • 대형 모델은 두 가지 구분되는 도전에 직면한다: (1) 압축 후 미세조정/재학습 비용이 높아 튜닝 없는 또는 튜닝 효율적인 방법에 대한 관심을 촉진하고, (2) 단일 작업 성능보다 다재다능성/일반화에 중점을 둔다.
  • 설문은 중형(≈1B params)과 대형(>1B params) 모델을 구분하는 프레임워크를 도입하여 전통적 방법의 적용 가능성 여부와 전문적 접근이 필요한 시점을 명확히 한다.
  • 또한 실용배치를 위한 기본 압축/가속 기술을 지원하는 성숙한 추론 프레임워크에 대한 소개를 제공한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.