Skip to content

CHALICE: Hardware-Legal Code and Scale Optimization for FP4 Quantization

Hongyaoxing Gu, Keke Li, Zhuoyuan Wu, Hengrui Ma, Ruilin Hu, Jun Zhang, Xinle Du, Jie Zhang, Wei Zhang, Yue Li, Mingcheng Wan

cs.LG

Abstract

Post-training quantization (PTQ) compresses large language model weights to 4 bits, sharing one low-precision scale across a small block in MXFP4 and NVFP4: E8M0 for MXFP4, E4M3 plus an FP32 multiplier for NVFP4. That scale cannot be optimized continuously and rounded afterwards, because a new scale moves the boundary that decides the codes and new codes move the best scale. We present \textbf{CHALICE}, which optimizes the deployable configuration---codes, stored scales, and global multiplier---under one frozen quadratic objective on the layer output, for symmetric and asymmetric calibration alike. Existing PTQ algorithms generate candidates; one criterion accepts them. The global multiplier is solved in closed form per candidate, an incremental verifier scores candidates exactly at a cost quadratic in the move support rather than in the layer, and a coupled sweep over codes and scales returns an ε\varepsilon-locally optimal configuration on a declared neighborhood. Across ten model--format blocks (three Qwen, two Llama-3.1), perplexity stays within 0.09 of the strongest baseline in eight, and CHALICE leads the average in four blocks and AIME25 in three, by up to 2.6 points on Qwen3.5-9B at NVFP4; an ablation there lowers calibration layer loss from 3.82 to 3.13 and WikiText-2 perplexity from 9.28 to 8.81.

Create a lesson