alphaFeedback

WorksComputer Science

CodeQuant2: Enhanced Outlier Mitigation and Adaptive Clustering for Low-Precision LRMs

AI contributions
Not recorded for this paper
View details
Ancillary data
1 code link
View

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 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 2.85×2.85\times speedup over BF16.

Introduction

Large reasoning models (LRMs) [18, 52, 2] have become important for structured, multi-step tasks such as mathematical reasoning, code generation, and tool-augmented decision making. By spending more computation on reasoning, these models achieve stronger performance but incur higher inference costs from longer generation traces, larger memory footprints, and increased compute demand. Low-precision quantization is therefore a key strategy for efficient deployment. Recent hardware support further strengthens this trend: NVIDIA Hopper [36] and Ada GPUs [35] support FP8 arithmetic, while Blackwell extends it to FP4 [3], making low-precision LRM inference increasingly practical.

However, activation outliers remain a major obstacle to low-bit quantization in LRMs, as in conventional foundation models [13, 41]. These extreme values enlarge the quantization range, leaving limited effective precision for most activations and causing large approximation errors. In reasoning generation, such errors are even more harmful because they can accumulate across autoregressive decoding steps [28, 25, 26]. Since reasoning tasks often involve long multi-step traces, errors introduced early can be amplified later and degrade final reasoning quality [58, 28]. Therefore, despite progress in outlier-smoothing post-training quantization methods [4, 50, 49, 30, 26, 53], aggressive low-bit quantization still struggles to maintain stable performance on complex reasoning tasks.

Existing methods address these challenges from complementary directions. Outlier-smoothing techniques, including scaling and rotation, mitigate activation quantization errors [50, 4, 30, 26]. Meanwhile, clustering-based quantization represents weights using learned centroids, better capturing non-uniform weight distributions [22, 53]. Moreover, clustering-based representations naturally support lookup-table (LUT) inference, offering opportunities for efficient low-bit deployment. Building on these complementary approaches, we adopt clustering-based LUT quantization as the foundation of our framework and identify two key considerations for accurate and efficient inference.

Although existing outlier-mitigation techniques improve activation quantization, these gains do not always translate into comparable improvements on reasoning tasks. To understand this gap, we examine activation behavior during reasoning and observe higher activation fluctuations and channel-wise outliers in early decoding steps, which gradually weaken as generation progresses. Existing outlier-mitigation techniques do not naturally account for these reasoning-specific decoding-stage-dependent activation patterns. Thus, we argue that outlier mitigation should explicitly emphasize high-variance early-decoding activations to better preserve reasoning quality. This motivates us to design a calibration strategy that better captures these early-stage activation patterns.

Beyond activation calibration, clustering-based quantization offers another degree of freedom: the number of clusters assigned to each weight matrix. Allocating more clusters to sensitive matrices can improve quantization quality, but also increases LUT inference latency. Thus, effective cluster allocation should balance quantization performance and hardware-aware inference latency, rather than optimizing accuracy alone. We therefore design a performance–latency-balanced cluster allocation strategy based on matrix sensitivity and profiled execution costs.

Building on these two design principles, we present CodeQuant2, a clustering-based low-bit quantization framework for LRMs. Our contributions can be summarized as follows:

  • We propose CodeQuant2, a clustering-based quantization framework that combines reasoning-aware calibration, fine-tuned rotation and scaling transformations, and differentiable assignment tuning, enabling learned cluster assignments to handle outlier-heavy distributions.

  • We further introduce Adaptive Cluster Allocation (ACA), which adaptively assigns cluster numbers by balancing accuracy and hardware efficiency for each target matrix.

  • We design a GPU kernel that directly executes on the clustered representation by recasting decode-time matrix multiplication as table-lookup computation. In the evaluated GPU settings, CodeQuant2 achieves up to 2.85×2.85 \times speedup while improving reasoning accuracy.

Large Reasoning Model

Chain-of-thought prompting and related methods show that explicitly unfolding intermediate reasoning steps can improve performance on complex tasks [47, 46, 55]. Recent large reasoning models internalize this capability through longer reasoning traces or dedicated thinking modes, enabled by additional test-time compute [40, 18, 52, 2]. Their training increasingly relies on reinforcement-learning-based post-training, from earlier PPO-style methods [31, 51] to recent GRPO-based approaches and variants [40, 18, 54, 17]. Thus, explicit reasoning traces, extra test-time computation, and RL-driven post-training have become defining features of current LRMs. Despite their strong reasoning ability, LRMs are more fragile under aggressive low-bit quantization than standard language models. Prior work shows that quantization can cause much larger degradation on reasoning benchmarks, even when general-task performance remains relatively stable [28, 25, 58]. This is largely because quantization errors during autoregressive generation can accumulate over long reasoning traces, making low-bit LRM quantization more challenging than quantizing conventional foundation models [28, 26, 58].

Outlier Aware Quantization

Activation outliers are a major challenge for low-bit LLM quantization. Prior work has shown that the input activations to self-attention weight matrices often exhibit pronounced channel-wise outliers [12, 42, 49], where a small number of channels have much larger magnitudes than the rest. These outliers dominate the quantization range and introduce large quantization errors when low-bit quantization is applied. One solution is to isolate or retain outliers in higher precision, as in mixed-precision methods such as LLM.int8() [12] and SPQR [15]. While effective, these methods often introduce irregular computation and memory access, reducing hardware efficiency.

To preserve uniform low-precision execution, many methods instead apply computational invariant transformations before quantization. Scaling-based methods, such as SmoothQuant [50], use channel-wise scaling to redistribute quantization difficulty between activations and weights, while rotation-based methods, such as QuaRot [4], SpinQuant [30], and ParoQuant [26], spread outliers through orthogonal transformations. Let X∈RN×din\mathbf{X} \in\mathbb{R}^{N \times d_{\mathrm{in}}} be the hidden states and T∈Rdin×din\mathbf{T} \in\mathbb{R}^{d_{\mathrm{in}} \times d_{\mathrm{in}}} an invertible transformation along the hidden dimension. For a linear projection W∈Rdout×din\mathbf{W} \in\mathbb{R}^{d_{\mathrm{out}} \times d_{\mathrm{in}}}, inserting TT−1\mathbf{T}\mathbf{T}^{-1} preserves the output given that XW⊤=XTT−1W⊤=(XT)(WT−⊤)\mathbf{X}\mathbf{W}^{\top} = \mathbf{X}\mathbf{T}\mathbf{T}^{-1}\mathbf{W}^{\top} = (\mathbf{X}\mathbf{T})(\mathbf{W}\mathbf{T}^{-\top}).

The transformation T\mathbf{T} can be instantiated as an orthogonal rotation or a diagonal scaling matrix. These transformations reduce outlier concentration and improve robustness under low-precision quantization. More recently, CodeQuant [53] combines rotation with clustering-based non-uniform quantization. However, aggressive low-bit quantization remains challenging, particularly for reasoning tasks.

Non-uniform Quantization

Non-uniform quantization provides a more flexible alternative to fixed uniform bins for the highly irregular distributions encountered in aggressive low-bit LLM compression. Existing work in this direction can be roughly divided into two categories. The first adjusts scalar quantization levels to better match the underlying distribution, as exemplified by NF4 in QLoRA [14]. The second adopts stronger clustering-based representations to improve expressiveness in the low-bit regime, as explored in SqueezeLLM and CodeQuant [22, 53]. Related work has also investigated vector quantization as an even stronger low-bit representation [29]. Overall, non-uniform quantization has shown clear advantages over uniform quantization, but existing methods still focus on static reconstruction quality and general compression settings, leaving low-bit quantization for LRMs underexplored.

GEMM with Lookup Table-based Implementation

GEMM with clustered multiplicands requires efficient Lookup Table (LUT) support for practical deployment. Without hardware-friendly LUTs, centroids must be stored and loaded as floating-point values during computation, introducing substantial memory and execution overhead. Existing work has approached this problem from both CPU and GPU settings. On CPUs, DeepGEMM [16], LUTin [27], and T-MAC [48] explore LUT-oriented execution paths for low-precision inference, with an emphasis on kernel design, memory efficiency, and reformulating mixed-precision GEMM as table lookup. On GPUs, LUT-GEMM [37], FLUTE [19], and LUT Tensor Core [33] develop increasingly specialized kernels and software-hardware co-design techniques to reduce lookup overhead and better integrate LUT computation into high-throughput matrix multiplication pipelines.

Methodology

In this section, we present the methodology of CodeQuant2, as shown in Figure 1. We first motivate the design by showing that decoding on reasoning tasks induce activation behaviors not well captured by conventional calibration data. We then introduce CodeQuant2’s main components, including fine-tuned rotation and scaling for outlier mitigation, adaptive cluster allocation, and differentiable clustering quantization. Finally, we describe the LUT-based GPU kernel for efficient inference.

Figure 1. Overview of the CodeQuant2 framework. Left: Rotation and scaling are fused into the model for outlier smoothing. Right: CodeQuant2 applies fine-tuned rotation and scaling, allocates clusters adaptively, tunes centroids and assignments, and uses a LUT-based kernel for inference.

Outlier Behavior in Large Reasoning Models

