Replay the Curvature: Accurate and Scalable NVFP4 Quantization for Large Language Model Inference
Organizations: KlingAI Research · University of Science and Technology of China · Fudan University · Shanghai AI Incubation and Innovation Center ·
Abstract
Large language models make weight storage and memory traffic major inference costs, motivating low-precision formats that represent each weight with only a few bits. Such formats use a scale to map floating-point values into a small codebook; NVFP4 improves local range utilization by letting every 16 E2M1 weights share an E4M3 block scale. Choosing that scale is difficult in GPTQ because quantizing one column updates those that follow, so evaluating a block independently can misestimate its final reconstruction error. Large models pose a second challenge: full-precision weights, calibration activations, and second-order state cannot all remain on one accelerator, while assigning complete layers to devices leaves each time-consuming layer solve serial. We introduce Schur Replay, a scale-selection algorithm that reproduces the GPTQ updates caused by each block scale and scores the resulting block error after accounting for compensation from unquantized columns. Separately, our execution infrastructure keeps only the active layer resident, tiers activations across device, host, and disk, retires full-precision layers after export, and distributes independent output rows across tensor-parallel ranks. Together, the algorithm and infrastructure attain and question-weighted recovery from BF16 across seven benchmarks on Qwen3.5-397B-A17B and Llama-3.3-70B-Instruct. On the 397B model, the infrastructure reduces measured per-layer time by over ModelOpt and over LLM Compressor, with lower memory used per GPU.
Figures & tables
| Method | MMLU-P | GSM8K | CMath | LiveCode | MGSM | HumEval | GPQA | W. Rec. (%) |
|---|---|---|---|---|---|---|---|---|
| BF16 | 76.09 | 92.19 | 91.80 | 44.75 | 92.00 | 91.46 | 55.05 | 100.00 |
| MR-GPTQ | 70.99 | 89.54 | 87.89 | 40.75 | 88.40 | 91.46 | 43.43 | 93.86 |
| GPTQ | 73.12 | 91.36 | 92.90 | 41.75 | 91.20 | 85.37 | 45.96 | 96.69 |
| ScaleSweep | 73.60 | 92.12 | 91.89 | 41.75 | 90.00 | 93.29 | 47.98 | 97.28 |
| Four Over Six+GPTQ | 73.91 | 90.67 | 91.53 | 40.25 | 89.20 | 87.80 | 52.02 | 97.32 |
| SmoothQuant+GPTQ | 74.07 | 90.22 | 91.53 | 43.00 | 89.20 | 92.68 | 52.53 | 97.60 |
| Method | MMLU-P | GSM8K | CMath | LiveCode | MGSM | HumEval | GPQA | W. Rec. (%) |
|---|---|---|---|---|---|---|---|---|
| BF16 | 55.19 | 93.25 | 86.61 | 31.00 | 92.00 | 84.15 | 37.88 | 100.00 |
| MR-GPTQ | 49.33 | 89.76 | 85.70 | 29.75 | 91.20 | 84.76 | 36.87 | 91.81 |
| GPTQ | 54.37 | 91.81 | 85.97 | 29.25 | 91.20 | 84.15 | 42.42 | 98.67 |
| AWQ+GPTQ | 54.24 | 93.18 | 86.70 | 32.00 | 92.80 | 81.71 | 39.90 | 98.85 |
| ScaleSweep | 54.53 | 92.72 | 86.34 | 31.50 | 90.00 | 84.15 | 38.38 | 99.03 |
| Four Over Six+GPTQ | 54.90 | 91.51 | 84.70 | 29.25 | 90.00 | 82.32 | 44.44 | 99.14 |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Half-width | Default | Macro recovery (%) |
|---|---|---|
| 1 | no | 97.70 |
| 4 | yes | 98.92 |
| 8 | no | 98.62 |
| 16 | no | 97.21 |
| Dataset | Weight | 1q (pp) | BF16 | Ours | |
|---|---|---|---|---|---|
| MMLU-Pro | 12,032 | 77.8% | 0.008 | 9,155 | 9,072 |
| GSM8K | 1,319 | 8.5% | 0.076 | 1,216 | 1,227 |
| CMath | 1,098 | 7.1% | 0.091 | 1,008 | 1,012 |
| LiveCodeBench | 400 | 2.6% | 0.250 | 179 | 169 |
| MGSM-English | 250 | 1.6% | 0.400 | 230 | 232 |
| HumanEval | 164 | 1.1% | 0.610 | 150 | 152 |
| Cell | Correct | Recovery (%) | questions vs. BF16 |
|---|---|---|---|
| BF16 | 12,047 | – | – |
| Ours (replay Schur) | 11,968 | 99.344 | |
| score_rtn (static Schur) | 11,953 | 99.220 | |
| win16 (replay Schur, ) | 11,960 | 99.278 | |
| metric_id (replay Euclidean) | 11,878 | 98.597 | |
| pure_rtn (static Euclidean) | 11,853 | 98.390 |
| Method | Act-order | Rel. MSE | Correct | Macro (%) | Weighted (%) |
|---|---|---|---|---|---|
| BF16 reference | – | – | 12,047 | 100.00 | 100.00 |
| RTN + shrink search | – | 0.0832 | 11,656 | 94.65 | 96.75 |
| GPTQ | – | 0.0480 | 11,908 | 95.48 | 98.84 |
| GPTQ | ✓ | 0.0440 | 11,599 | 94.99 | 96.28 |
| Schur Replay | – | 0.0379 | 11,997 | 98.49 | 99.59 |
| Schur Replay | ✓ | 0.0365 | 12,055 | 99.18 | 100.07 |
| Schur Replay group-scale selection |
|---|
| for do |
| if |
| end for |
| Batched replay and group-local GPTQ commit |
|---|
| for do |
| Tiered capture and asynchronous layer residency |
|---|
| Prefetch : ; ; ; record event |
| Onload : ; ; |
| Release : or after ; |
| Recoverable layer-wise PTQ pipeline |
|---|
| on every rank |
| for do |
| ; ; |
| Row-parallel GPTQ solve |
|---|
| // gather contraction features; retain tokens |
| // local Hessian row block |
| // all-gather row blocks to every rank |
| Dataset | BF16 | SOAR | Schur Replay |
|---|---|---|---|
| MMLU-Pro (12,032) | 9,155 | 8,970 | 9,072 |
| GSM8K (1,319) | 1,216 | 1,214 | 1,227 |
| CMath (1,098) | 1,008 | 1,019 | 1,012 |
| LiveCodeBench (400) | 179 | 165 | 169 |
| MGSM-English (250) | 230 | 223 | 232 |
| HumanEval (164) | 150 | 152 | 152 |
| Dataset | BF16 | SOAR | Schur Replay |
|---|---|---|---|
| MMLU-Pro (12,032) | 6,641 | 6,699 | 6,730 |
| GSM8K (1,319) | 1,230 | 1,216 | 1,229 |
| CMath (1,098) | 951 | 942 | 946 |
| LiveCodeBench (400) | 124 | 120 | 117 |
| MGSM-English (250) | 230 | 228 | 230 |
| HumanEval (164) | 138 | 135 | 137 |
| Method | Qwen Macro | Qwen W. Rec. | Llama Macro | Llama W. Rec. |
|---|---|---|---|---|
| BF16 | 77.62 | 100.00 | 68.58 | 100.00 |
| GPTQ | 74.52 | 96.69 | 68.45 | 98.67 |
| SmoothQuant+GPTQ | 76.18 | 97.60 | 68.15 | 99.26 |
| AWQ+GPTQ | 76.65 | 97.69 | 68.65 | 98.85 |
| Four Over Six+GPTQ | 75.05 | 97.32 | 68.16 | 99.14 |
| SOAR+GPTQ | 76.80 | 98.38 | 67.27 | 100.20 |
LLM Quantization
Large language model quantization reduces numerical precision to lower memory use and accelerate training or inference.
See all 381 papers