OffQ: Taming Structured Outliers in LLM Quantization by Offsetting

Haoqi Wang, Lorenz K. Mueller, Jiawei Zhuang, Mathieu Salzmann, Lukas CavigelliarXiv 2026

TL;DR

OffQ introduces a clever post-training quantization method that tames extreme activation outliers in Large Language Models (LLMs) by turning them into uniform offsets. By concentrating outliers via a tailored "top-1 PCA" and spreading them evenly using a Hadamard rotation, OffQ absorbs outlier energy directly into standard quantization zero-points. This enables highly accurate 4-bit uniform quantization (W4A4KV4) without hardware-unfriendly mixed precision or expensive retraining.

What Problem Does This Paper Address?

Quantizing LLMs down to 4 bits for weights, activations, and KV-caches (the W4A4KV4 configuration) is highly desirable because it drastically reduces memory traffic, increases throughput, and lowers serving costs. However, activations in LLMs naturally contain "outliers"—rare, sparse tokens with massive values in specific channels that dominate the dynamic range.

When you apply standard uniform quantization, the quantization step size must stretch to accommodate these massive spikes. This forces the normal, smaller activation values to be lumped together into coarse bins, leading to massive rounding errors and severe model degradation. Existing solutions either use mixed-precision schemes (keeping outlier channels in 16-bit, which breaks uniform hardware execution) or use backpropagation to learn complex rotation matrices, which is computationally expensive. OffQ aims to solve this cleanly using a hardware-friendly, mathematically elegant post-training approach.

Methods

OffQ operates on a key insight: activation outliers exhibit a pronounced low-dimensional structure, meaning high-norm tokens share similar directions across layers and sequences. The method neutralizes them in three main steps:

  1. Top-1 PCA: Standard PCA gets distracted by the sheer volume of normal tokens. OffQ isolates the outlier subspace by collecting activation statistics from a small calibration dataset, but filtering exclusively for the single token per sequence with the largest $L^\infty$ norm (the spikiest token). Eigendecomposition on this filtered subset yields a rotation matrix $U_1$.
  2. Outlier Concentration: Multiplying the activations by $U_1$ rotates the activation space, packing the dominant outlier energy into just the first few channels.
  3. Hadamard Offsetting: The channels are reordered and partitioned into groups so that each group contains exactly one outlier channel. OffQ then applies a specialized Hadamard rotation matrix (where the first row is constrained to be all ones) to each group. This mathematically redistributes the massive spike uniformly across all channels within the group, transforming a sharp peak into a flat, constant offset.
Figure 1: Visualization of the outlier concentration of the top-1 PCA and the subsequent offsetting technique. We plot the activation values of an outlier token in Llama 3-8B before and after each step, where the x-axis is the channel index and the y-axis is the activation value. The top-1 PCA effectively concentrates the outlier into the first channel, while the regular PCA fails to do so due to interference from normal tokens. The permutation and group-wise offsetting then redistributes the outlier value across all channels, creating constant offsets that can be absorbed during quantization.

Because this offset is completely uniform across the group, it can be seamlessly absorbed directly into the zero-point parameter of standard asymmetric uniform quantization.

Figure 2: The overall quantization pipeline of OffQ. U1 is the shared rotation from top-1 PCA on attention and feedforward inputs, P1 and P4 are the permutation matrices for grouping, R2 is a per-head random rotation, H1 is the group-wise Hadamard rotation for offsetting, and H3, H4 with yellow background are the online Hadamard rotations. Most rotation matrices, except for the three online Hadamard rotations, are fused into the weight matrices to reduce computational overhead.

Datasets

The authors evaluated OffQ across multiple model families (Llama 2, Llama 3, Llama 3.2, and Qwen 2.5) using two primary evaluation vectors:

  • WikiText: Used to evaluate language modeling capability via perplexity (PPL).
  • Common-Sense Reasoning: A suite of 8 zero-shot tasks including ARC-e, ARC-c, BoolQ, HellaSwag, OpenBookQA, PIQA, SIQA, and WinoGrande.

Key Insights and Ideas

  • Standard PCA is Blind to Outliers: Because activations are $L^2$-normalized, standard PCA overemphasizes the aggregate variance of normal tokens, causing the leading eigenvector to drift away from the true outlier direction. Selecting the top-1 $L^\infty$ token acts as a perfect proxy for identifying extreme outliers.
  • Hiding Spikes in the Zero-Point: Instead of trying to suppress, clip, or isolate outliers using high-precision channels, transforming them into a constant group-wise offset allows standard hardware-supported asymmetric quantization to completely nullify their negative impact.
  • Preserving Uniform Precision: By handling outliers entirely through mathematical transformations that fuse directly into the model's weights, OffQ keeps all matrix multiplications in uniform 4-bit execution, avoiding the hardware overhead of mixed precision.

Key Results

OffQ consistently outperformed state-of-the-art post-training quantization baselines across diverse architectures:

  • Llama 3-8B: Under the strict W4A4KV4 setting, OffQ achieved a perplexity of 6.98, significantly beating standard QuaRot (7.8) and SpinQuant (7.4), and approaching the unquantized 16-bit baseline (6.1).
  • Qwen 2.5 Models: Smaller Qwen models are notoriously difficult to quantize due to severe bias-induced outliers. While naive rotation methods like QuaRot collapsed on Qwen 2.5-1.5B (perplexity of 6600), OffQ maintained a robust perplexity of 11.35 and achieved the highest zero-shot accuracy (57.53%).

Limitations and Future Work

  • Inference Latency: While OffQ maintains uniform 4-bit matrix multiplication, the authors have not yet reported actual end-to-end inference latency or speedups in real-world deployment environments.
  • Advanced Weight Quantizers: The current pipeline relies on standard GPTQ for weight quantization. The authors note that combining OffQ with more advanced weight quantizers (like GPTAQ or LeanQuant) could yield even better results.
  • Alternative Formats & Architectures: Extending the offsetting mechanism to micro-scaling data formats (such as MXFP4 and NVFP4) and Vision Transformers (ViTs) remains an open direction for future research.

Summary updated

BibTeX
@misc{wang2026offq,
  author = {Haoqi Wang and Lorenz K. Mueller and Jiawei Zhuang and Mathieu Salzmann and Lukas Cavigelli},
  title = {{OffQ: Taming Structured Outliers in LLM Quantization by Offsetting}},
  year = {2026},
  eprint = {2606.07116},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.07116},
}
Figure