Manuscript Offprint

arXiv:2610.13767

DualQuant: Dual-scale Calibration-free Weight-and-Activation Quantization for LLMs

Mahsa Salmani, Sayeh Sharify, Hesham Mostafa

ABSTRACT

Low-bit inference on accelerators with native 4-bit support requires quantizing both weights and activations to realize the full throughput gains these formats provide. While post-training weight quantization has been extensively studied, activation quantization remains considerably more challenging and typically requires calibration data. In this work, we introduce DUALQUANT, a dual-scale, calibration-free post-training quantization framework that directly minimizes the weight-reconstruction Mean Squared Error (MSE) and, as an immediate by-product, yields per-channel activation rescalings prior to activation quantization. Our key observation is that the scaling factors obtained by minimizing weight-reconstruction error also provide effective activation rescalings, enabling competitive activation quantization without calibration data. We formulate DUALQUANT as a non-differentiable weight-reconstruction problem and develop an efficient solver based on variable splitting and block coordinate descent, where each subproblem admits a closed-form update. By treating the quantizer as a black box and projecting scales onto their format-specific admissible set after each update, DUALQUANT provides a unified algorithm supporting a wide range of formats, including INT4, INT8, the full MX family, and NVFP4. To our knowledge, DUALQUANT is the first dual-scaling method to formally support MX and NV block formats. Across Llama and Qwen models evaluated on WikiText-2, C4, and zero-shot downstream tasks, DUALQUANT matches or exceeds the accuracy of calibration-based SmoothQuant across most models and formats, and substantially outperforms calibration-free baselines, with particularly large gains for MX and NV block formats. We further validate these gains with a real packed W4A4 inference path for Llama-3.1-8B on an RTX 4090. The resulting implementation closely matches the accuracy of fake quantization while delivering up to 2.61×2.61\times memory reduction and up to 2.46×2.46\times throughput speedup over BF16. Our anonymized codebase is available here.

1 INTRODUCTION

Large Language Models (LLMs) have grown rapidly in scale, from dense models (Grattafiori et al., 2024; Yang et al., 2025) to mixture-of-experts architectures exceeding a trillion parameters (DeepSeek-AI, 2024; Jiang et al., 2024), placing enormous pressure on memory and compute at inference time. Post-Training Quantization (PTQ) addresses this by compressing weights, activations, and KV-cache to low-bit representations without retraining. Modern accelerators such as NVIDIA Blackwell GPUs provide native 4-bit matrix multiplication (Rouhani et al., 2023; NVIDIA, 2025) delivering up to 4× the throughput of FP16, but realizing this gain requires both weights and activations in a low-bit format. The central obstacle is that activation tensors exhibit systematic large-magnitude outliers in specific channels (Dettmers et al., 2022; Bondarenko et al., 2021; Sun et al., 2024) that dominate the quantization grid. Calibration-based methods address activation quantization effectively but require representative data, introducing distribution sensitivity and data-access overhead prohibitive in privacy-sensitive or on-device settings. This includes both scale-based approaches such as SmoothQuant (Xiao et al., 2023) and rotation-based approaches such as SpinQuant (Liu et al., 2025), which optimizes rotation matrices using calibration data. Calibration-free rotation-based methods such as QuaRot (Ashkboos et al., 2024) avoid this dependency but do not target activation-quantization error. In other words, no prior method achieves competitive calibration-free joint Weight and Activation (W+A) quantization across modern MX and NV formats.