To better characterize outlier behavior in LRMs, we analyze the distributions of self-attention activations on reasoning benchmarks, including GSM8K [10] and AIME25 [56]. As shown in Figure 2, models generating reasoning traces exhibit substantially larger activation fluctuations during the early decoding stage. In particular, the average activation standard deviation over the first 30 decoding steps is about 20% higher than that of non-thinking decoding, while non-thinking statistics remain relatively stable across steps. The heatmaps on the right of Figure 2 show the channel-wise activation standard deviation across layers at decoding steps 1 and 400 for LRMs. At step 1, strong channel-wise outliers appear from shallow layers and persist toward deeper layers. By contrast, at later decoding steps, the outlier pattern becomes noticeably weaker.

Figure 2. Activation behavior during reasoning decoding on GSM8K [10], measured on Qwen3-4B-Thinking [44] and averaged over 128 samples. Left: Averaged activation standard deviation across decoding steps with and without thinking. Right: Activation heatmaps at representative decoding steps.

Because quantization errors introduced early in reasoning can propagate through later decoding steps and affect subsequent token generation, reducing error at the beginning of the reasoning process is especially important. This observation motivates our reasoning-aware calibration strategy. During local fine-tuning, we combine activations from early tokens decoded by the full-precision model with general-text samples. Section 4 gives the sampling details. Additional results across reasoning models and datasets appear in Appendix A.

Fine-tuned Rotation and Scaling for Outlier Smoothing

Motivated by the outlier patterns in Figure 2, we aim to smooth input activations further before low-precision quantization. To this end, we jointly apply rotation and scaling for outlier mitigation. Specifically, we introduce a shared orthogonal rotation matrix R\mathbf{R} and layer-wise diagonal scaling matrices Sℓ,t\mathbf{S}_{\ell,t}, where ℓ\ell denotes the layer index and t∈{QKV,FFN}t \in\{\mathrm{QKV}, \mathrm{FFN}\} denotes the projection group. We apply rotation, scaling, and quantization only to the query, key, value, gate, and up projections. Given an input activation X\mathbf{X} and its corresponding weight matrix W∈Rdout×din\mathbf{W} \in\mathbb{R}^{d_{\mathrm{out}} \times d_{\mathrm{in}}}, the transformed activation and weight are defined as XRS=XRSℓ,t\mathbf{X}_{RS} = \mathbf{XRS}_{\ell,t} and WRS=WRSℓ,t−1\mathbf{W}_{RS} = \mathbf{WRS}_{\ell,t}^{-1}, respectively. This transformation preserves the original linear operation since XRSWRST=XWT\mathbf{X}_{RS}\mathbf{W}_{RS}^{\mathsf{T}} = \mathbf{XW}^{\mathsf{T}}. The transformed weights can be computed offline. We optimize R\mathbf{R} and Sℓ,t\mathbf{S}_{\ell,t} through local fine-tuning by minimizing the activation quantization error over the calibration set:

R⋆,{Sℓ,t⋆}=arg⁡min⁡R,{Sℓ,t}∥XRS−X~RS∥2(1)\mathbf{R}^{\star},\{\mathbf{S}_{\ell,t}^{\star}\}=\underset{\mathbf{R},\{\mathbf{S}_{\ell,t}\}}{\arg\min}\left\lVert\mathbf{X}_{RS}-\widetilde{\mathbf{X}}_{RS}\right\rVert^{2} \tag*{(1)}

where X~RS\widetilde{\mathbf{X}}_{RS} denotes the quantized activation. We parameterize R\mathbf{R} with the Cayley transform [34, 24, 30] to preserve orthogonality during optimization.

Adaptive Cluster Allocation

After the input activations are transformed as described in § 3.2, activation quantization error is reduced, but preserving the full-precision layer output still requires careful weight clustering. In CodeQuant2, each weight value is mapped to one of the KK centroids in a learned codebook, with details described in Section 3.4. Therefore, the cluster number KK directly determines the codebook size and directly affects both quantization accuracy and system latency. Since K=2bK = 2^{b} corresponds naturally to a bb-bit index, existing clustering-based methods typically choose KK based on the target bitwidth and use the same cluster number for all target linear layers [22, 53]. However, such uniform assignment is often suboptimal. Empirically, matrices exhibit different sensitivities to clustering. Some can be represented with fewer clusters while introducing limited output perturbation, whereas others require more clusters to preserve accuracy.

Motivated by the effectiveness of mixed precision, we propose to adaptively assign the cluster number KK to balance matrix importance and hardware performance. For simplicity, we adjust KK at the matrix level, treating it as a capacity parameter. We restrict KK to a predefined candidate set K\mathcal{K}. In our experiments, K={8,16,32}\mathcal{K} = \{8, 16, 32\}. We initialize all target matrices with the original cluster number KoriK_{\mathrm{ori}}, and then estimate the effect of changing KK for each matrix before selecting which matrices to update.

The impact of cluster-number adjustment on accuracy is estimated through the local reconstruction error. Given the original cluster number KoriK_{\mathrm{ori}} and the corresponding clustered weight W~RS(Kori)\widetilde{\mathbf{W}}_{RS}^{(K_{\mathrm{ori}})}, the clustered output Y~(Kori)\widetilde{\mathbf{Y}}^{(K_{\mathrm{ori}})} under this cluster assignment is written as Y~(Kori)=X~RS(W~RS(Kori))T\widetilde{\mathbf{Y}}^{(K_{\mathrm{ori}})} = \widetilde{\mathbf{X}}_{RS}(\widetilde{\mathbf{W}}_{RS}^{(K_{\mathrm{ori}})})^{\mathsf{T}}. When changing the cluster number from KoriK_{\mathrm{ori}} to Ktar∈KK_{\mathrm{tar}} \in\mathcal{K}, the corresponding local output perturbation is ΔYKori→Ktar=X~RS((W~RS(Kori))T−(W~RS(Ktar))T)\Delta\mathbf{Y}_{K_{\mathrm{ori}}\to K_{\mathrm{tar}}} = \widetilde{\mathbf{X}}_{RS}((\widetilde{\mathbf{W}}_{RS}^{(K_{\mathrm{ori}})})^{\mathsf{T}} - (\widetilde{\mathbf{W}}_{RS}^{(K_{\mathrm{tar}})})^{\mathsf{T}}). The full-precision output of this layer on the calibration inputs is Yfp=XWT=XRSWRST\mathbf{Y}_{\mathrm{fp}} = \mathbf{X}\mathbf{W}^{\mathsf{T}} = \mathbf{X}_{RS}\mathbf{W}_{RS}^{\mathsf{T}}. To estimate the accuracy impact of this change, we use a first-order approximation of the local reconstruction loss Lrecon=∥Yfp−Y~(Kori)∥22\mathcal{L}_{\mathrm{recon}} = \lVert\mathbf{Y}_{\mathrm{fp}} - \widetilde{\mathbf{Y}}^{(K_{\mathrm{ori}})} \rVert_2^2. This gives the following importance score:

IKori→Ktar=1N∥ΔYKori→Ktar⊙∇Y~Lrecon∥F2.(2)I_{K_{\mathrm{ori}}\to K_{\mathrm{tar}}} = \frac{1}{N}\left\lVert\Delta\mathbf{Y}_{K_{\mathrm{ori}}\to K_{\mathrm{tar}}} \odot\nabla_{\widetilde{\mathbf{Y}}}\mathcal{L}_{\mathrm{recon}} \right\rVert_F^2. \tag*{(2)}

where ∇Y~Lrecon\nabla_{\widetilde{\mathbf{Y}}}\mathcal{L}_{\mathrm{recon}} denotes the gradient of the local reconstruction loss with respect to the clustered output. The derivation is provided in Appendix B. For efficiency, CodeQuant2 computes this score using the local reconstruction loss, although the same formulation can also be extended to the final training loss of LLMs. This choice avoids full model-level backpropagation and only requires gradient computation for the local GEMM operation, substantially reducing the computational overhead.

Considering only the importance score leads to a trivial solution, since it would assign the maximum number of clusters to every group. On the other hand, increasing KK also introduces higher LUT-based processing latency. To balance quantization quality and system performance, we profile the LUT execution latency of each target matrix under different cluster numbers on the target GPU platform. Let Tm(K)T_m(K) denote the profiled lookup latency of weight matrix mm when using KK clusters. All matrices are initialized with KoriK_{\mathrm{ori}}, with latency Tm(Kori)T_m(K_{\mathrm{ori}}). Starting from 16 clusters (4-bit indices), we pair a change to 32 clusters (5-bit indices) for one matrix with a change to 8 clusters (3-bit indices) for another. Each pair has an average index width of 4 bits across the two matrices. We also account for their profiled latency. We increase KK for the matrix with the largest estimated benefit and decrease KK for the matrix with the smallest estimated loss, subject to the latency budget. Figure 3(a) summarizes this allocation process.

Figure 3. Adaptive cluster allocation and clustering. Left: Importance scores and latency guide cluster allocation. Right: K-means initializes the centroid matrix and per-row binary assignment matrices.

Learnable Clustering for Enhanced Performance

