Chiosa
Machine Learning

DualQuant quantizes language models without calibration data

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

3 min
Updated

In plain words

DualQuant is a post-training method for making language models smaller and faster by storing both their weights and internal activations with fewer bits. It uses the model’s existing weight matrix to choose how to rescale activation channels, so it does not need sample text for calibration.

The method was tested on Qwen and Llama models in several 4-bit formats. It usually matched or beat a calibration-based method, and on one Llama test its perplexity was 6.83 versus 7.32 for SmoothQuant.

The research

Low-bit inference is useful only when both model weights and activations can be compressed, but activation outliers make that difficult.

It remains unclear whether a method can choose effective activation rescaling from the model itself, avoiding representative calibration data while preserving quality across modern low-bit formats.

DualQuant derives activation rescaling from weights and jointly optimizes format-aware row and column scales, avoiding calibration data for low-bit inference.

The researchers optimized row and column scales directly against weight-reconstruction error, with projections onto the values allowed by each 4-bit format.

They compared the resulting joint weight-and-activation representations with SmoothQuant, which uses activation samples for rescaling, and with calibration-free baselines across Qwen and Llama models.

The evidence supports the central answer: in the reported tests, calibration-free scaling can remain competitive.

For Llama-3.1-8B in NVFP4, WikiText-2 perplexity was 6.83 for DualQuant versus 7.32 for SmoothQuant, while two other calibration-free methods diverged; a fixed-weight control also showed that the column scale itself reduced activation quantization noise.

The evidence supports calibration-free joint quantization in the tested Qwen and Llama models, formats, tasks, and one packed deployment. The convergence guarantee is conditional on non-degenerate quantization and finite stabilization, and the extended SINQ+ comparisons are best-effort baselines.

What the evidence shows

  • The problem is joint compression

    DualQuant is a calibration-free post-training quantization framework for large language models. It jointly represents weights and activations with low-bit numbers after training is complete, without retraining the model.

    The paper addresses a practical tension: low-bit inference needs both sides compressed, but activation outliers make activations harder to quantize than weights, while calibration-based methods require representative data.

  • One scale serves two jobs

    The method adds a column scale to the usual row scale for each linear layer. That column scale reduces reconstruction error in the weight matrix and, at inference, rescales the corresponding activation channels before they enter the activation quantizer.

    The scale therefore comes from weights rather than activation statistics, while the format-native quantizer still handles the remaining input-dependent range.

  • The solver respects formats

    To find the scales, DualQuant minimizes weight-reconstruction mean squared error under the target format’s representable scale values. Variable splitting separates the role that chooses quantization grid points from the role that reconstructs the weights.

    Block coordinate descent then alternates closed-form row and column updates, re-quantizes between updates, and projects scales back to the allowed format set.

  • The control isolates the effect

    A fixed-weight control tested whether the column scale itself improves activation quantization. Using INT4 on Llama-3.1-8B block 0, the researchers measured signal-to-quantization-noise ratio, where higher values mean less quantization noise.

    Applying the scale increased mean SQNR by 0.33 dB across seven projection types and by 0.53 dB at the block output.

  • Quality holds across tests

    The broader evaluation covered Qwen and Llama models, four 4-bit formats, WikiText-2 and C4 language-model tests, and five zero-shot reasoning and understanding tasks.

    In a specific WikiText-2 comparison on Llama-3.1-8B with NVFP4, DualQuant reached perplexity 6.83 versus 7.32 for SmoothQuant, while SINQ+ and QuaRot diverged in that setting.

  • The packed test transfers

    The authors also built a real packed W4A4 inference path for Llama-3.1-8B. Its WikiText-2 perplexity was 6.74, close to 6.73 for fake quantization.

    Across the reported prefill and decode workloads, packed inference used 2.51 to 2.61 times less memory and delivered 1.39 to 2.46 times BF16’s token throughput on an RTX 4090.

Deep

Next paperA revised test narrows the compute gap for diffusion models