OSFP4: Joint Optimization of Diagonal Smoothing and Block Scales for NVFP4 Quantization
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
Create a lesson
Metadata
- Categories
- cs.AI, cs.IT, math.IT
Related papers
AGL-SKILL: Coding Harnesses as Agentic Optimizers
Shared title terminologycs.AIRyan Tsui, Yuge Zhang, Yuqing Yang
Multi-agent System for Automatic Discovery of Pareto-optimal Meta-solvers for PDEs
Shared title terminologycs.AIYoungkyu Lee, Shanqing Liu, Jerome Darbon et al.
Provably Near-Optimal PQ in the Extended Zador Model
Shared title terminologycs.AIEdo Liberty, Ashwin Padaki, Amir Ingber
Taxi: Analyzing Agents at (Real) Scale
Shared title terminologycs.AIGuy Dar
Revisiting Learning to Delegate: LLM Discovered Heuristics for Large-Scale Vehicle Routing
Shared title terminologycs.AIZhengyang Wang, Renfei Tan, Shuze Daniel Liu et al.
AeroJEPA: A Two-Stage Framework for Aerosol Forecasting with Joint-Embedding Predictive Learning
Shared title terminologycs.AIZitong Shuai, Zengliang Zang, Chunlei Shi et al.