To better align the quantized model with the full-precision model, CodeQuant2 fine-tunes the clustered weights by optimizing a centroid matrix and learning soft assignment matrices while keeping the initial K-means assignments fixed. Let W∈Rdout×din\mathbf{W} \in\mathbb{R}^{d_{\mathrm{out}}\times d_{\mathrm{in}}} be a weight matrix. Its ii-th row is Wi,:\mathbf{W}_{i,:}, where 0≤i<dout0 \leq i < d_{\mathrm{out}}. Figure 3(b) shows an example weight matrix W∈R3×4\mathbf{W} \in\mathbb{R}^{3\times4} clustered with K=3K = 3. We initialize the clustering by applying K-means to each row. For row ii, the clustered weight is

W~i,:T=Aici.(3)\widetilde{\mathbf{W}}_{i,:}^{\mathsf{T}} = A_i c_i. \tag*{(3)}

The centroid matrix C∈Rdout×K\mathbf{C} \in\mathbb{R}^{d_{\mathrm{out}} \times K} stores one codebook per output row. We write its ii-th row as ciT\mathbf{c}_i^{\mathsf{T}}, where ci∈RK\mathbf{c}_i \in\mathbb{R}^{K}. The binary matrix Ai∈{0,1}din×K\mathbf{A}_i \in\{0,1\}^{d_{\mathrm{in}} \times K} records the initial K-means assignments for row ii of W\mathbf{W}. Its jj-th row selects the centroid for WijW_{ij}. We use Yfp\mathbf{Y}_{\mathrm{fp}}, defined before Eq. (2), as the reference output for the local reconstruction loss:

Lrecon=∥Yfp−X~RSW~RST∥F2.(4)\mathcal{L}_{\mathrm{recon}} = \left\lVert\mathbf{Y}_{\mathrm{fp}} - \widetilde{\mathbf{X}}_{\mathrm{RS}}\widetilde{\mathbf{W}}_{\mathrm{RS}}^{\mathsf{T}} \right\rVert_{\mathrm{F}}^2 . \tag*{(4)}

During fine-tuning, we keep the initial K-means assignments fixed and learn soft assignments through low-rank updates. We stack the one-hot assignment matrices Ai\mathbf{A}_i into A∈{0,1}dout×din×K\mathbf{A} \in\{0,1\}^{d_{\mathrm{out}} \times d_{\mathrm{in}} \times K}. To reduce the number of trainable parameters, we apply LoRA to the first two dimensions:

A′=softmax⁡(A+BdBuτ),(5)\mathbf{A}^{\prime} = \operatorname{softmax}\left(\frac{\mathbf{A} + \mathbf{B}^{d}\mathbf{B}^{u}}{\tau}\right), \tag*{(5)}

where Bd∈Rdout×r×K\mathbf{B}^{d} \in\mathbb{R}^{d_{\mathrm{out}} \times r \times K} and Bu∈Rr×din×K\mathbf{B}^{u} \in\mathbb{R}^{r \times d_{\mathrm{in}} \times K} are the low-rank factors, with r≪min⁡(dout,din)r \ll\min(d_{\mathrm{out}}, d_{\mathrm{in}}). Their multiplication is performed independently for each centroid, while the softmax operates along the centroid dimension. The resulting assignments reconstruct each weight row as W~i,:T=Ai′ci\widetilde{\mathbf{W}}_{i,:}^{\mathsf{T}} = \mathbf{A}^{\prime}_i\mathbf{c}_i.

The temperature τ\tau controls the sharpness of the soft assignments and is annealed during fine-tuning:

τ(t)=τmax⁡−tT(τmax⁡−τmin⁡),t=0,…,T,(6)\tau(t) = \tau_{\max} - \frac{t}{T}(\tau_{\max} - \tau_{\min}), \qquad t = 0,\ldots,T, \tag*{(6)}

where tt denotes the current fine-tuning step, TT is the total number of steps, and τmax⁡\tau_{\max} and τmin⁡\tau_{\min} are the initial and final temperatures, respectively. During the final stage of fine-tuning, we convert soft assignments to hard assignments, allowing the centroids to adapt to the discrete assignments.

Lookup Table CUDA Kernel Design

CodeQuant2 applies linear quantization to input activations and clustering-based quantization to weights. A simple deployment strategy is to reconstruct the clustered weight matrix from centroid indices and then invoke a standard CUDA GEMM kernel [22]. However, this reconstruction-based approach introduces additional dequantization and memory traffic before matrix multiplication, reducing the practical benefit of the low-bit weight format. To avoid this overhead, we design a GPU kernel that directly operates on the clustered representation by reformulating decode-time matrix multiplication as a table-lookup computation.

An example kernel design is illustrated in Figure 4a, where we consider 4-bit activation quantization and weight clustering with 16 centroids. The same principle can be extended to other bit-widths for activation and codebook sizes for weight clustering. In step 1 in Figure 4a, with 4-bit activations, each activation element is mapped to one of 16 quantized levels, while each weight element is stored as a 4-bit assignment index selecting one centroid from the row-wise codebook. The key idea is to precompute the products between quantized activation levels and weight centroids once, so that each multiplication between a quantized activation and a clustered weight can be replaced by a table lookup indexed by the activation level and the weight assignment, as shown in Step 2 of Figure 4a.

Figure 4. (a) The steps of the LUT kernel, including a one-time LUT precomputation and table lookup. (b) The precomputed LUT is stored in the shared memory in the Streaming Multiprocessors.

We further improve the GPU kernel for decode-time execution with three optimizations. First, activation min/max computation, 4-bit quantization, and bit packing are fused, so the activation vector is read only once and directly converted into packed indices consumed by the kernel. This avoids writing intermediate quantized activations to global memory. Second, the LUT is stored in GPU shared memory within each streaming multiprocessor (SM) and reused during decoding, as illustrated in Figure 4(b), reducing dequantization overhead and improving execution efficiency. Third, because decode-time GEMM exposes limited batch-level parallelism, we tune the matrix tile sizes to better match CUDA core resources and improve hardware utilization. Together, these optimizations enable clustered low-bit models to execute efficiently through table lookup, avoiding the higher latency of reconstruction-based matrix multiplication.

Experiment

We evaluate our method on LRMs of different scales, including Qwen3-4B-Thinking [52], Qwen3-8B with thinking mode enabled [52], and Phi-4-Reasoning [1]. Our evaluation covers language modeling, general question answering, mathematical reasoning, and code generation. For language modeling, we report perplexity on WikiText2 [32] and C4 [38]. For general question answering, we report ARC [9], PIQA [6], and WinoGrande [39] results in the appendix. For mathematical reasoning, we evaluate on MATH500 [20], GSM8K [11], and AIME [56, 57] under both pass@1 and pass@8. To assess code generation after quantization, we use HumanEval [8] and LiveCodeBench [21].

All downstream evaluations are performed using EvalScope [43]. We use zero-shot evaluation for all benchmarks except GSM8K, where we adopt a 4-shot setting. For AIME, we report pass@1 and pass@8. During generation, we follow the official inference settings for each reasoning model. For Qwen3-4B-Thinking and Qwen3-8B, we use temperature 0.6, top-pp 0.95, top-kk 20, min-pp 0, and a maximum model length of 32768. Qwen3-8B is evaluated with thinking mode enabled.

We compare CodeQuant2 with representative post-training quantization and clustering baselines, including QuaRot [5], ParoQuant [26], SqueezeLLM [23], and CodeQuant [53], with BF16 as the full-precision reference. All methods are evaluated under A4W4 and A8W4 settings, where activations use 4 or 8 bits and weights use 4-bit-equivalent capacity, using a 4-bit average assignment-index width across target matrices for CodeQuant2. For fairness, we use the same granularity across methods: per-channel weight quantization and per-token activation quantization. For weight-only baselines such as SqueezeLLM and ParoQuant, we extend them to weight-activation quantization by applying rotation before activation quantization to mitigate activation outliers.

For system evaluation, we measure autoregressive decoding latency on three types of single GPUs: NVIDIA A6000, NVIDIA L40s, and NVIDIA A100. We compare against BF16, QuaRot [5], and SqueezeLLM [23] under the A4W4 setting. SqueezeLLM provides a clustered quantization baseline for the latency comparison. Performance is assessed using average prompt and decoding lengths profiled from a subset of examples sampled from WikiText2, GSM8K, and AIME25, with the (prompt, decode) lengths set to (1024, 100), (100, 4000), and (150, 6000), respectively.

We further specify the method-specific settings used by CodeQuant2. For calibration, we use WikiText2 as the general-text source and generate reasoning-decoding samples from GSM8K training split. We evaluate GSM8K accuracy on the held-out test split. For each GSM8K sample, we first generate 256 tokens using the full-precision model, concatenate the prompt with the generated tokens, and truncate or pad the resulting calibration sequence to 512 tokens. We use a 9:1 mixture of

WikiText2 samples and RAC-selected GSM8K samples, ensuring that the calibration set is strictly disjoint from all test sets. The mixed samples are then randomly shuffled to reduce ordering bias. For fine-tuning, we use SGD with momentum 0.9 and zero weight decay, with separate learning rates of 1×10−41 \times10^{-4} for centroids and 1×10−51 \times10^{-5} for assignment. For adaptive cluster allocation, we use the candidate set K={8,16,32}K = \{8, 16, 32\}. All training stages can be conducted on a single NVIDIA H100 GPU. Rotation and scaling fine-tuning requires approximately 30 minutes, adaptive cluster allocation requires around 15 minutes, and the clustering fine-tuning takes about 30 minutes.

