OSFP4: Joint Optimization of Diagonal Smoothing and Block Scales for NVFP4 Quantization

Neriah Ben David, Ori Meir, Or Ordentlich
10/6/2026
cs.AI

Official code: neriahbd/OSFP4 (0 stars, Apache-2.0, last commit 2026-10-01).

Abstract

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

View on arXivView PDF

Code Implementations(1)

neriahbd/OSFP4Official100%
Apache-2.0
00PythonSep 30, 20262 weeks agoApache-2.0

Similar Papers

Cite this paper

@article{david2026osfp,
  title  = {OSFP4: Joint Optimization of Diagonal Smoothing and Block Scales for NVFP4 Quantization},
  author = {Neriah Ben David and Ori Meir and Or Ordentlich},
  year   = {2026},
  eprint = {2610.08231},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.08231v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.08231.svg)](https://codeofpaper.com/paper/2610.08231)

Discussion