CodeQuant2: Enhanced Outlier Mitigation and Adaptive Clustering for Low-Precision LRMs
Xingyu Liu, Xiangyang Yin, Tianhua Xia, Haiyu Wang, Sai Qian Zhang
Abstract
Large reasoning models (LRMs) improve task performance by generating longer intermediate reasoning traces, but this substantially increases inference costs and makes low-precision quantization increasingly important. However, aggressively quantized models often perform poorly on reasoning tasks. We observe larger activation fluctuations during the first decoding steps of reasoning. Calibration that omits these early states may miss their activation fluctuations. To address these reasoning-specific quantization challenges, we propose \textbf{CodeQuant2}, a clustering-based LUT quantization framework for low-precision large reasoning models. CodeQuant2 mitigates activation outliers with rotation and scaling, uses clustering to represent non-uniform weight distributions, and adapts codebook sizes to the quantization difficulty of each layer. Guided by our observation of reasoning-time activation behavior, CodeQuant2 further improves calibration sample selection to better match actual decoding statistics. Combined with our customized LUT CUDA kernel, CodeQuant2 delivers substantial accuracy improvements on reasoning benchmarks while achieving up to speedup over BF16.
Create a lesson
Related papers
CART: Clustering-based Analysis of Recurring narratives for Taxonomy construction
Shared title terminologycs.CLAggelos Semoglou, Thomas Tselentis, John Pavlopoulos
Rethinking the Evaluation of Contrastive Decoding for Hallucination Mitigation in Multimodal Large Language Models
Shared title terminologycs.CLTing Chen, Geng Li, Guohao Chen et al.
Can Speech LLMs Recognize When Audio Evidence Is Insufficient? A Diagnostic Study and a Pre-Generation Probing Mitigation
Shared title terminologycs.CLVladislav Nesterenko, Polina Doronicheva, Olga Golubeva et al.
EmoRouter: Adaptive Modality Cascading for Multimodal Emotion Recognition
Shared title terminologycs.CLFangxu Yu, Lingzhi Yuan, Dehai Min et al.
HiCAP: Hierarchical Cultural Adaptation via Personality for Dialogue Generation
Shared title terminologycs.CLLingzhi Shen, Xiaohao Cai, Yunfei Long et al.
Adapting Small Language Models to Romanized Nepali: Tokenizer Fertility, Reference Likelihood, and Generation Metrics
Shared title terminologycs.CLPujan Pant, Sagar Newpane, Hari Sitaula et al.