Accuracy Evaluation

Table 1 reports the A4W4 results across Qwen3-4B-Thinking, Qwen3-8B, and Phi-4-Reasoning. Overall, CodeQuant2 achieves the strongest performance, outperforming QuaRot, SqueezeLLM, ParoQuant, and CodeQuant on most models and tasks. The improvement is most significant on Qwen3-4B-Thinking, where CodeQuant2 increases average accuracy by 10.6% points over CodeQuant, suggesting that it is especially effective under aggressive quantization where both activation outliers and clustering errors become severe. On Qwen3-8B and Phi-4-Reasoning, the gains are more moderate but remain consistent, indicating that CodeQuant2 generalizes across different reasoning models. Importantly, the improvements on reasoning and code-generation benchmarks do not sacrifice general language modeling quality, as CodeQuant2 maintains competitive perplexity on WikiText2 and C4. The A8W4 results are provided in Table 9 in the appendix.

We further test quantized reasoning models on challenging mathematical benchmarks, including AIME25 [56] and AIME26 [57]. These tasks are highly sensitive to quantization because they require long multi-step reasoning and accurate handling of numerical and symbolic information. Besides pass@1, we also report pass@8, where pass@k indicates whether at least one of kk sampled responses gives the correct answer. As shown in Table 2, CodeQuant2 consistently improves mathematical reasoning robustness under the challenging A4W4 setting. The gains are especially clear on Qwen3 reasoning models, where existing quantized baselines suffer large drops on AIME problems. CodeQuant2 also improves pass@8, so at least one of eight sampled responses is more likely to be correct. On Phi-4-Reasoning, CodeQuant2 also improves over CodeQuant on AIME25 pass@8 (0.400 vs. 0.333) and AIME26 pass@8 (0.433 vs. 0.400). The corresponding A8W4 results appear alongside the A4W4 results in Table 2.

ModelsMethodsA4W4A8W4
AIME25AIME26AIME25AIME26
pass@1pass@8pass@1pass@8pass@1pass@8pass@1pass@8
Qwen3-4B-ThinkingBF160.6880.7330.7080.8670.6880.7330.7080.867
QuaRot0.0040.0330.0000.0000.1750.2330.0880.133
ParoQuant0.1830.2670.1420.1330.2830.5330.2710.433
SqueezeLLM0.1920.3330.1580.2000.4380.6000.4540.600
CodeQuant0.3920.5000.3670.6670.5960.8330.6380.800
Ours0.5630.8000.6130.8000.6000.8000.6920.833
Qwen3-8BBF160.6250.8000.6460.8000.6250.8000.6460.800
QuaRot0.0330.1000.0040.0330.2000.3330.1330.267
ParoQuant0.1960.3000.1670.2330.3960.7000.3580.633
SqueezeLLM0.2420.3670.1790.3000.4040.5670.4460.700
CodeQuant0.4460.6330.4830.6330.5210.8000.6280.800
Ours0.4790.7000.5040.7000.6130.8000.6460.833
Phi-4-ReasoningBF160.2830.4330.2500.4670.2830.4330.2500.467
QuaRot0.1920.2670.1290.3000.2210.3670.2130.367
ParoQuant0.1830.3000.1500.3000.2000.3670.2170.467
SqueezeLLM0.2580.4330.1880.2670.2880.4000.2080.300
CodeQuant0.2460.3330.2420.4000.2760.4030.2540.467
Ours0.2460.4000.2500.4330.2790.4330.2670.467

Table 2. Mathematical reasoning performance on AIME25 and AIME26 under A4W4 and A8W4, evaluated with both pass@1 and pass@8.

We further evaluate code generation on HumanEval and LiveCodeBench, which test not only reasoning ability but also syntactic correctness and instruction following, making them a useful measure of whether low-bit quantization preserves broader generation capabilities. Under A4W4, CodeQuant2 maintains strong code performance while improving reasoning-heavy tasks. The largest gain appears on LiveCodeBench for Qwen3-4B-Thinking, where CodeQuant2 outperforms CodeQuant by 15.0% points. These results show gains on coding as well as math benchmarks under A4W4.

Although CodeQuant2 targets reasoning-oriented quantization, it preserves strong general-task performance. On language understanding and commonsense reasoning benchmarks such as ARC, PIQA, and WinoGrande, CodeQuant2 performs comparably to or better than existing quantized baselines. Detailed results are provided in Table 8 in the appendix.

ModelsMethodsARC (↑\uparrow)PIQA (↑\uparrow)WinoGrande (↑\uparrow)Avg (↑\uparrow)
A4W4
Qwen3-4B-ThinkingBF160.9370.8740.8300.881
Qwen3-4B-ThinkingQuaRot0.7520.5620.2810.532
Qwen3-4B-ThinkingParoQuant0.9130.7890.6410.781
Qwen3-4B-ThinkingSqueezeLLM0.9140.7910.6810.795
Qwen3-4B-ThinkingCodeQuant0.9280.8360.7720.845
Qwen3-4B-ThinkingOurs0.9320.8510.7850.856
Qwen3-8BBF160.9420.9040.8180.888
Qwen3-8BQuaRot0.8220.6310.3580.604
Qwen3-8BParoQuant0.8470.4750.5200.614
Qwen3-8BSqueezeLLM0.9210.8230.6770.807
Qwen3-8BCodeQuant0.9360.8710.7550.854
Qwen3-8BOurs0.9300.8720.7660.856
Phi-4-ReasoningBF160.8370.8680.7800.828
Phi-4-ReasoningQuaRot0.7580.7450.6590.721
Phi-4-ReasoningParoQuant0.7670.7580.6760.733
Phi-4-ReasoningSqueezeLLM0.7400.7600.6850.728
Phi-4-ReasoningCodeQuant0.7450.8210.7290.765
Phi-4-ReasoningOurs0.7560.8110.7310.766
A8W4
Qwen3-4B-ThinkingBF160.9370.8740.8300.881
Qwen3-4B-ThinkingQuaRot0.9130.7980.5820.764
Qwen3-4B-ThinkingParoQuant0.9300.8400.7440.838
Qwen3-4B-ThinkingSqueezeLLM0.9360.8460.7850.855
Qwen3-4B-ThinkingCodeQuant0.9360.8560.8150.869
Qwen3-4B-ThinkingOurs0.9370.8640.8070.870
Qwen3-8BBF160.9420.9040.8180.888
Qwen3-8BQuaRot0.9150.8620.6420.806
Qwen3-8BParoQuant0.9200.8450.7210.829
Qwen3-8BSqueezeLLM0.9380.8740.7770.863
Qwen3-8BCodeQuant0.9380.8900.7960.875
Qwen3-8BOurs0.9390.8900.7980.876
Phi-4-ReasoningBF160.8370.8680.7800.828
Phi-4-ReasoningQuaRot0.7830.7740.7090.755
Phi-4-ReasoningParoQuant0.7860.7800.7020.756
Phi-4-ReasoningSqueezeLLM0.7900.8360.7570.794
Phi-4-ReasoningCodeQuant0.7820.8160.7310.776
Phi-4-ReasoningOurs0.8470.8670.7850.833

Table 8. Performance on standard language understanding and commonsense reasoning tasks under A4W4 and A8W4 quantization.

System Evaluation

Figure 5 presents the normalized speedups of all baselines, with BF16 latency normalized to 1. Compared with the BF16 models, CodeQuant2 achieves an average 2.42×2.42 \times speedup, demonstrating the effectiveness of low-bit activation and weight quantization together with the LUT-based GEMM design. The improvement over SqueezeLLM further indicates that clustering-based quantization can benefit from a dedicated GPU implementation with optimized LUT operations. Considering the accuracy results of CodeQuant2 shown in Table 1, CodeQuant2 achieves a strong accuracy–efficiency trade-off among the evaluated baselines. Table 4 shows that CodeQuant2 retains at least a 2.28×2.28 \times speedup on A6000 at batch size 16, indicating that the gain persists under batching.

ModelsMethodsWiki2 (↓\downarrow)C4 (↓\downarrow)MA500 (↑\uparrow)GSM8K (↑\uparrow)AIME25 (↑\uparrow)AIME26 (↑\uparrow)HE (↑\uparrow)LCB (↑\uparrow)Avg (↑\uparrow)
Qwen3-4B-ThinkingBF1611.47818.3910.9580.9520.6880.7080.9630.7580.838
QuaRot17.36626.8790.3940.5060.0040.0000.0000.0020.151
ParoQuant14.77123.0700.7200.8470.1830.1420.5490.1800.437
SqueezeLLM14.62722.6420.8520.9080.1920.1580.6950.1580.494
CodeQuant13.62321.4100.9300.9290.3920.3670.9020.4640.664
Ours12.89020.5380.9500.9380.5630.6130.9450.6140.770
Qwen3-8BBF1610.04715.4390.9480.9580.6250.6460.9210.7320.805
QuaRot14.47521.0590.3820.2590.0330.0040.0370.0030.120
ParoQuant12.83019.2600.7620.8950.1960.1670.4500.1820.442
SqueezeLLM12.21518.5150.8500.9000.2420.1790.8050.2940.545
CodeQuant10.50916.3490.9340.9460.4460.4830.8950.5890.716
Ours11.36217.1770.9360.9450.4790.5040.9150.5660.724
Phi-4-ReasoningBF167.39313.1870.8580.9430.2830.2500.8720.4100.603
QuaRot9.51116.5640.7660.9080.1920.1290.6400.2380.479
ParoQuant9.48916.5840.7700.9080.1830.1500.6830.2350.488
SqueezeLLM8.37514.8710.8060.9210.2580.1880.7500.3210.541
CodeQuant8.08714.3580.8400.9400.2460.2420.7320.3530.559
Ours7.73913.6600.8400.9320.2460.2500.8230.3620.575

