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
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 -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
Related papers
Scaling Laws for End-to-End LeVJEPA Pretraining: Compute- and Data-Efficient Representation Learning
Shared title terminologycs.LGAndy Zeyi Liu, Haoran Sun, Yagiz Devre et al.
Diffusion Adaptation Under Distribution Shifts via Distributionally Robust Optimization
Shared title terminologycs.LGZifan Wang, Amir Mohammad Karimi Mamaghan, Riccardo De Santi et al.
CARAT: Contrast-Aware Token-Normalized Rollout Allocation for Efficient Group-Relative Policy Optimization
Shared title terminologycs.LGCaleb Nguyen, Meilin Chen, Nadia Kowalski et al.
FirePFN: Fast In-Context Representation Encoding For Scaling Tabular PFNs
Shared title terminologycs.LGFelix Koch, Sasa Mladenovic, Marius Lindauer et al.
MedScope: Structured Clinical Optimization through Preference Estimation
Shared title terminologycs.LGAli Karkehabadi, Jamshid Hassanpour, Rayhaneh Shabani Nia et al.
GraphDDR: Divide-Distill-Route Framework for Large-Scale Graphs
Shared title terminologycs.LGMohit Meena, Yash Punjabi, Mahesh Chandran