Protecting just 1% of salient weight channels in FP16 cuts OPT-1.3B 3-bit quantization perplexity from 119.00 to 16.91, and Activation-aware Weight Quantization (AWQ) captures that accuracy gain in uniform INT4/INT3 tensors without mixed-precision kernels, delivering 3.2x to 3.3x average speedups over HuggingFace FP16 via TinyChat.

  • Salience lives in activations, not weights: Selecting 1% of channels by activation magnitude dropped OPT-6.7B INT3-g128 WikiText-2 perplexity from 23.54 (round-to-nearest, RTN) to 11.39 (vs. 10.86 FP16), whereas picking 1% by largest weight norm stayed at 22.37.
  • 10x less calibration data, minimal domain drift: Using only 16 calibration sequences (2,048 tokens each) instead of GPTQ’s 192 sequences, AWQ cut OPT-6.7B calibration-shift degradation (PubMed vs. Enron) to +0.50 to +0.60 perplexity compared with +2.33 to +4.89 for GPTQ.
  • Preserves coding, math, and multimodal skills: Under INT4-g128, AWQ scored 40.64 pass@1 on CodeLlama-7B MBPP (vs. 38.53 FP16 and 31.97 GPTQ), 56.40 on Llama-2-70B GSM8K (vs. 56.41 FP16), and lost only 1.17 CIDEr on 32-shot OpenFlamingo-9B COCO captioning (vs. -6.72 for GPTQ).
  • Real edge throughput: TinyChat W4A16 pushed Llama-2-7B to 194 tokens/s on an RTX 4090 (vs. 52 FP16), 39 tokens/s on Jetson Orin (vs. 11 FP16), and ran Llama-2-13B at 33 tokens/s on an 8 GB laptop RTX 4070 where FP16 hits OOM even at 7B.
How AWQ turns mixed-precision insight into uniform 4-bit weights
1. Naive RTN (INT3-g128)
Uniform rounding destroys large-activation input channels. OPT-6.7B WikiText-2 PPL spikes from 10.86 to 23.54 (OPT-1.3B hits 119.00).
2. Keep 1% in FP16
Keeping top 1% activation-salient channels in FP16 cuts OPT-6.7B PPL to 11.39, but mixed-precision breaks tensor-core hardware efficiency.
3. AWQ Per-Channel Scale
Scales salient weights by s = s_X^alpha (fused 1/s on inputs), shrinking relative error by 1/s in pure INT3/INT4 (OPT-6.7B PPL: 11.39).

Source: Lin et al. (2024), Figure 2 and Tables 1 and 3. Metric: WikiText-2 perplexity (lower is better).

How Activation-Aware Scaling Works

In a linear layer y = Wx, uniform group quantization rounds weights using group scale Delta = max(|w|) / 2^(N-1). Multiplying a salient weight channel w by s > 1 while dividing the incoming activation by s (Q(w * s)(x / s)) leaves the full-precision function unchanged, yet alters rounding noise.

Because uniform rounding error averages ~0.25 regardless of s, and scaling up a tiny 1% fraction rarely changes the group maximum Delta (at s = 2 on OPT-6.7B, only 8.2% of groups see Delta shift, with average Delta'/Delta = 1.038), the salient weight’s relative quantization error drops by (Delta'/Delta) / s (to 0.519 at s = 2). That single step pulls OPT-6.7B INT3-g128 perplexity from 23.54 to 11.92. Pushing s too high (s = 4) shifts Delta in 21.2% of groups (1.213x), inflating error on non-salient weights and worsening perplexity to 12.36.

To balance both automatically without backpropagation or Hessian regression, AWQ sets per-channel scale s = s_X^alpha, where s_X is the average activation magnitude per input channel from a small Pile calibration sample, and grid-searches 20 values of alpha in [0, 1] to minimize ||Q(W * diag(s))(diag(s)^(-1) * X) - WX|| alongside MSE weight clipping. Skipping weight-matrix reconstruction is why AWQ avoids overfitting to calibration prose.

TinyChat: Turning 4x Smaller Weights Into Real Speedup

Profiling Llama-2-7B on an RTX 4090 at batch size 1 shows why weight-only W4A16 beats W8A8 for on-device generation: summarizing 200 prompt tokens takes 10 ms, whereas generating 20 tokens takes 310 ms at an arithmetic intensity near 1 FLOP/Byte (far below the 4090’s 165 FLOPs/Byte compute ridge), because FFN weight reads exceed activation reads by 1,700x (79x in attention). Cutting weights to 4 bits raises decode arithmetic intensity 4x.

TinyChat W4A16 decode throughput vs. HuggingFace FP16 (batch size 1)
Median tokens/second generating 200 tokens from a 4-token prompt (higher is better)
RTX 4090 · Llama-2-7B (AWQ vs. HF FP16)194 vs. 52 tok/s (3.7x)
RTX 4090 · MPT-7B (AWQ vs. HF FP16)158 vs. 59 tok/s (2.7x)
Jetson Orin 64GB · Llama-2-7B (AWQ vs. HF FP16)39 vs. 11 tok/s (3.5x)
RTX 4070 8GB Laptop · Llama-2-13B (AWQ vs. FP16)33 tok/s (FP16 OOM)

Source: Lin et al. (2024), Figure 9. TinyChat also runs VILA-7B/13B VLMs 2.9x to 3.1x faster on Jetson Orin (Table 10).

Because hardware lacks native INT4 x FP16 instructions, TinyChat fuses on-the-fly dequantization directly inside matrix-vector and matrix-matrix kernels to avoid writing expanded FP16 weights back to DRAM. It also interleaves weights to match SIMD bitwidths (w_0, w_16, w_1, w_17, ... on 128-bit ARM NEON to unpack 32 4-bit weights in 3 SIMD ops, yielding up to 1.2x speedup; w_{0,2,4,6,1,3,5,7} on GPUs) and fuses LayerNorm, QKV projections, and KV-cache updates.

Caveats and Builder Takeaway

AWQ only compresses weights, so long-context serving still hits KV-cache memory limits unless paired with KV-cache quantization, grouped-query attention, or PagedAttention. Moreover, weight-only W4A16 shines at small batch sizes (memory-bandwidth bound); once large server batches raise arithmetic intensity past the GPU’s compute ridge, dequantization overhead can erode speedups relative to W8A8 or FP8. At extreme INT2-g64 precision, AWQ alone is not enough, though combining AWQ scaling with GPTQ drops OPT-13B perplexity from 16.74 to 13.25.

For local, edge, or low-batch inference (7B to 70B models), INT4-g128 AWQ is an easy default: it calibrates in seconds from ~16 general-text sequences without overfitting, keeps coding, math, and vision-language accuracy nearly lossless, and runs cleanly inside vLLM, TensorRT-LLM, and HuggingFace Transformers.