In this work, we introduce DUALQUANT, a calibration-free dual-scale (per-row and per-column) PTQ framework that jointly quantizes weights and activations without any access to calibration data or activation statistics. The key insight is that channels with large-magnitude weight columns contribute disproportionately to the layer output and, as shown empirically, concentrate activation outliers (Sun et al., 2024; Dettmers et al., 2022; Bondarenko et al., 2021). Consequently, the column scales that minimize weight-reconstruction MSE attenuate these same channels, so they not only quantize the weights well but also implicitly define activation rescalings that we observe to substantially improve activation quantization—playing a role similar to SmoothQuant's calibrated scales (Xiao et al., 2023), yet derived from weights alone. DUALQUANT obtains these row and column scales via Block Coordinate Descent (BCD) with closed-form updates and provable convergence guarantees (Tseng, 2001; Razaviyayn et al., 2013), treating the quantizer as a black-box operator and projecting scales to their admissible format set after each update, yielding a single unified algorithm that operates across INT4, MXINT4, MXFP4, and NVFP4. Evaluation on Qwen and Llama families confirms that DUALQUANT matches or surpasses SmoothQuant on W+A quantization across most formats and models, without any calibration data. Our main contributions are:

  1. We formalize dual-scale weight quantization as a constrained non-convex optimization problem and solve it via BCD with closed-form per-coordinate updates, format-aware scale projection, and provable convergence guarantees, requiring no inner loop, no Hessian, and no calibration data. The same algorithm operates uniformly across INT4, MXINT4, MXFP4, and NVFP4, making DUALQUANT the first dual-scaling method that formally supports the full MX and NV formats.

  2. We show that the column scales obtained from weight MSE minimization also serve as effective activation rescalings, enabling joint W+A quantization without any access to calibration data. Across Qwen and Llama families and four 4-bit formats, DUALQUANT closely matches or surpasses calibration-based SmoothQuant and significantly outperforms calibration-free baselines QuaRot and SINQ+, with especially large margins on MX and NV block data formats.

  3. We validate DUALQUANT through a real packed W4A4 deployment of Llama-3.1-8B on an RTX 4090. The packed implementation matches fake-quantization accuracy to within 0.01 perplexity on WikiText-2 while reducing memory usage by 2.51−2.61×2.51-2.61\times and improving end-to-end speed by 1.39−2.46×1.39-2.46\times over BF16. Incorporating the scales into the activation-quantization kernel avoids additional kernel launches and limits the quantization overhead to 4.3-6.1% of total GPU time.

