Skip to main content
QUICK REVIEW

[논문 리뷰] Memory-Efficient Fine-Tuning of Compressed Large Language Models via sub-4-bit Integer Quantization

Jeonghoon Kim, Jung Hyun Lee|arXiv (Cornell University)|2023. 05. 23.
Topic ModelingComputer Science인용 수 28
한 줄 요약

PEQA는 양자화된 LLM의 양자화 스케일만 업데이트하고 정수 가중치를 고정시켜 메모리 효율적인 미세 조정과 서브-4비트 양자화에서 빠른 배치를 가능하게 하며 성능을 유지하거나 향상시킵니다.

ABSTRACT

Large language models (LLMs) face the challenges in fine-tuning and deployment due to their high memory demands and computational costs. While parameter-efficient fine-tuning (PEFT) methods aim to reduce the memory usage of the optimizer state during fine-tuning, the inherent size of pre-trained LLM weights continues to be a pressing concern. Even though quantization techniques are widely proposed to ease memory demands and accelerate LLM inference, most of these techniques are geared towards the deployment phase. To bridge this gap, this paper presents Parameter-Efficient and Quantization-aware Adaptation (PEQA) - a simple yet effective method that combines the advantages of PEFT with quantized LLMs. By updating solely the quantization scales, PEQA can be directly applied to quantized LLMs, ensuring seamless task transitions. Parallel to existing PEFT methods, PEQA significantly reduces the memory overhead associated with the optimizer state. Furthermore, it leverages the advantages of quantization to substantially reduce model sizes. Even after fine-tuning, the quantization structure of a PEQA-tuned LLM remains intact, allowing for accelerated inference on the deployment stage. We employ PEQA-tuning for task-specific adaptation on LLMs with up to 65 billion parameters. To assess the logical reasoning and language comprehension of PEQA-tuned LLMs, we fine-tune low-bit quantized LLMs using a instruction dataset. Our results show that even when LLMs are quantized to below 4-bit precision, their capabilities in language modeling, few-shot in-context learning, and comprehension can be resiliently restored to (or even improved over) their full-precision original performances with PEQA.

연구 동기 및 목표

  • Motivate reducing memory and computation during fine-tuning of large language models (LLMs).
  • Bridge parameter-efficient fine-tuning (PEFT) with quantization for quantized LLMs.
  • Propose and validate a method that tunes only quantization scales (PEQA) while freezing integer weights.
  • Demonstrate scalability up to 65B parameter models and performance restoration under quantization.
  • Show benefits in both task-specific adaptation and instruction-tuning scenarios.

제안 방법

  • Introduce PEQA: update only the per-channel quantization scales while keeping the quantized weight indices fixed.
  • Quantize pre-trained weights with per-channel scales and zero-points and freeze the integer quantization indices ${\bm{\bar{W}}}_{0}$.
  • Fine-tune quantization scales ${\bm{s}}_{0}$ (and their updates ${\bm{\nabla s}}$) for downstream tasks via standard fine-tuning objectives.
  • Allow task-switching by swapping task-specific scales ${\bm{s}}_{0}+\bm{\nabla s}$ without modifying the frozen integer weights.
  • Demonstrate that PEQA can be applied to weight-only quantized LLMs and to weight-activation quantization.
  • Compare PEQA against QAT and PEFT+PTQ in perplexity and show competitive performance at sub-4-bit precision.

실험 결과

연구 질문

  • RQ1Can updating only the quantization scales while freezing integer weights match or exceed the performance of full fine-tuning or other PEFT plus quantization methods?
  • RQ2Does PEQA scale to large models (up to 65B parameters) while significantly reducing memory usage during training and deployment?
  • RQ3Can PEQA restore or improve language modeling, few-shot in-context learning, and comprehension for quantized LLMs compared to full-precision baselines?
  • RQ4Is PEQA beneficial for both task-specific adaptation and instruction-tuning across multiple datasets and model sizes?

주요 결과

  • PEQA achieves competitive perplexity with QAT and outperforms LoRA+OPTQ across 3-bit and 4-bit settings.
  • PEQA substantially reduces DRAM usage during fine-tuning and deployment, enabling larger models under memory constraints.
  • For Wikitext2 and PennTreeBank, PEQA shows scalability with perplexity converging toward full-precision LoRA as model size grows.
  • Instruction-tuning with Alpaca demonstrates PEQA can restore few-shot in-context learning and comprehension performance in RTN-quantized LLMs.
  • PEQA reduces the number of learnable parameters and model size, enabling DRAM-efficient fine-tuning of up to 65B models.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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