PLoQ: A Prompt-Specific Low-Rank Basis for 4-bit Quantization of LLM Activations
Organizations: Department of Computer Science, University of California, Irvine, CA, USA · NVIDIA, USA
Abstract
Low-bit activation quantization of large language models remains challenging, as a small number of dominant directions dictate the quantization range. State-of-the-art methods isolate these directions in a high-precision subspace through transformations calibrated offline and folded into the weights, which fixes the subspace for all prompts, leaving each prompt's few unique directions unprotected, and rules it out wherever no weight can absorb the transformation. We present PLoQ, a prompt-adaptive low-rank decomposition that extracts the dominant activation components before quantization, quantizes them separately, and restores them within the layer's GEMM, without modifying the weights. The low-rank component's basis is estimated from each prompt during prefill and reused throughout decoding. At the same bit width as state-of-the-art mixed-precision quantization (4-bit weights, activations and K/V cache with an eighth of the channels at 8 bits, about 4.2 bits per activation on average), PLoQ outperforms it on all six Llama and Qwen models from 1B to 70B parameters, at up to 8k tokens (16k on two of them), recovering up to 46% of the perplexity that the state of the art still loses to 4-bit activations. On Llama-3.1-8B at 8k tokens it adds only 4% to prefill and 8% to decoding.
Figures & tables
| 2k | 8k | |||
|---|---|---|---|---|
| Fit sample | ppl | held-out | ppl | held-out |
| First quarter | 11.357 | 10.587 | 10.074 | 9.925 |
| 11.346 | 10.573 | 10.035 | 9.871 | |
| 11.321 | 10.535 | 10.021 | 9.833 | |
| (PLoQ) | 11.329 | 10.540 | 10.032 | 9.843 |
| 11.326 | 10.491 | 10.034 | 9.796 | |
| 2k | 8k | |||
|---|---|---|---|---|
| Iterations | ppl | prefill | ppl | prefill |
| 0 | 11.436 (10.605) | 0.4 | 10.148 (9.937) | +0.7 |
| 1 (PLoQ) | 11.329 (10.540) | +14.2% | 10.032 (9.843) | +4.1% |
| 2 | 11.325 (10.500) | +4.4 | 10.008 (9.793) | +1.4 |
| Method | Llama-3.2 | Llama-3.1 | Qwen2.5 | Llama-3.1 | ||
|---|---|---|---|---|---|---|
| 1B | 3B | 8B | 7B | 32B | 70B | |
| 16-bit | 9.761 | 7.828 | 6.249 | 6.850 | 5.023 | 2.839 |
| W4KV4A16 | 10.452 | 8.114 | 6.531 | 8.003 | 5.198 | 3.246 |
| QuIK | 16.641 | 10.506 | 8.356 | 6.916 | 7.434 | |
| SpinQuant ∗ | 13.6 | 9.2 | 7.4 | – | – | 6.2 |
| QuaRot | 14.464 | 9.949 | 7.721 | 3624 † | 5.919 | 5.302 |
| Method | Llama-3.2 | Llama-3.1-8B | Qwen2.5 | Llama-3.1 | ||||
|---|---|---|---|---|---|---|---|---|
| 1B | 1B | 3B | 7B | 32B | 70B | |||
| 8k | 16k | 8k | 8k | 16k | 8k | 8k | 8k | |
| 16-bit | 8.652 | 8.394 | 6.989 | 5.614 | 5.478 | 6.129 | 4.469 | 2.567 |
| W4KV4A16 | 9.259 | 8.995 | 7.244 | 5.867 | 5.726 | 7.386 | 4.633 | 2.939 |
| QuIK | 14.923 | 14.769 | 9.606 | 7.472 | 7.282 | 6.178 | 6.708 | |
| QuaRot | 12.700 | 12.355 | 8.804 | 6.905 | 6.724 | – † | 5.254 | 4.774 |
| Method | Llama-3.2 | Llama-3.1 | Qwen2.5 | Llama-3.1 | ||
|---|---|---|---|---|---|---|
| 1B | 3B | 8B | 7B | 32B | 70B | |
| Commonsense, mean of eight tasks | ||||||
| QuIK | 44.7 | 51.8 | 57.7 | 31.5 | 61.0 | 58.2 ∗ |
| QuaRot | 45.1 | 53.9 | 59.2 | 36.1 | 62.2 | 63.2 |
| ResQ | 47.9 | 56.0 | 60.7 | 60.6 | 64.3 | 65.5 |
| PLoQ | 48.2 | 56.8 | 61.1 | 62.0 | 65.0 | 67.3 |
| Configuration | 2k | 8k |
| Calibrated block, 256 directions at 8 bits | 12.005 | 10.561 |
| 224 calibrated only | 12.067 | 10.595 |
| + rank-32 per-prompt component | 11.595 | 10.275 |
| + clipping the 4-bit tier | 11.357 | 10.074 |
| + fit on spaced blocks (PLoQ) | 11.329 | 10.032 |
| Random basis instead of per-prompt | – | 10.599 |
| 2k | 8k | |
|---|---|---|
| Prefill | +14.2% | +4.1% |
| Prefill, fit on 1/8 of the prompt | +14.3% | +2.4% |
| Decode, per step | +8.1% | +7.9% |
| FP16 | ResQ | PLoQ | |
| Weights (GB) | 16.06 | 5.92 (2.7 ) | 5.91 (2.7 ) |
| Per-sequence state, 8k (MB) | 1074 | 336 | 424 |
| Prefill, 2k (ms) | 193.2 | 68.7 (2.81 ) | 78.4 (2.46 ) |
| Prefill, 8k (ms) | 836.2 | 379.3 (2.20 ) | 394.7 (2.12 ) |
| Decode at 8k (ms/step) | 17.66 | 7.86 (2.25 ) | 8.47 (2.08 ) |
| Prefill, batch 8 (k tokens/s) | 10.7 | 27.2 (2.53 ) | 24.3 (2.26 ) |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| attn. in | attn. out | FFN in | down-proj. in | |
|---|---|---|---|---|
| Energy in calibrated top- , calibration set | 76.0% | 83.3% | 62.3% | 74.0% |
| held-out prompts | 74.9% | 81.1% | 59.7% | 70.6% |
| Prompt’s own top- | 88.5% | 94.0% | 82.8% | 96.5% |
| calibrated per prompt | 78.3% | 84.5% | 65.8% | 74.5% |
| 4-bit error, calibrated only | 0.066 | 0.057 | 0.083 | 0.076 |
| with the per-prompt directions removed | 0.061 | 0.052 | 0.077 | 0.071 |
| Component at | ppl | gain | prefill | decode |
|---|---|---|---|---|
| All four inputs | 10.032 | 100% | +4.2% | +7.8% |
| All but attention input | 10.060 | 95% | +2.9% | +6.9% |
| All but attention output | 10.080 | 91% | +3.2% | +5.8% |
| All but FFN input | 10.115 | 84% | +5.5% | +5.4% |
| FFN input and down-proj. | 10.114 | 84% | +1.8% | +5.0% |
| Down-projection only | 10.179 | 72% | +2.7% | +2.3% |
| Model | Ctx | ResQ | Per prompt | Calibrated | Shrunk |
| Llama-3.2-1B | 2k | 12.005 | 11.329 | 11.485 | 11.353 |
| 8k | 10.561 (10.100) | 10.032 ( 9.628 ) | 10.112 (9.684) | 10.068 (9.679) | |
| 16k | 10.210 (9.756) | 9.754 ( 9.338 ) | 9.802 (9.391) | 9.785 (9.404) | |
| Llama-3.2-3B | 2k | 8.680 | 8.451 | 8.552 | 8.474 |
| 8k | 7.731 (7.431) | 7.552 ( 7.262 ) | 7.607 (7.315) | 7.567 (7.283) | |
| Llama-3.1-8B | 2k | 7.093 | 6.835 | 6.913 | 6.861 |
| Budget | ResQ | PLoQ | |
|---|---|---|---|
| 256 | 10.561 | 10.032 | (224 + 32) |
| 320 | 10.407 | 9.952 | (256 + 64) |
| 384 | 10.242 | 9.843 | (256 + 128) |
| 512 | 10.106 | 9.731 | (256 + 256) |
| Model | Method | ARC-c | ARC-e | BoolQ | HellaS. | OBQA | PIQA | SIQA | WinoG. | Mean | MMLU |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Llama-3.2-1B | QuIK | 27.8 | 52.2 | 59.0 | 40.8 | 20.0 | 66.0 | 37.4 | 54.6 | 44.7 | 28.0 |
| SpinQuant ∗ | 32.3 | 51.8 | 59.3 | 55.4 | 30.4 | 67.7 | 38.6 | 54.7 | 48.8 | 25.6 | |
| QuaRot | 25.8 | 57.2 | 57.4 | 42.8 | 19.6 | 65.6 | 39.2 | 53.6 | 45.1 | 27.7 | |
| ResQ | 28.4 | 58.2 | 59.6 | 44.0 | 23.6 | 72.0 | 40.6 | 56.6 | 47.9 | 28.1 | |
| PLoQ | 29.6 | 59.6 | 55.6 | 43.4 | 25.6 | 72.2 | 41.4 | 58.0 | 48.2 | 33.7 | |
| Llama-3.2-3B | QuIK | 34.0 | 66.2 | 66.0 | 45.6 | 27.4 | 72.4 | 43.2 | 59.4 | 51.8 | 39.1 |
| 2k | 8k | |
| Prefill | +20.8% | +7.2% |
| Prefill, fit on 1/8 of the prompt | +19.2% | +4.7% |
| Decode, per step | +19.2% | +18.4% |
| Prefill vs FP16 | 1.89 / 1.56 | 1.71 / 1.59 |
| Decode vs FP16 | 1.56 / 1.30 | 1.57 / 1.33 |
LLM Quantization
Large language model quantization reduces numerical precision to lower memory use and accelerate training or inference.
See all 461 papers