NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FPTQuant: Function-Preserving Transforms for LLM Quantization

Boris van Breugel, Yelysei Bondarenko, Paul N. Whatmough, Markus Nagel

The Quantization Bottleneck and the Outlier Problem

Large Language Models (LLMs) demand massive computational resources and energy during inference. To deploy these models on consumer hardware or edge devices, practitioners rely on quantization—the process of converting high-precision weights and activations (e.g., FP16) into lower-bit integer formats (e.g., INT4).

However, naive quantization faces a critical hurdle: the outlier problem. LLM activations naturally exhibit a few extremely large magnitude values alongside many small ones. If the quantization grid is scaled to accommodate these massive outliers, the precision for the smaller, more common values is destroyed. Conversely, ignoring the outliers causes them to be clipped, which severely degrades model performance. Prior attempts to solve this either introduced slow, computationally expensive steps during inference or failed to handle the complex mathematics of modern transformer architectures, particularly Rotary Positional Encodings (RoPE).

Introducing FPTQuant

To address these challenges, researchers introduce FPTQuant, a method that utilizes three novel, lightweight, and highly expressive Function-Preserving Transforms (FPTs). These mathematical operations are inserted into the model to reshape the internal distribution of activations, making them "quantization-friendly" by smoothing out extreme outliers. Crucially, these transforms are designed to mathematically cancel out, ensuring the final output of the transformer remains identical to the original full-precision model.

Core Mechanisms: Three Novel Transforms

FPTQuant leverages the inherent equivariances and independencies of canonical transformer operations to apply three specific transforms:

  1. Pre-RoPE Transform: A scale-and-rotate operation applied to Queries and Keys. Because it commutes with Rotary Positional Encodings (RoPE), it bypasses the historical difficulty of quantizing RoPE-enabled models.
  2. Multihead Value Transform: This transform utilizes invertible matrices for each attention head to effectively smooth out the "Value" activations.
  3. Pseudodynamic Residual Scaling: A highly efficient method to normalize the residual stream—the primary data pathway in a transformer. By utilizing existing normalization logic, it significantly reduces outliers between transformer blocks without heavy computational penalties.

The Mergeability Advantage: The "secret sauce" of FPTQuant is that these transforms are mergeable. After the model is trained, the transforms are mathematically folded directly into the existing linear layers. At runtime, the hardware simply executes a standard linear layer. This means FPTQuant requires no custom kernels and adds virtually zero computational overhead during inference.

Training, Stability, and Insights

The success of FPTQuant relies on a few key conceptual breakthroughs:

  • Exploiting Equivariance: By understanding the symmetries in transformer operations (e.g., how specific rotations preserve dot products), the authors successfully hid complex smoothing operations entirely within the model's weights.
  • Student-Teacher Distillation: Rather than training the quantized model solely on next-token prediction, FPTQuant employs a Student-Teacher approach. The quantized model is trained end-to-end to match the full probability distribution of the original full-precision model, preventing overfitting to the calibration data.
  • Numerical Stability: FPTQuant demonstrates remarkable stability during optimization. Unlike competing methods (such as FlatQuant or OSTQuant), the function-preserving property holds even if noise is added to the transform parameters, resulting in a much smoother optimization landscape. Furthermore, the local optimization of these transforms is incredibly fast, taking only about 8 minutes for a 7B parameter model before main training begins.

Empirical Results

FPTQuant was rigorously evaluated across a variety of models, including Llama-2 (7B/13B), Llama-3 (8B), Llama-3.2 (3B), Ministral 8B, and Qwen-2.5 (32B). The evaluation suite included Wikitext-2 for language modeling, alongside reasoning and common-sense benchmarks like PIQA, WinoGrande, HellaSwag, ARC, LAMBADA, MMLU, and GSM8K.

  • State-of-the-Art Speed: FPTQuant enables static INT4 quantization that achieves a massive 2.8x to 3.9x speedup over FP16 implementations. Notably, it is consistently 15–29% faster than the previous state-of-the-art (FlatQuant) because it completely avoids expensive online matrix inversions.
  • Maintained Accuracy: In stringent deployment scenarios where nearly the entire model is quantized to 4-bit, FPTQuant significantly outperforms prior methods like SpinQuant and QuaRot, offering an excellent accuracy-speed trade-off.

Limitations and Future Directions

While FPTQuant represents a major leap forward for static INT4 quantization, the authors note a few limitations:

  • Hardware Support: Current standard cloud GPUs (like those from NVIDIA) have limited native support for the specific low-bit integer math required to realize these exact speedups. The full potential of FPTQuant is currently best realized on specialized edge AI chips, such as those developed by Qualcomm.
  • Architectural Adaptations: While highly effective on standard dense architectures (Llama, Qwen), applying FPTQuant to Mixture-of-Experts (MoE) models will require slight modifications to where the transforms are placed.
  • Extreme Quantization: Pushing the boundaries further to 2-bit quantization remains a formidable challenge that FPTs alone may not entirely resolve.

Summary updated

BibTeX
@inproceedings{breugel2026fptquant,
  author = {Boris van Breugel and Yelysei Bondarenko and Paul N. Whatmough and Markus Nagel},
  title = {{FPTQuant: Function-Preserving Transforms for LLM Quantization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=2jpCo5lnSZ},
}
Figure