Extreme Compression of Large Language Models via Additive Quantization

Vage Egiazarian, Andrei Panferov, Denis Kuznedelev, Elias Frantar, Artem Babenko, Dan Alistarh

arXiv:2401.06118 · 2026-07-27 공개 · arXiv · PDF

transformer large-language-models model-compression memory-efficiency llm-quantization low-bit-quantization aqlm additive-quantization

Abstract

The emergence of accurate open large language models (LLMs) has led to a race towards performant quantization techniques which can enable their execution on end-user devices. In this paper, we revisit the problem of"extreme"LLM compression-defined as targeting extremely low bit counts, such as 2 to 3 bits per parameter-from the point of view of classic methods in Multi-Codebook Quantization (MCQ). Our algorithm, called AQLM, generalizes the classic Additive Quantization (AQ) approach for information retrieval to advance the state-of-the-art in LLM compression, via two innovations: 1) learned additive quantization of weight matrices in input-adaptive fashion, and 2) joint optimization of codebook parameters across each transformer blocks. Broadly, AQLM is the first scheme that is Pareto optimal in terms of accuracy-vs-model-size when compressing to less than 3 bits per parameter, and significantly improves upon all known schemes in the extreme compression (2bit) regime. In addition, AQLM is practical: we provide fast GPU and CPU implementations of AQLM for token generation, which enable us to match or outperform optimized FP16 implementations for speed, while executing in a much smaller memory footprint.

한국어 요약

한 줄 요약

AQLM은 2~3비트로 대규모 언어 모델을 압축하면서 정확도를 유지하는 새로운 추가 양자화 기법이다.

핵심 기여도

핵심 아이디어

AQLM은 기존의 정보 검색 분야에서 사용되던 추가 양자화(AQ)를 대규모 언어 모델(LLM) 압축에 적용한 첫 번째 방법이다. 기존의 직접 양자화는 각 가중치를 독립적으로 양자화하지만, AQLM은 여러 값을 공동으로 압축하여 상호 정보를 활용함. 이는 AQ의 전통적 최적화 문제를 재구성하여, 입력 토큰 분포에 따라 레이어 출력 오차를 최소화하고, 트랜스포머 블록 내 코드북 파라미터를 공동 최적화함으로써 이루어진다.

또한, AQLM은 아웃라이어 분리가 필요 없는 단일 형식의 양자화를 사용하여, 복잡한 하이브리드 형식을 피하고 실용성을 높였다. 이는 기존의 2비트 양자화 방식이 정확도 저하와 높은 실행 오버헤드를 동반하는 문제를 해결하는 핵심 아이디어이다.

기술적 접근법

주요 결과

의의 및 한계

AQLM은 2~3비트 압축에서 정확도-모델 크기 성능이 파레토 최적(Pareto optimal)임을 입증하며, 기존 2비트 양자화 기법의 한계를 극복함. 특히, 아웃라이어 분리 없이 단일 형식의 양자화를 사용하여 실용성을 높였으며, GPU 및 CPU에서의 빠른 실행이 가능하다는 점에서 실용적 가치가 높다.

그러나 AQLM은 RTN 또는 GPTQ와 같은 직접 양자화 방법보다 계산 비용이 높으며, 복잡한 코드 표현 방식으로 인해 초기 설정 및 최적화 과정에서 시간이 더 소요될 수 있다. 또한, 코드북 파라미터 최적화가 정확도에 큰 영향을 미치므로, 초기화 및 학습 데이터셋의 크기에 민감하다는 한계가 있다.

실용적 활용

AQLM은 모바일 및 임베디드 장치에서 대규모 언어 모델을 실행할 수 있도록 메모리와 계산 자원을 줄이는 데 유용하다. 특히, Llama 2와 같은 오픈 소스 모델을 사용하는 클라우드 외부의 엣지 컴퓨팅 환경에서 활용 가능하며, 저비용 하드웨어에서의 추론 성능 향상에도 기여할 수 있다.