Table 1. Performance under A4W4 setting in terms of perplexity on WikiText2 and C4, and accuracy on Math500 (MA500), GSM8K, AIME25, AIME26, HumanEval (HE), and LiveCodeBench (LCB).

BatchWikiText2GSM8KAIME25
12.312.452.48
42.322.462.48
82.302.442.46
162.282.432.45

Table 4. Qwen3-4B-Thinking on A6000: decode speedup over BF16.

Normalized decoding speedup on A6000, L40s, and A100 GPU

Figure 5. Normalized decoding speedup on (a) A6000, (b) L40s, and (c) A100 GPU across WikiText2-, GSM8K-, and AIME25-based workloads. Q4B, Q8B, and Phi4 denote Qwen3-4B-Thinking, Qwen3-8B, and Phi4-Reasoning, respectively.

Ablation Study

Component-wise Ablation To evaluate the contribution of each technique in Section 3, Table 5 reports the cumulative ablation results on Qwen3-4B-Thinking under A4W4. Without the four techniques, the average reasoning accuracy is 0.664. Fine-tuned rotation and scaling (R&S) increases it to 0.704, highlighting the importance of outlier mitigation for stable low-bit reasoning quantization. Adding adaptive cluster allocation (ACA) improves accuracy to 0.740, a gain of 3.64% points, consistent with the benefit of varying cluster capacity across matrices. Learnable clustering (LC) further increases accuracy to 0.760, showing the benefit of optimizing cluster assignments. Finally, reasoning-aware calibration (RAC) raises accuracy to 0.770, confirming that reasoning-time decoded tokens provide useful calibration signals beyond standard language-modeling data.

ConfigurationMATH-500GSM8KAIME25AIME26HumanEvalLiveCodeBenchAvg. Acc.Gain
Base0.9300.9290.3920.3670.9020.4640.664–
+ R&S0.9280.9340.4500.4210.9330.5570.704+4.00
+ ACA0.9380.9380.5420.4880.9370.5990.740+3.64
+ LC0.9500.9370.5460.5670.9390.6190.760+1.94
+ RAC0.9500.9380.5630.6130.9450.6140.770+1.08

Table 5. Cumulative component ablation on Qwen3-4B-Thinking under A4W4. The base configuration uses fixed random rotation and SmoothQuant scaling. Each subsequent row adds the listed component cumulatively. AIME results are pass@1, and gains are in percentage points.

Effect of Calibration Selection Table 6 tests two design choices for decoding calibration on Qwen3-4B-Thinking under A4W4: which 256-token segment of a reasoning trace to calibrate on, and how many initial decoded tokens to include. For segment selection in panel (a), we generate 768 tokens from GSM8K prompts with the full-precision model, and compute loss only on tokens 1–256, 257–512, or 513–768 while masking the other tokens. We also evaluate no decoding calibration and all 768 tokens. For prefix length in panel (b), we mix GSM8K decoding samples with WikiText2 calibration data, as in the component ablation in Table 5. The loss includes the WikiText2 samples and a prefix of 64, 128, 256, 512, or 768 decoded tokens from each GSM8K sample. The 256-token setting matches the calibration of our reported model and reproduces its task scores. We believe that including later tokens may dilute the influence of high-variance early activations on calibration, making it less effective at mitigating their outliers and leading to the accuracy drop at 768 tokens.

(a) Segment selection
SegmentM500GSMA25A25@8A26A26@8HELCBAvg.
None0.9500.9370.5460.6670.5670.7330.9390.6190.745
First0.9420.9340.5170.7330.6000.7670.9270.6090.754
Middle0.9420.9420.5170.7000.5290.7330.9220.5780.733
Last0.9360.9360.5170.6670.5540.7000.9330.5900.729
All 7680.9440.9410.4670.6670.4960.6670.9210.5600.708
(b) Prefix length
TokensM500GSMA25A26HELCBAvg.
640.9120.9230.3580.3540.8840.3920.637
1280.9360.9390.5210.5670.9330.5490.741
2560.9500.9380.5630.6130.9450.6140.770
5120.9380.9380.5290.5710.9150.5910.747
7680.9440.9410.4670.4960.9210.5600.721

Table 6. Effect of decoding calibration under different calibration selections. M500, GSM, A25, A26, HE, and LCB denote MATH-500, GSM8K, AIME25, AIME26, HumanEval, and LiveCodeBench. In panel (a), A25 and A26 are pass@1, while A25@8 and A26@8 are pass@8.

For segment selection, the first 256 tokens yield the highest eight-score average among the three segments at 0.754, versus 0.733 for the middle and 0.729 for the last. They also exceed the no-decoding baseline of 0.745. The gain over no decoding is concentrated in AIME pass@8: AIME25 rises from 0.667 to 0.733, and AIME26 rises from 0.733 to 0.767. AIME25 pass@1 instead falls from 0.546 to 0.517, so the improvement does not hold for every metric. This pattern is consistent with the stronger early activation fluctuations in Figure 2. Using all 768 tokens lowers the eight-score average to 0.708, below every individual segment.

For prefix length, with WikiText2 included in calibration, the six-task average rises from 0.637 at 64 decoded tokens to 0.770 at 256, then falls to 0.747 at 512 and 0.721 at 768. From 256 to 768 tokens, AIME25 drops from 0.563 to 0.467 and AIME26 from 0.613 to 0.496, while GSM8K stays near 0.94.

Comparison of Cluster Allocation Strategies Table 3 reports decoding throughput under different cluster allocation strategies. We compare fixed cluster counts of 8, 16, and 32 with our adaptive cluster allocation (ACA) method from § 3.3, whose average assignment-index width across target matrices is 4 bits, as in the fixed 16-cluster setting. The fixed settings reveal a clear efficiency trade-off: throughput drops from 47 tokens/s with 8 clusters to 42 tokens/s with 16 clusters and 33 tokens/s with 32 clusters on the GSM8K dataset. ACA achieves 44 tokens/s, outperforming the fixed 16-cluster setting and approaching the efficiency of the fixed 8-cluster setting. ACA is also faster on AIME25. Its accuracy gain in Table 5 and its higher throughput are consistent with reallocating clusters toward sensitive matrices under a profiled-latency budget.

Cluster NumGSM8KAIME25
847 token/s36 token/s
1642 token/s30 token/s
3233 token/s25 token/s
Ours44 token/s32 token/s

Table 3. Qwen3-4B-Thinking on L40s: decode throughput.

Conclusion and Limitations

In conclusion, CodeQuant2 combines early decoded tokens with general samples to build a reasoning-aware calibration set that captures the activation fluctuations at the start of reasoning. Using this calibration set, CodeQuant2 learns rotation and scaling transformations that smooth activation outliers. For the weights, it allocates cluster budgets across weight matrices to balance accuracy and latency, and then fine-tunes the centroid values and assignments to better match the full-precision outputs. Finally, a LUT-based CUDA kernel operates directly on the clustered representation during inference.

Although CodeQuant2 performs well on the evaluated reasoning tasks, further study of its generated reasoning trajectories could provide a more complete picture of the model’s reasoning behavior after quantization. Such an analysis could examine whether a correct answer is accompanied by repetition or unnecessarily long reasoning. It could also explore how quantization interacts with behaviors learned during post-training beyond those measured by our benchmarks, as well as potential safety implications such as unreliable or overconfident outputs. We have not evaluated these questions in this work and believe addressing them is a promising direction for future work.

Funding Statement

The authors declare no funding received for this paper.

Competing Interests Statement

The authors declare no competing interests.

Additional Activation Analysis

Table 7 extends Figure 2 to two other reasoning models and two other math datasets. The model rows use GSM8K prompts, and the dataset rows use Qwen3-4B-Thinking. Step 0 in this table is the first decoded token, labeled step 1 in Figure 2. We take the point where each activation-standard-deviation curve begins to level off (the elbow) as its stabilization step. The final column reports the percentage increase from the curve’s value at the elbow to its peak.

ComparisonSettingPeak stepElbow stepPeak above elbow
ModelGPT-OSS-20B023+24.1%
ModelQwen3-30B-A3B-Thinking034+38.7%
DatasetMATH-500026+17.1%
DatasetAIME24539+20.5%

Table 7. Early-stage activation fluctuation across additional reasoning models and datasets.

Adaptive Cluster Importance Score

In adaptive cluster allocation, we estimate the importance of each candidate cluster number change by measuring how much its induced output perturbation affects the local reconstruction loss. Let the local reconstruction loss be

Lrecon(Y~)=∥Yfp−Y~∥2.\mathcal{L}_{\mathrm{recon}}(\widetilde{\mathbf{Y}}) = \left\| \mathbf{Y}_{\mathrm{fp}} - \widetilde{\mathbf{Y}} \right\|^2 .

