NVFP4 is an efficient microscaling format for low-bit inference, but activation outliers can still degrade quantization accuracy within NVFP4 blocks. Within each quantization block, large activations can dominate the block scale, increasing the quantization error of the remaining values sharing the same scale. Existing post-training quantization (PTQ) methods mitigate outlier errors through strategies such as mixed precision, rotation, or residual compensation, but these approaches are either not specifically tailored to NVFP4 or introduce additional computation. In this work, we revisit NVFP4 from a channel-grouping perspective and define the reducible error incurred by remaining block values under the scale set by the block maximum as Collateral Quantization Error. Based on this insight, we propose OCGQuant, a post-training quantization method centered on Outlier-Companion Grouping (OCG), which adaptively pairs outlier channels with low-magnitude companion channels to improve NVFP4 activation block composition. Experiments on Llama3 and Qwen3 show that OCGQuant achieves the lowest WikiText-2 perplexity and highest average downstream accuracy among evaluated PTQ methods, while maintaining prefill speedup close to RTN and matching its peak decoding memory. Code is available at https://github.com/Eshamont/OCGQuant.
Figures & tables
Figure 1: Illustration of Outlier-Companion Grouping (OCG). OCG calibrates activation channels by RMS and pairs outlier channels with low-magnitude companion channels to improve activation block composition.
Figure 2: Linear output quantization MSE across layers for down_proj on Llama3.1-8B using NVFP4. OCGQuant obtains the lowest error across layers.
Figure 3: Overview of the OCGQuant inference workflow. Channel reordering is absorbed into NVFP4 activation quantization in Attention and MLP blocks, and the corresponding weights are reordered offline. The fused CUDA kernel and contiguous reorder-segment fast path reduce runtime overhead.
Method
Llama3.2-3B
Llama3.1-8B
Qwen3-1.7B
Qwen3-8B
Qwen3-32B
FP16
7.81
6.24
16.67
9.72
7.60
RTN
8.62
6.95
19.25
10.07
8.01
SmoothQuant
8.57
6.88
17.45
10.10
7.89
QuaRot
8.92
6.92
18.12
10.25
-
GPTQ
10.48
6.79
18.46
10.10
7.86
MR-GPTQ
8.50
6.86
18.70
10.27
7.96
Table 1: Perplexity results on WikiText-2 for Llama3 and Qwen3 models under NVFP4 quantization with different PTQ methods. QuaRot is unavailable on Qwen3-32B due to unsupported Hadamard dimensions.
Method
Llama3
Qwen3
3B
8B
1.7B
8B
FP16
68.75
75.42
62.29
73.53
RTN
66.16
72.65
56.82
71.73
SmoothQuant
66.07
73.29
57.22
72.21
QuaRot
64.07
72.74
56.20
71.09
GPTQ
65.20
72.57
58.26
72.44
Table 2: Average zero-shot accuracy over ARC-Challenge, ARC-Easy, BoolQ, HellaSwag, LAMBADA, and PIQA under NVFP4 quantization.
Figure 4: MMLU and GSM8K results for Llama3.2-3B-Instruct under NVFP4 quantization.
Figure 5: Inference efficiency of Llama3.1-8B. All quantized methods are evaluated with corresponding kernel fusion for a fair runtime comparison. (a) Prefill speedup over FP16 across batch sizes with sequence length 2048. (b) Decoding peak memory reduction factor ( × ) relative to FP16 across batch sizes.
Method
Llama3.2-3B
Qwen3-1.7B
RTN
8.62
19.25
+ GPTQ
10.48
18.46
+ OCG w/o AP
8.64
17.20
+ OCG
8.63
17.18
OCGQuant
8.37
16.71
Table 3: Ablation study of OCGQuant components on WikiText-2 perplexity. GPTQ denotes weight-only reconstruction, OCG w/o AP removes adaptive packing from OCG, OCG denotes activation-side optimization.
Format
Method
Llama3.2-3B
Qwen3-1.7B
MXFP4
RTN
9.87
22.80
GPTQ
10.72
24.06
OCG
9.84
20.34
OCGQuant
9.23
19.50
INT4
RTN
9.27
23.30
GPTQ
9.80
21.04
Table 4: Perplexity comparison of MXFP4 and INT4 quantization methods.
Size
Method
Llama3
Qwen3
3B
8B
1.7B
8B
8
RTN
8.44
6.78
18.50
9.94
ARCQuant
8.35
6.71
17.04
10.14
OCGQuant
8.21
6.63
16.91
9.93
16
RTN
8.62
6.95
19.25
10.07
ARCQuant
8.54
6.87
17.45
10.35
Table 5: Perplexity of NVFP4 quantization with different group sizes.
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 6: Weight and activation ranges along the input dimension in layer 16 of Qwen3-8B. The upper row reports weight ranges for individual output channels, while the lower row reports activation ranges for individual tokens, both across four projection modules. Activations show much larger extrema, especially in down_proj .
Figure 7: Outlier profiles of activations at the layer input across Llama3 and Qwen3 models. Across most layers, the top-3 activation outliers are vastly larger than the median, with Qwen3 models showing the most extreme values.
Figure 8: Token-channel distribution of activation magnitudes at the input to a representative gate_proj module in Qwen3-8B. Large values form persistent channel-aligned bands across tokens, showing that activation outliers are concentrated in a small set of channels rather than uniformly distributed.
Calib. Dataset
# Calibration Samples
Avg. ± Std.
64
128
256
512
WikiText-2
72.44
72.56
72.57
72.36
72.48 ± 0.10
C4
72.60
72.67
72.58
72.52
72.59 ± 0.06
Pile
72.37
72.73
72.16
72.52
72.45 ± 0.24
Avg. ± Std.
72.47 ± 0.12
72.65 ± 0.09
72.44 ± 0.24
72.47 ± 0.09
−
Appendix
Table 6: Impact of calibration datasets and sample sizes on Qwen3-8B. Each entry reports the average zero-shot accuracy across six downstream tasks. The final column and row report the mean and standard deviation across sample sizes and calibration datasets, respectively. Higher is better.
Method
Format
Llama3.2-3B
Llama3.1-8B
Qwen3-1.7B
Qwen3-8B
–
FP16
7.81
6.24
16.67
9.72
RTN
INT4
11.54
8.81
43.44
12.85
RPTQ
INT4
9.36
7.44
18.60
10.68
Atom
INT4+INT8
8.91
7.21
17.27
10.39
RTN
NVFP4
8.62
6.95
19.25
10.07
RPTQ-style
NVFP4
9.38
7.63
17.93
10.57
Appendix
Table 7: Perplexity comparison with existing reordering-based quantization methods. RPTQ-style denotes an adaptation of the RPTQ reordering strategy to NVFP4.
Component
Llama3.1-8B
Qwen3-8B
RMS profiling
43.52 s
45.04 s
Companion selection
0.55 s
0.89 s
Reorder
1.97 s
4.52 s
GPTQ
248.55 s
250.44 s
Total
294.59 s
300.89 s
Appendix
Table 8: Breakdown of the additional offline computation introduced by OCGQuant.
Size
FP16
RTN
ARCQuant
OCGQuant
1
11973
20752
18457
20159
2
12075
24052
21018
23345
4
11942
25599
22094
25035
8
11606
26321
22579
25846
16
11556
26838
22784
26439
Appendix
Table 9: Prefill throughput of Llama3.1-8B across batch sizes with sequence length 2048 (tokens/s).
Size
FP16
RTN
ARCQuant
OCGQuant
1
15.33
6.02
6.86
6.02
2
15.64
6.33
7.17
6.33
4
16.24
6.93
7.77
6.93
8
17.44
8.13
8.97
8.13
16
19.83
10.52
11.36
10.52
Appendix
Table 10: Peak decoding memory usage of Llama3.1-8B across batch sizes (GB).
Method
Size
Llama3
Qwen3
3B
8B
1.7B
8B
OCG
8
8.42
6.76
16.65
10.09
16
8.63
6.92
17.18
10.14
32
8.87
7.10
18.81
10.36
64
9.15
7.28
19.21
10.49
OCGQuant
8
8.21
6.63
16.91
9.93
Appendix
Table 11: Perplexity of OCG and OCGQuant under different NVFP4 group sizes on Llama3 and Qwen3 models.
Model
Method
ARC-C
ARC-E
BoolQ
Hella
Lamba
PIQA
Average
Llama3.2-3B
FP16
46.16
71.59
73.24
73.56
70.48
77.48
68.75
RTN
42.75
69.57
68.35
71.17
68.27
76.82
66.16
SmoothQuant
43.86
69.36
70.46
71.16
66.19
75.41
66.07
QuaRot
39.33
66.46
68.29
71.10
64.56
74.70
64.07
GPTQ
42.49
67.34
69.79
71.08
64.72
75.79
65.20
MR-GPTQ
42.75
70.24
72.08
71.06
67.11
75.52
66.46
Appendix
Table 12: Detailed downstream task accuracy of Llama3 and Qwen3 models under different NVFP4 PTQ methods. The best average accuracy among quantized methods is highlighted in bold.
NVFP4 is an attractive datatype for large language model (LLM) inference, offering compact storage and native tensor-core acceleration. However, preserving accuracy using NVFP4 requires careful quantization. In this work we develop a novel quantization scheme called Optimized Smoothing and Scaling for NVFP4 (OSFP4). For each linear projection it uses a diagonal smoothing matrix whose entries are optimized to minimize the squared matrix-product quantization error under NVFP4, taking into account the rounding procedure that is used (either round-to-nearest, or GPTQ-style successive interference cancellation). This requires performing joint optimization on the smoothing entries as well as the block scales, which is facilitated by analyzing a multiplicative-dither FP4 quantizer instead of the fixed deterministic one. Experiments show that OSFP4 achieves the highest average accuracy among the evaluated competitors in the corresponding quantization settings, while retaining approximately 94-97% of vendor NVFP4 prefill throughput on the measured workloads. Our code is available in https://github.com/neriahbd/OSFP4
Neriah Ben David, Ori Meir, Or Ordentlich
School of Computer Science and Engineering Hebrew University of Jerusalem Jerusalem, Israel
NVFP4 is a recently introduced hardware-supported FP4 format that improves the fidelity of 4-bit quantization through fine-grained block scales. However, existing NVFP4 scale initialization methods still primarily rely on AbsMax initialization, which leaves a noticeable gap to the optimal solution. To address this, we propose ScaleSweep, a simple and efficient scale optimization method that sweeps over feasible block scale candidates and selects the candidate that minimizes a target objective. We further provide a theoretical analysis of NVFP4 quantization and derive both lower and upper bounds for the required sweep range under mean square error (MSE) and weighted mean square error (WMSE) between the original tensor and the quantized reconstructed tensor. The proposed bounds substantially reduce the sweep space while preserving the optimal candidate, enabling negligible overhead compared with the baseline quantization operators. Experiments on Llama and Qwen models demonstrate that ScaleSweep consistently improves quantization performance over existing initialization methods and further narrows the gap to full precision. In particular, under aggressive end-to-end quantization of weights, activations, KV cache, and query states, ScaleSweep preserves more than 93% of the full-precision performance.
Li Lin, Xiaojun Wan
Wangxuan Institute of Computer Technology, Peking University
The emergence of fine-grained numerical formats like NVFP4 presents new opportunities for efficient Large Language Model (LLM) inference. However, it is difficult to adapt existing Post-Training Quantization (PTQ) strategies to these formats: rotation-based methods compromise fine-grained block isolation; smoothing techniques struggle with significant 4-bit quantization errors; and mixed-precision approaches often conflict with hardware constraints on unified-precision computation. To address these challenges, we propose ARCQuant, a framework that boosts NVFP4 performance via Augmented Residual Channels. Distinct from methods that compromise block isolation or hardware uniformity, ARCQuant maintains a strictly unified NVFP4 format by augmenting the activation matrix with quantized residual channels. This design integrates the error compensation process directly into the matrix reduction dimension, enabling the use of standard, highly optimized GEMM kernels with minimal overhead. Theoretical analysis confirms that the worst-case error bound of our dual-stage NVFP4 quantization is comparable to that of standard 8-bit formats such as MXFP8. Extensive experiments on LLaMA and Qwen models demonstrate that ARCQuant achieves state-of-the-art accuracy, comparable to full-precision baselines in perplexity and downstream tasks. Furthermore, deployment on RTX 5090 and RTX PRO 6000 GPUs confirms practical benefits, achieving up to 3x speedup over FP16. Our code is available at https://github.com/actypedef/ARCQuant.
Haoqian Meng, Yilun Luo, Yafei Zhao +3
School of Computer Science and Technology, Tianjin University