paper-with-me

홈 › Papers

Pushing the Limits of Large Language Model Quantization via the Linearity Theorem

2024-11-26 · Vladimir Malinovskii, Andrei Panferov, Ivan Ilin, Han Guo, Peter Richtárik, Dan Alistarh

Quantizing large language models has become a standard way to reduce their memory and computational costs. Typically, existing methods focus on breaking down the problem into individual layer-wise sub-problems, and minimizing per-layer error, measured via various metrics. Yet, this approach currently lacks theoretical justification and the metrics employed may be sub-optimal. In this paper, we present a "linearity theorem" establishing a direct relationship between the layer-wise $\ell_2$ reconstruction error and the model perplexity increase due to quantization. This insight enables two novel applications: (1) a simple data-free LLM quantization method using Hadamard rotations and MSE-optimal grids, dubbed HIGGS, which outperforms all prior data-free approaches such as the extremely popular NF4 quantized format, and (2) an optimal solution to the problem of finding non-uniform per-layer quantization levels which match a given compression constraint in the medium-bitwidth regime, obtained by reduction to dynamic programming. On the practical side, we demonstrate improved accuracy-compression trade-offs on Llama-3.1 and 3.2-family models, as well as on Qwen-family models. Further, we show that our method can be efficiently supported in terms of GPU kernels at various batch sizes, advancing both data-free and non-uniform quantization for LLMs.

📄 PDF Abstract BibTeX arXiv:2411.17525

Code (2)

goodevening13/aquakv pytorch
hanguo97/flute jax

Tasks

GPULanguage ModelingLanguage ModellingLarge Language ModelQuantization

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

CLAQ: Pushing the Limits of Low-Bit Post-Training Quantization for LLMs

2024-05-27 · Haoyu Wang, Bei Liu, Hang Shao, Bo Xiao 외

Parameter quantization for Large Language Models (LLMs) has attracted increasing attentions recently in reducing memory costs and improving computational efficiency. Early approaches have been widely adopted. However, th…

Computational EfficiencyQuantization

SKIM: Any-bit Quantization Pushing The Limits of Post-Training Quantization

2024-12-05 · Runsheng Bai, Bo Liu, Qiang Liu

Large Language Models (LLMs) exhibit impressive performance across various tasks, but deploying them for inference poses challenges. Their high resource demands often necessitate complex, costly multi-GPU pipelines, or t…

ClusteringGPUQuantization

BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction

2021-02-10 · ICLR 2021 1 · Yuhang Li, Ruihao Gong, Xu Tan, Yang Yang 외

We study the challenging task of neural network quantization without end-to-end retraining, called Post-training Quantization (PTQ). PTQ usually requires a small subset of training data but produces less powerful quantiz…

image-classificationImage Classificationobject-detectionObject Detection+1

Achieving binary weight and activation for LLMs using Post-Training Quantization

2025-04-07 · Siqing Song, Chuang Wang, Ruiqi Wang, Yi Yang 외

Quantizing large language models (LLMs) to 1-bit precision significantly reduces computational costs, but existing quantization techniques suffer from noticeable performance degradation when using weight and activation p…

Quantization

An Extra RMSNorm is All You Need for Fine Tuning to 1.58 Bits

2025-05-12 · Cody Steinmetz, Gavin Childress, Aaron Herbst, Gavin Jones 외

Large language models (LLMs) have transformed natural-language processing, yet their scale makes real-world deployment costly. Post-training quantization reduces memory and computation but often degrades accuracy, while …

AllKnowledge DistillationLanguage ModelingLanguage Modelling+1