References (66)

  • QuaRot: Outlier-free 4-bit inference in rotated LLMs
  • Half-quadratic quantization of large machine learning models
  • QuantEase: Optimization-based quantization for language models (opens arXiv in a new tab)
  • PIQA: Reasoning about physical commonsense in natural language
  • Understanding and overcoming the challenges of efficient transformer quantization
  • Distributed optimization and statistical learning via the alternating direction method of multipliers
  • Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
  • SmoothRot: Combining channel-wise scaling and rotation for quantization-friendly LLMs (opens arXiv in a new tab)
  • DeepSeek-V3 Technical Report
  • LLM.int8(): 8-bit matrix multiplication for transformers at scale
  • QLoRA: Efficient finetuning of quantized LLMs
  • GPTQ: Accurate post-training quantization for generative pre-trained transformers
  • AdpQ: A zero-shot calibration free adaptive post training quantization method for LLMs (opens arXiv in a new tab)
  • The Llama 3 Herd of Models
  • Measuring massive multitask language understanding
  • Mixtral of Experts
  • SVDQuant: Absorbing outliers by low-rank components for 4-bit diffusion models
  • AWQ: Activation-aware weight quantization for on-device LLM compression and acceleration
  • SpinQuant: LLM quantization with learned rotations
  • AffineQuant: Affine transformation quantization for large language models
  • Pointer sentinel mixture models
  • SINQ: Sinkhorn-normalized quantization for calibration-free low-precision LLM weights
  • Karl Pearson. Note on regression and inheritance in the case of two parents. Proceedings of the Royal Society of London, 58:240–242, 1895. doi: 10.1098/rspl.1895.0041. (opens the publisher in a new tab)
  • Exploring the limits of transfer learning with a unified text-to-text transformer
  • A unified convergence analysis of block successive minimization methods for nonsmooth optimization
  • Bita Darvish Rouhani, Ritchie Zhao, Ankit More, Mathew Hall, Alireza Khodamoradi, Summer Deng, Dhruv Choudhary, Marius Cornea, Eric Dellinger, Kristof Denolf, et al. Microscaling data formats for deep learning. arXiv preprint arXiv:2310.10537, 2023. (opens arXiv in a new tab)
  • WinoGrande: An adversarial winograd schema challenge at scale
  • ResQ: Mixed-precision quantization of large language models with low-rank residuals
  • OmniQuant: Omnidirectionally calibrated quantization for large language models
  • Richard Sinkhorn. A relationship between arbitrary positive matrices and doubly stochastic matrices. The Annals of Mathematical Statistics, 35(2):876–879, 1964. doi: 10.1214/aoms/1177703591. (opens the publisher in a new tab)
  • Concerning nonnegative matrices and doubly stochastic matrices (opens the publisher in a new tab)
  • Massive activations in large language models
  • Flatness matters for LLM quantization
  • QuIP#: Even better LLM quantization with Hadamard incoherence and lattice codebooks
  • Outlier suppression: Pushing the limit of low-bit transformer language models
  • SmoothQuant: Accurate and efficient post-training quantization for large language models
  • Qwen3 Technical Report
  • ZeroQuant: Efficient and affordable post-training quantization for large-scale transformers
  • TurboQuant: Online vector quantization with near-optimal distortion rate
  • HellaSwag: Can a machine really finish your sentence? In Proceedings of the Annual Meeting of the Association for Computational Linguistics (ACL), pp. 4791–4800, 2019
  • We address this by combining two classical techniques from optimization: variable splitting, which decouples the conflicting roles of the scale vectors, and block coordinate descent, which exploits the resulting structure to obtain closed-form updates
  • The idea is to introduce separate copies of the variable, one for each role, and enforce equality between the copies as an explicit constraint
  • as an inner scale applied to the argument of $Q(\cdot)$, which determines the quantization grid assignment, i.e., which discrete value each weight is mapped to, and as an outer scale applied after applying $Q(\cdot)$, which controls how those discrete values are reconstructed in full precision
  • Rather than jointly optimizing all variables simultaneously, which may be intractable or computationally prohibitive, BCD partitions the variable set into blocks and cycles through them, optimizing each block exactly (or approximately) while holding the remaining blocks fixed
  • Under mild regularity conditions, in particular when each subproblem admits a unique minimizer, BCD is guaranteed to converge to a stationary point of the objective (Tseng, 2001)
  • To cast each subproblem as a standard least-squares problem, we substitute $u_i = \alpha_{\mathrm{out},i}^{-1}$, which linearizes the dependence on the scale
  • it is large when the quantized row underestimates the original, and small when it overestimates
  • Substituting $v_j = \beta_{\text{out},j}^{-1}$ and setting the derivative with respect to $v_j$ to zero:
  • For brevity, define
  • We briefly review SINQ's scale-selection procedure (Appendix D.1), describe our extension to MX and NV formats (Appendix D.2), and explain why this extension exhibits the divergence behavior observed in Table 1 on those formats (Appendix D.3)
  • The imbalance is reported as the ratio of the largest to the smallest per-axis standard deviation of $\breve{W}$
  • A perfectly balanced matrix has $\mathcal{I}(\tilde{\mathbf{W}}) = 1$
  • We note that even in its original weight-only setting without any of our extensions, SINQ produces inferior scales to DUALQUANT across all formats (Appendix H)
  • To confirm this is a genuine improvement in activation quantization quality, and not merely a by-product of better weight quantization, we isolate $\beta$'s effect on activations by holding the quantized weights fixed
  • Quantized weights $\hat{Q}$ are held fixed; only the presence of the $\beta$ pre-scaling varies
  • All calibration-based baselines (AWQ+ and SmoothQuant) use the same calibration set: 256 sequences of length 8192 randomly sampled from the WikiText-2 training split, strictly disjoint from the evaluation splits
  • DUALQUANT applies $\beta$ -rescaling to activations without calibration data
  • Bold: best calibration-free (CF) result per column within each model+format block
  • On INT4, DUALQUANT matches SmoothQuant closely across all five tasks and attains the best calibration-free accuracy on four of the five, trailing only SINQ+ on PIQA (76.71 vs. 77.80)
  • At 8 bits the quantization error is already small, so there is limited room for improvement over BF16; nonetheless, DUALQUANT remains the strongest calibration-free method and is effectively lossless
  • >BF16 (reference)</td><td></td><td>-</td><td>6.15</td><td>18.14</td><td>7.54</td><td>5.62</td></tr><tr><td rowspan=
  • On NVFP4, DUALQUANT achieves the strongest results among all methods on Qwen2.5-7B (6.33) and Qwen3-0.6B (19.82)
  • More significantly, the same optimization simultaneously enables calibration-free W+A quantization (Table 1), distinguishing DUALQUANT from prior weight-only methods
  • For MX and NV formats the only modification is projecting SINQ's output scales to the target data format after the algorithm completes, as there is no other way to deploy them in these formats
  • ><tr><td rowspan=
  • Table 13 summarizes the assets along with their licenses and sources