When the cluster number is changed from KoriK_{\mathrm{ori}} to KtarK_{\mathrm{tar}}, the clustered output changes from Y~(Kori)\widetilde{\mathbf{Y}}^{(K_{\mathrm{ori}})} to Y~(Ktar)\widetilde{\mathbf{Y}}^{(K_{\mathrm{tar}})}, producing the output perturbation

ΔYKori→Ktar=Y~(Kori)−Y~(Ktar).\Delta\mathbf{Y}_{K_{\mathrm{ori}}\to K_{\mathrm{tar}}} = \widetilde{\mathbf{Y}}^{(K_{\mathrm{ori}})} - \widetilde{\mathbf{Y}}^{(K_{\mathrm{tar}})} .

Using a first-order Taylor approximation around Y~(Kori)\widetilde{\mathbf{Y}}^{(K_{\mathrm{ori}})}, the change in reconstruction loss can be estimated as

ΔLrecon≈−⟨∇Y~Lrecon,ΔYKori→Ktar⟩.\Delta\mathcal{L}_{\mathrm{recon}} \approx- \left\langle\nabla_{\widetilde{\mathbf{Y}}} \mathcal{L}_{\mathrm{recon}}, \Delta\mathbf{Y}_{K_{\mathrm{ori}}\to K_{\mathrm{tar}}} \right\rangle.

where ⟨⋅,⋅⟩\langle\cdot, \cdot\rangle denotes the inner product. To obtain a stable matrix-wise score, we use the squared element-wise contribution and normalize it by the number of calibration tokens NN:

IKori→Ktar=1N∥ΔYKori→Ktar⊙∇Y~Lrecon∥F2.I_{K_{\mathrm{ori}}\to K_{\mathrm{tar}}} = \frac{1}{N} \left\| \Delta\mathbf{Y}_{K_{\mathrm{ori}}\to K_{\mathrm{tar}}} \odot\nabla_{\widetilde{\mathbf{Y}}} \mathcal{L}_{\mathrm{recon}} \right\|_{F}^{2}.

This score measures how strongly the output perturbation caused by changing the cluster number affects the local reconstruction loss.

Additional Evaluation Results

General Tasks

Table 8 reports the results on standard language understanding and commonsense reasoning tasks. Overall, our method preserves strong general-task performance under both A4W4 and A8W4 settings. Under A4W4, our method has the highest average score among quantized methods on all three models. Compared with CodeQuant, our method improves the average score from 0.845 to 0.856 on Qwen3-4B-Thinking and from 0.854 to 0.856 on Qwen3-8B. On Phi-4-Reasoning, the average rises from 0.765 to 0.766. Under the A8W4 setting, our method further reduces the gap to the BF16 reference and achieves the best average score among quantized methods across all three models.

These results indicate that our method improves reasoning-oriented quantization performance while maintaining competitive performance on general language understanding and commonsense reasoning tasks. The evaluated general tasks show that the gains extend beyond reasoning-heavy benchmarks.

A8W4 Results

Main Results. Table 9 reports the results under the A8W4 setting. Compared with A4W4, A8W4 provides higher activation precision and therefore preserves stronger model performance across most tasks. Overall, our method achieves the best average accuracy among all quantized methods on all three reasoning models. Specifically, our method obtains average scores of 0.808, 0.790, and 0.593 on Qwen3-4B-Thinking, Qwen3-8B, and Phi-4-Reasoning, respectively.

On Qwen3-4B-Thinking, our method improves the average score from 0.779 to 0.808 compared with CodeQuant, while also achieving the best perplexity on both WikiText2 and C4 among quantized methods. It also provides clear improvements on reasoning-heavy benchmarks, especially AIME26 and LiveCodeBench. On Qwen3-8B, our method obtains the highest average score of 0.790 and outperforms CodeQuant on GSM8K, AIME25, AIME26, and LiveCodeBench, although CodeQuant achieves slightly lower perplexity. On Phi-4-Reasoning, our method achieves the best average score and the best results on WikiText2, C4, MATH500, GSM8K, AIME26, and HumanEval among the quantized methods.

ModelsMethodsWiki2 (↓\downarrow)C4 (↓\downarrow)MA500 (↑\uparrow)GSM8K (↑\uparrow)AIME25 (↑\uparrow)AIME26 (↑\uparrow)HE (↑\uparrow)LCB (↑\uparrow)Avg (↑\uparrow)
A8W4
Qwen3-4B-ThinkingBF1611.47818.3910.9580.9520.6880.7080.9630.7580.838
Qwen3-4B-ThinkingQuaRot14.31222.4920.7580.8680.1750.0880.5370.1370.427
Qwen3-4B-ThinkingParoQuant13.44421.1900.9000.9200.2830.2710.8110.4480.606
Qwen3-4B-ThinkingSqueezeLLM12.99920.2600.9400.9380.4380.4540.9150.5520.706
Qwen3-4B-ThinkingCodeQuant12.43019.7320.9460.9510.5960.6380.9150.6290.779
Qwen3-4B-ThinkingOurs12.08119.2060.9600.9510.6000.6920.9570.6860.808
Qwen3-8BBF1610.04715.4390.9480.9580.6250.6460.9210.7320.805
Qwen3-8BQuaRot12.47118.5070.7840.8800.2000.1330.2560.0190.379
Qwen3-8BParoQuant11.33717.2340.9080.9330.3960.3580.8810.4630.656
Qwen3-8BSqueezeLLM10.79816.5800.9260.9410.4040.4460.9330.5440.699
Qwen3-8BCodeQuant10.21616.8830.9420.9470.5210.6280.9210.6480.768
Qwen3-8BOurs11.03316.4900.9380.9550.6130.6460.9150.6710.790
Phi-4-ReasoningBF167.39313.1870.8580.9430.2830.2500.8720.4100.603
Phi-4-ReasoningQuaRot8.51214.6870.8080.9370.2210.2130.6520.2900.520
Phi-4-ReasoningParoQuant7.80113.8650.8320.9270.2000.2170.7070.3030.531
Phi-4-ReasoningSqueezeLLM7.75913.7630.8380.9420.2880.2080.8350.3730.581
Phi-4-ReasoningCodeQuant7.75513.7680.8220.9420.2760.2540.8230.3840.584
Phi-4-ReasoningOurs7.69913.5920.8440.9440.2790.2670.8480.3750.593

Table 9. Main evaluation results under A8W4 quantization.

These results show that our method remains effective under the less aggressive A8W4 setting. In particular, it improves reasoning and code generation performance while maintaining competitive language modeling quality.

AIME Results. The A8W4 columns of Table 2 report pass@1 and pass@8 results on the AIME mathematical reasoning benchmarks. Overall, our method achieves strong performance across both single-sample and multi-sample evaluation. On Qwen3-4B-Thinking, our method obtains the best pass@1 results on both AIME25 and AIME26, improving AIME26 pass@1 from 0.638 to 0.692 compared with CodeQuant. On Qwen3-8B, our method achieves the best or tied-best results on all four metrics. In particular, it improves AIME25 pass@1 from 0.521 to 0.613 and AIME26 pass@8 from 0.800 to 0.833 compared with CodeQuant. For Phi-4-Reasoning, the performance differences among strong baselines are smaller, while our method still achieves the best AIME26 pass@1 result and matches the best AIME25 pass@8 and AIME26 pass@8 results. These results show that our method better preserves mathematical reasoning ability under A8W4 quantization, especially on pass@1 metrics that reflect the quality of a single generated solution.

NeurIPS Paper Checklist

The checklist is designed to encourage best practices for responsible machine learning research, addressing issues of reproducibility, transparency, research ethics, and societal impact. Do not remove the checklist: The papers not including the checklist will be desk rejected. The checklist should follow the references and follow the (optional) supplemental material. The checklist does NOT count towards the page limit.

Please read the checklist guidelines carefully for information on how to answer these questions. For each question in the checklist:

  • You should answer [Yes], [No], or [N/A].

  • [N/A] means either that the question is Not Applicable for that particular paper or the relevant information is Not Available.

  • Please provide a short (1–2 sentence) justification right after your answer (even for [N/A]).

The checklist answers are an integral part of your paper submission. They are visible to the reviewers, area chairs, senior area chairs, and ethics reviewers. You will also be asked to include it (after eventual revisions) with the final version of your paper, and its final version will be published with the paper.

The reviewers of your paper will be asked to use the checklist as one of the factors in their evaluation. While [Yes] is generally preferable to [No], it is perfectly acceptable to answer [No] provided a proper justification is given (e.g., error bars are not reported because it would be too computationally expensive” or “we were unable to find the license for the dataset we used”). In general, answering [No] or [N/A] is not grounds for rejection. While the questions are phrased in a binary way, we acknowledge that the true answer is often more nuanced, so please just use your best judgment and write a justification to elaborate. All supporting evidence can appear either in the main paper or the supplemental material, provided in appendix. If you answer [Yes] to a question, in the justification please point to the section(s) where related material for the question can be found.

IMPORTANT, please:

  • Delete this instruction block, but keep the section heading “NeurIPS Paper Checklist”,

  • Keep the checklist subsection headings, questions/answers and guidelines below.

  • Do not modify the questions and only use the provided macros for your answers.

Claims

Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?

Answer: [Yes]

Justification: The abstract and introduction clearly state the main contributions of Cod-eQuant2, including reasoning-aware calibration, clustering-based low-bit quantization, adaptive cluster allocation, and LUT-based CUDA execution. The claimed accuracy and efficiency improvements are supported by the experimental results and system evaluation in the paper.

Guidelines:

  • The answer [N/A] means that the abstract and introduction do not include the claims made in the paper.

  • The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers.

  • The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings.

  • It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.

Limitations

Question: Does the paper discuss the limitations of the work performed by the authors?

Answer: [Yes]

Justification: We discuss the limitation and risk in the last section of the paper.

Guidelines:

  • The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper.

  • The authors are encouraged to create a separate “Limitations” section in their paper.

  • The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be.

  • The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated.

  • The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon.

  • The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size.

  • If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness.

  • While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.

Theory assumptions and proofs

Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?

Answer: [N/A]

Justification: The paper does not present formal theoretical results such as theorems or convergence guarantees. The calibration motivation is supported by empirical activation observations, and the adaptive clustering importance score is derived as part of the method design and further explained in the appendix.

Guidelines:

  • The answer [N/A] means that the paper does not include theoretical results.

  • All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced.

  • All assumptions should be clearly stated or referenced in the statement of any theorems.

  • The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition.

  • Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material.

  • Theorems and Lemmas that the proof relies upon should be properly referenced.

Experimental result reproducibility

Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? Answer: [Yes]

Justification: The paper provides the experimental settings needed to reproduce the main results. We will release the CodeQuant2 algorithm and LUT-based CUDA kernel codebase, and provide checkpoints for the three evaluated models to further support reproducibility.

Guidelines:

  • The answer [N/A] means that the paper does not include experiments.

  • If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not.

  • If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable.

  • Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general. releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed.

  • While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.

Open access to data and code

Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?

Answer: [Yes]

Justification: We will provide the complete codebase upon acceptance. The paper does not use private data, and all datasets used in the experiments are publicly available.

Guidelines:

  • The answer [N/A] means that paper does not include experiments requiring code.

  • Please see the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.

  • While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark).

  • The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.

  • The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc.

  • The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why.

  • At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).

  • Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.

Experimental setting/details

Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?

Answer: [Yes]

Justification: The paper provides the calibration set construction, including data sources, mixture ratio, sequence length, and reasoning-decoding sample generation method. It also specifies the optimizer, key hyperparameters, and evaluation settings needed to understand the reported results.

Guidelines:

  • The answer [N/A] means that the paper does not include experiments.

  • The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them.

  • The full details can be provided either with the code, in appendix, or as supplemental material.

Experiment statistical significance

Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?

Answer: [Yes]

Justification: The evaluation is conducted with EvalScope, a widely used evaluation framework, and the reported accuracy results are averaged over 5 random seeds. The main improvements are substantial across benchmarks and models. For hardware evaluation, we follow a standard protocol with warmup runs followed by repeated latency measurements and report averaged results.

Guidelines:

  • The answer [N/A] means that the paper does not include experiments.

  • The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper.

  • The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).

  • The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.)

  • The assumptions made should be given (e.g., Normally distributed errors).

  • It should be clear whether the error bar is the standard deviation or the standard error of the mean.

  • It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified.

  • For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates).

  • If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.

Experiments compute resources

Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?

Answer: [Yes]

Justification: The paper reports the GPU type and training time. It also specifies the GPU platforms used for system evaluation.

Guidelines:

  • The answer [N/A] means that the paper does not include experiments.

  • The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage.

  • The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute.

  • The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper).

Code of ethics

Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?

Answer: [Yes]

Justification: The authors have read and acknowledge the NeurIPS Code of Ethics.

Guidelines:

  • The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics.

  • If the authors answer [No], they should explain the special circumstances that require a deviation from the Code of Ethics.

  • The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).

Broader impacts

Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?

Answer: [Yes]

Justification: The potential impact has been discussed in the conclusion and limitations section.

Guidelines:

  • The answer [N/A] means that there is no societal impact of the work performed.

  • If the authors answer [N/A] or [No], they should explain why their work has no societal impact or why the paper does not address societal impact.

  • Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.

  • The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster.

  • The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology.

  • If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).

Safeguards

Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?

Answer: [N/A]

Justification: This paper does not introduce or release new high-risk datasets or pre-trained foundation models. The released artifacts are intended to reproduce quantized model evaluation and are based on existing public models and datasets.

Guidelines:

  • The answer [N/A] means that the paper poses no such risks.

  • Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters.

  • Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images.

  • We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.

Licenses for existing assets

Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?

Answer: [Yes]

Justification: All codes, datasets, and models used in this paper are cited and credited correctly.

Guidelines:

  • The answer [N/A] means that the paper does not use existing assets.

  • The authors should cite the original paper that produced the code package or dataset.

  • The authors should state which version of the asset is used and, if possible, include a URL.

  • The name of the license (e.g., CC-BY 4.0) should be included for each asset.

  • For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided.

  • If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.

  • For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.

  • If this information is not available online, the authors are encouraged to reach out to the asset’s creators.

New assets

Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?

Answer: [Yes]

Justification: The paper introduces code assets, including the CodeQuant2 algorithm implementation and LUT-based CUDA kernel. We will release them with documentation and instructions for reproducing the main experimental results after acceptance. Guidelines:

  • The answer [N/A] means that the paper does not release new assets.

  • Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc.

  • The paper should discuss whether and how consent was obtained from people whose asset is used.

  • At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.

14. Crowdsourcing and research with human subjects

Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?

Answer: [N/A]

Justification: This paper does not involve crowdsourcing, human-subject experiments, or any data collection from human participants.

Guidelines:

  • The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.

  • Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper.

  • According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.

15. Institutional review board (IRB) approvals or equivalent for research with human subjects

Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?

Answer: [N/A]

Justification: This paper does not involve human-subject research, so IRB approval is not applicable.

Guidelines:

  • The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.

  • Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper.

  • We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution.

  • For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.

16. Declaration of LLM usage

Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.

Answer: [N/A] Justification: All methods, analyses, and insights in this paper are based on the authors’ original research. LLM tools were used only for language polishing during paper writing and did not contribute to the core methodology, or originality of the work.

Guidelines:

  • The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components.

  • Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.

References

  1. [1]Marah Abdin, Sahaj Agarwal, Ahmed Awadallah, Vidhisha Balachandran, Harkirat Behl, Lingjiao Chen, Gustavo de Rosa, Suriya Gunasekar, Mojan Javaheripi, Neel Joshi, Piero Kauffmann, Yash Lara, Caio César Teodoro Mendes, Arindam Mitra, Besmira Nushi, Dimitris Papaiiopoulos, Olli Saarikivi, Shital Shah, Vaishnavi Shrivastava, Vibhav Vineet, Yue Wu, Safoora Yousefi, and Guoqing Zheng. Phi-4-reasoning technical report, 2025.arxiv.org/abs/2504.21318
  2. [2]Sandhini Agarwal, Lama Ahmad, Jason Ai, Sam Altman, Andy Applebauм, Edwin Arbus, Rahul K Arora, Yu Bai, Bowen Baker, Haiming Bao, et al. gpt-oss-120b & gpt-oss-20b model card. arXiv preprint arXiv:2508.10925, 2025.arxiv.org/abs/2508.10925
  3. [3]Eduardo Alvarez, Omri Almog, Eric Chung, Simon Layton, Dusan Stosic, Ronny Krashinsky, and Kyle Aubrey. Introducing nvfp4 for efficient and accurate low-precision inference, 2025.
  4. [4]Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L Croci, Bo Li, Pashmina Cameron, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. Quarot: Outlier-free 4-bit inference in rotated llms. Advances in Neural Information Processing Systems, 37:100213–100240, 2024.arxiv.org/abs/2404.00456
  5. [5]Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L. Croci, Bo Li, Pashmina Cameron, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. Quarot: Outlier-free 4-bit inference in rotated llms, 2024.arxiv.org/abs/2404.00456
  6. [6]Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 7432–7439, 2020.arxiv.org/abs/1911.11641
  7. [8]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code, 2021.arxiv.org/abs/2107.03374
  8. [9]Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge, 2018.arxiv.org/abs/1803.05457
  9. [10]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.arxiv.org/abs/2110.14168
  10. [11]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems, 2021.arxiv.org/abs/2110.14168
  11. [12]Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. Gpt3. int8 (): 8-bit matrix multiplication for transformers at scale. Advances in neural information processing systems, 35:30318–30332, 2022.
  12. [13]Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. Llm.int8(): 8-bit matrix multiplication for transformers at scale, 2022.arxiv.org/abs/2208.07339
  13. [14]Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. Qlora: Efficient finetuning of quantized llms. Advances in neural information processing systems, 36:10088–10115, 2023.arxiv.org/abs/2305.14314
  14. [15]Tim Dettmers, Ruslan Svirschevski, Vage Egiazarian, Denis Kuznedelev, Elias Frantar, Saleh Ashkboos, Alexander Borzunov, Torsten Hoefler, and Dan Alistarh. Spqr: A sparse-quantized representation for near-lossless llm weight compression. arXiv preprint arXiv:2306.03078, 2023.arxiv.org/abs/2306.03078
  15. [16]Darshan C Ganji, Saad Ashfaq, Ehsan Saboori, Sudhakar Sah, Saptarshi Mitra, Mohammad-hossein Askarihemmat, Alexander Hoffman, Ahmed Hassanien, and Mathieu Leonardon. Deepgemm: Accelerated ultra low-precision inference on cpu architectures using lookup tables. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4656–4664, 2023.arxiv.org/abs/2304.09049
  16. [17]Chang Gao, Chujie Zheng, Xiong-Hui Chen, Kai Dang, Shixuan Liu, Bowen Yu, An Yang, Shuai Bai, Jingren Zhou, and Junyang Lin. Soft adaptive policy optimization. arXiv preprint arXiv:2511.20347, 2025.arxiv.org/abs/2511.20347
  17. [18]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirog Ma, Xiao Bi, et al. Deepseek-rl: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
  18. [19]Han Guo, William Brandon, Radostin Cholakov, Jonathan Ragan-Kelley, Eric Xing, and Yoon Kim. Fast matrix multiplications for lookup table-quantized llms. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 12419–12433, 2024.arxiv.org/abs/2407.10960
  19. [20]Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding, 2021.
  20. [21]Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. Livecodebench: Holistic and contamination free evaluation of large language models for code, 2024.arxiv.org/abs/2403.07974
  21. [22]Sehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W Mahoney, and Kurt Keutzer. Squeezellm: Dense-and-sparse quantization. arXiv preprint arXiv:2306.07629, 2023.arxiv.org/abs/2306.07629
  22. [23]Sehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W. Mahoney, and Kurt Keutzer. Squeezellm: Dense-and-sparse quantization, 2024.arxiv.org/abs/2306.07629
  23. [24]Jun Li, Li Fuxin, and Sinisa Todorovic. Efficient riemannian optimization on the stiefel manifold via the cayley transform. arXiv preprint arXiv:2002.01113, 2020.arxiv.org/abs/2002.01113
  24. [25]Zhen Li, Yupeng Su, Runming Yang, Congkai Xie, Zheng Wang, Zhongwei Xie, Ngai Wong, and Hongxia Yang. Quantization meets reasoning: Exploring llm low-bit quantization degradation for mathematical reasoning, 2025.arxiv.org/abs/2501.03035
  25. [26]Yesheng Liang, Haisheng Chen, Zihan Zhang, Song Han, and Zhijian Liu. Paroquant: Pairwise rotation quantization for efficient reasoning llm inference. arXiv preprint arXiv:2511.10645, 2025.arxiv.org/abs/2511.10645
  26. [27]Shi-Zhe Lin, Yun-Chih Chen, Yuan-Hao Chang, Tei-Wei Kuo, and Hsiang-Pang Li. Lutin: Efficient neural network inference with table lookup. In Proceedings of the 29th ACM/IEEE International Symposium on Low Power Electronics and Design, pages 1–6, 2024.DOI
  27. [28]Ruikang Liu, Yuxuan Sun, Manyi Zhang, Haoli Bai, Xianzhi Yu, Tiezhen Yu, Chun Yuan, and Lu Hou. Quantization hurts reasoning? an empirical study on quantized reasoning models. arXiv preprint arXiv:2504.04823, 2025.arxiv.org/abs/2504.04823
  28. [29]Yifei Liu, Jicheng Wen, Yang Wang, Shengyu Ye, Li Lyla Zhang, Ting Cao, Cheng Li, and Mao Yang. Vptq: Extreme low-bit vector post-training quantization for large language models. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 8181–8196, 2024.arxiv.org/abs/2409.17066
  29. [30]Zechun Liu, Changsheng Zhao, Igor Fedorov, Bilge Soran, Dhruv Choudhary, Raghuraman Krishnamoorthi, Vikas Chandra, Yuandong Tian, and Tijmen Blankevoort. Spinqu ant: Llm quantization with learned rotations. arXiv preprint arXiv:2405.16406, 2024.arxiv.org/abs/2405.16406
  30. [31]Trung Quoc Luong, Xinbo Zhang, Zhanming Jie, Peng Sun, Xiaoran Jin, and Hang Li. Reft: Reasoning with reinforced fine-tuning. arXiv preprint arXiv:2401.08967, 2024.arxiv.org/abs/2401.08967
  31. [32]Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models, 2016.arxiv.org/abs/1609.07843
  32. [33]Zhiwen Mo, Lei Wang, Jianyu Wei, Zhichen Zeng, Shijie Cao, Lingxiao Ma, Naifeng Jing, Ting Cao, Jilong Xue, Fan Yang, et al. Lut tensor core: A software-hardware co-design for lut-based low-bit llm inference. In Proceedings of the 52nd Annual International Symposium on Computer Architecture, pages 514–528, 2025.DOI
  33. [34]Yasunori Nishimori and Shotaro Akaho. Learning algorithms utilizing quasi-geodesic flows on the stiefel manifold. Neurocomputing, 67:106–135, 2005.DOI
  34. [35]NVIDIA Corporation. Nvidia ada gpu architecture whitepaper. Technical report, NVIDIA Corporation, 2022.
  35. [36]NVIDIA Corporation. Nvidia h100 tensor core gpu architecture whitepaper. Technical report, NVIDIA Corporation, 2022.
  36. [37]Gunho Park, Baeseong Park, Minsub Kim, Sungjae Lee, Jeonghoon Kim, Beomseok Kwon, Se Jung Kwon, Byeongwook Kim, Youngjoo Lee, and Dongsoo Lee. Lut-gemm: Quantized matrix multiplication based on luts for efficient inference in large-scale generative language models. arXiv preprint arXiv:2206.09557, 2022.arxiv.org/abs/2206.09557
  37. [38]Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer, 2023.
  38. [39]Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. Winogrande: An adversarial winograd schema challenge at scale. Communications of the ACM, 64(9):99–106, 2021.arxiv.org/abs/1907.10641
  39. [40]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.arxiv.org/abs/2402.03300
  40. [41]Mingjie Sun, Xinlei Chen, J. Zico Kolter, and Zhuang Liu. Massive activations in large language models, 2024.arxiv.org/abs/2402.17762
  41. [42]Mingjie Sun, Xinlei Chen, J Zico Kolter, and Zhuang Liu. Massive activations in large language models. arXiv preprint arXiv:2402.17762, 2024.arxiv.org/abs/2402.17762
  42. [43]ModelScope Team. EvalScope: Evaluation framework for large models, 2024.
  43. [44]Qwen Team. Qwen3 technical report, 2025.
  44. [46]Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171, 2022.arxiv.org/abs/2203.11171
  45. [47]Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824–24837, 2022.arxiv.org/abs/2201.11903
  46. [48]Jianyu Wei, Shijie Cao, Ting Cao, Lingxiao Ma, Lei Wang, Yanyong Zhang, and Mao Yang. T-mac: Cpu renaissance via table lookup for low-bit llm deployment on edge. In Proceedings of the Twentieth European Conference on Computer Systems, pages 278–292, 2025.DOI
  47. [49]Jingyang Xiang and Sai Qian Zhang. Dfrot: Achieving outlier-free and massive activation-free for rotated llms with refined rotation. arXiv preprint arXiv:2412.00648, 2024.arxiv.org/abs/2412.00648
  48. [50]Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. Smoothquant: Accurate and efficient post-training quantization for large language models. In International conference on machine learning, pages 38087–38099. PMLR, 2023.arxiv.org/abs/2211.10438
  49. [51]Roy Xie, David Qiu, Deepak Gopinath, Dong Lin, Yanchao Sun, Chong Wang, Saloni Potdar, and Bhuwan Dhingra. Interleaved reasoning for large language models via reinforcement learning. arXiv preprint arXiv:2505.19640, 2025.arxiv.org/abs/2505.19640
  50. [52]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengheng Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.arxiv.org/abs/2505.09388
  51. [53]Xiangyang Yin, Xingyu Liu, Tianhua Xia, Bo Bao, Vithursan Thangarasa, Valavan Manoharajah, Eric Sather, and Sai Qian Zhang. Codequant: Unified clustering and quantization for enhanced outlier smoothing in low-precision mixture-of-experts. arXiv preprint arXiv:2604.10496, 2026.arxiv.org/abs/2604.10496
  52. [54]Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, et al. Dapo: An open-source llm reinforcement learning system at scale. arXiv preprint arXiv:2503.14476, 2025.arxiv.org/abs/2503.14476
  53. [55]Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah D Goodman. Star: Self-taught reasoner bootstrapping reasoning with reasoning. In Proc. the 36th International Conference on Neural Information Processing Systems, volume 1126, pages 0–55, 2024.
  54. [56]Yifan Zhang and Team Math-AI. American invitational mathematics examination (aime) 2025, 2025.
  55. [57]Yifan Zhang and Team Math-AI. American invitational mathematics examination (aime) 2026, 2026.
  56. [58]Juntao Zhao, Wenhao Lu, Sheng Wang, Lingpeng Kong, and Chuan Wu. Qspec: Speculative decoding with complementary quantization schemes. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 4779–4795, 2025.arxiv.org/abs/2410.11305

Paper details

vlnc:W_f354b536
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents