CHALICE: Hardware-Legal Code and Scale Optimization for FP4 Quantization
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…
- arXiv
- 2612.04850
- Authors
- Hongyaoxing Gu, Keke Li, Zhuoyuan Wu, Hengrui Ma, Ruilin Hu and 6 more
- Categories
- cs.LG