atlas

Research map / Architectures and efficiency / Quantization

LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language Models

ICLR 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of LLMs · 19 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces LUT-GEMM, a lookup-table kernel that runs matrix-vector products directly on binary-coding-quantized (BCQ) weights with full-precision activations, removing dequantization and enabling single-GPU inference of OPT-175B.

Problem

Weight-only quantized LLM inference in the memory-bound generation phase relies on dequantization kernels (OPTQ, AWQ) that add overhead, and multi-GPU model parallelism is needed for large models in FP16.

Approach

Extend binary-coding quantization with a bias term so it represents both uniform and non-uniform quantization, then compute BCQ matrix-vector products via precomputed lookup tables of activation sub-vector combinations, avoiding dequantization; add group-wise scaling factors for a finer compression/accuracy trade-off.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace dequantization-plus-GEMM with direct LUT-GEMM on quantized weightsOPT-175B FFN first layer · OPT-175B FFN first layer, INT3 weightslatency: 0.3599 -> 0.2250 msHelped
use LUT-GEMM instead of cuBLAS tensor parallelism across 8 GPUsOPT-175B matrix multiplication · OPT-175B, q=2, 1 GPU vs cuBLAS q=16, 8 GPUstotal energy: 299.96 -> 43.49 mJHelped
quantize weights from 4-bit to 3-bit (ablation)LUT-GEMM AWQ · LLaMA-30B, 1 GPUlatency: 20.7 -> 18.1 msHelped
quantize weights from 4-bit to 3-bit (ablation)LUT-GEMM AWQ · LLaMA-30B, Wiki2perplexity: 4.23 -> 4.88Hurt
quantize weights from 4-bit to 3-bit (ablation)LUT-GEMM AWQ · LLaMA-65B, 2 GPUslatency: 25.4 -> 23.0 msHelped
quantize weights from 4-bit to 3-bit (ablation)LUT-GEMM AWQ · LLaMA-65B, Wiki2perplexity: 3.67 -> 4.24Hurt
reduce quantization from OPTQ 3-bit to LUT-GEMM 1-bit (ablation)OPT-175B generation · OPT-175B, 1 GPUlatency per token: 106.5 -> 30.4 msHelped
reduce quantization from OPTQ 3-bit to LUT-GEMM 1-bit (ablation)OPT-175B generation · OPT-175B, 1 GPUperplexityMixed
reduce group size from g=128 to g=32 at 2-bit quantization (ablation)LUT-GEMM OPTQ · OPT-175B, 1 GPUlatency: 46.5 -> 55.2 msHurt
reduce group size from g=128 to g=32 at 2-bit quantization (ablation)LUT-GEMM OPTQ · OPT-175B, Wiki2perplexity: 9.58 -> 8.94Helped
use smaller group size g (ablation)RTN-quantized OPT models · OPT-30B and OPT-66BperplexityMixed

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-2 PTB C4 LAMBADA PIQA MNLI

Benchmarks: WikiText-2 PTB C4 LAMBADA PIQA MNLI

Metrics: latency per token (ms) perplexity accuracy compression ratio speed-up

Baselines: OPTQ AWQ cuBLAS FP16 cuBLAS INT8

Builds on: binary-coding quantization OPTQ AWQ FasterTransformer

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy