[논문 리뷰] QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Models
QLLM은 적응형 채널 재구성 및 저랭크 오류 보정을 도입하여 대형 언어 모델의 4–6 비트 포스트 트레이닝 양자화(PTQ)를 정확하게 가능하게 하며, 이전 방법들보다 제로샷 정확도와 효율성에서 더 낫다.
Large Language Models (LLMs) excel in NLP, but their demands hinder their widespread deployment. While Quantization-Aware Training (QAT) offers a solution, its extensive training costs make Post-Training Quantization (PTQ) a more practical approach for LLMs. In existing studies, activation outliers in particular channels are identified as the bottleneck to PTQ accuracy. They propose to transform the magnitudes from activations to weights, which however offers limited alleviation or suffers from unstable gradients, resulting in a severe performance drop at low-bitwidth. In this paper, we propose QLLM, an accurate and efficient low-bitwidth PTQ method designed for LLMs. QLLM introduces an adaptive channel reassembly technique that reallocates the magnitude of outliers to other channels, thereby mitigating their impact on the quantization range. This is achieved by channel disassembly and channel assembly, which first breaks down the outlier channels into several sub-channels to ensure a more balanced distribution of activation magnitudes. Then similar channels are merged to maintain the original channel number for efficiency. Additionally, an adaptive strategy is designed to autonomously determine the optimal number of sub-channels for channel disassembly. To further compensate for the performance loss caused by quantization, we propose an efficient tuning method that only learns a small number of low-rank weights while freezing the pre-trained quantized model. After training, these low-rank parameters can be fused into the frozen weights without affecting inference. Extensive experiments on LLaMA-1 and LLaMA-2 show that QLLM can obtain accurate quantized models efficiently. For example, QLLM quantizes the 4-bit LLaMA-2-70B within 10 hours on a single A100-80G GPU, outperforming the previous state-of-the-art method by 7.89% on the average accuracy across five zero-shot tasks.
연구 동기 및 목표
- 메모리 및 계산량을 양자화를 통해 줄여 LLM의 효율적 배치를 촉진한다.
- 극도로 낮은 비트폭 regime에서 PTQ 정확도를 제한하는 활성화 이상치 문제를 다룬다.
- 그라디언트 없는 채널 재구성 프레임워크를 제안하여 이상치 크기를 채널 간에 재분배한다.
- 그라디언트 기반이 아닌, 저랭크 오류 보정 메커니즘을 도입하여 양자화 오류를 추가로 완화한다.
- 다수의 태스크에서 LLaMA-1 및 LLaMA-2 패밀리에 걸친 확장성과 효과를 시연한다.
제안 방법
- 이상치 채널을 분해하여 하위 채널로 분해하고 비슷한 채널을 결합하여 원래 채널 수를 유지하는 적응형 채널 재구성.
- 재구성 오차를 최소화하여 층당 하위 채널 수를 자동으로 결정하는 적응 전략.
- 각 프로젝션에 더해진 R^{M×r}의 A와 R^{r×N}의 B로 구성된 저랭크 행렬을 사용한 효율적 그라디언트 기반 오류 수정, 작은 교정 세트로 학습하고 학습 후 가중치에 융합.
- 양자화 오차 누적을 완화하기 위해 인접한 Attention-FFN 블록을 반복적으로 재구성하는 다중 블록 재구성.
- 추론 친화적 설계로 재구성된 채널은 추가 추론 비용 없이 양자화된 가중치로 다시 융합될 수 있다.
- 양자화 오차 전파를 고려하여 점진적으로 순차적 재구성 수행.

실험 결과
연구 질문
- RQ1 adaptive channel reassembly가 4–6 비트에서 LLM의 PTQ 정확도를 향상시키는 활성화 이상치를 효과적으로 억제할 수 있는가?
- RQ2이상치 억제와 정보 보존의 균형을 맞추기 위해 층별 재구성 비율을 자동으로 어떻게 선택하는가?
- RQ3작은 학습 가능한 저랭크 가중치를 추가하면 heavy training 없이 양자화된 LLM의 성능이 개선되는가?
- RQ4대형 모델에서 QLLM의 학습 및 추론 효율성은 기존의 PTQ 방법과 비교하여 어떤 영향을 미치는가?
- RQ50-샷 태스크 및 저비트폭에서 LLaMA-1 및 LLaMA-2에 대해 QLLM이 어떻게 성능을 발휘하는가?
주요 결과
- 4-bit 양자화에서 QLLM은 제로샷 정확도 및 혼합 perplexity에서 이전 PTQ 방법보다 현저히 우수하며, 특히 더 큰 모델에서 그렇다.
- 4-bit LLaMA-1-65B를 QLLM으로 양자화하면 OmniQuant를 평균 3.42 포인트 앞선다(다섯 가지 제로샷 태스크에서).
- LLaMA-7B의 경우 QLLM은 제로샷 태스크의 평균 정확도에서 8.6%까지 QAT 기준선(LLM-QAT + SQ)을 상회할 수 있다.
- QLLM은 10시간 내에 단일 A100-80G GPU에서 4-bit LLaMA-2-70B를 양자화하여 강력한 효율성을 입증한다.
- 학습 시간 비교에서 QLLM은 다수 구성에서 OmniQuant보다 상당한 시간이 덜 소요된다(예: LLaMA-2-70B: 9.05 vs 14.52 GPU 시간).
- 적응 임계값으로의 채널 재구성(분해 + 재구성)은 이전의 이상치 처리 방법에 비해 거의 손실 없는 성능 향상을 보이며, 특히 4-bit 양자화에서 두드러진다.
- 저랭크 오류 보정은 학습 가능한 매개변수의 소수로 양자화 오차를 추가로 감소시키며, 다중 블록 재구성을 통해 오차 누적을 완화한다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.