WUSH: Near-Optimal Adaptive Transforms for LLM Quantization

arXiv:2512.00956 · cs.LG, cs.CL · Submitted 2025-11-30 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: We're looking at the paper: "WUSH: Near-Optimal Adaptive Transforms for LLM Quantization".

Jane: Here's the gist of the paper. The gist The construction WUSH combines a Hadamard backbone with a data-dependent second-moment component to form a non-orthogonal transform that is provably nearoptimal for FP and INT quantizers under mild assumptions while admitting an efficient fused GPU implementation.

Tom: Problem Setup and Goal The paper addresses the difficulty that "a few extreme “outlier” weights and activations expand the dynamic range and thereby degrade the effective resolution of low-bit representations".

Jane: The central difficulty in model deployment is that "a few extreme “outlier” weights and activations expand the dynamic range and thereby degrade the effective resolution of low-bit representations".

Tom: The objective is to choose transforms TW and TX such that the L2 output loss l = d−1 outd−1 batch q (TWW)⊤ q (TXX) − W⊤X is minimized under the given quantizer q.

Paper summary: Tom: So, looking at "WUSH: Near-Optimal Adaptive Transforms for LLM Quantization," the authors are showing how to make weight and activation quantization more robust against those problematic extreme values in models.

Jane: They achieve this by creating a WUSH construction that adapts the transform based on data statistics, combining a fixed Hadamard backbone with a component derived from second-order statistics.

Lu: This construction combines a fixed Hadamard backbone with a datadependent second-moment component to form a non-orthogonal transform that is provably nearoptimal for FP and INT quantizers under mild assumptions while admitting an efficient fused GPU implementation.

Meng: The implication here is that we can move beyond fixed, data agnostic transforms and use something that actually learns the shape of the weight and activation distribution locally within each block.

Lalam: It clarifies the empirical success of Hadamard rotations while indicating that principled, data-aware block transforms can yield significant improvements, like making the MXFP format competitive with NVFP.

Tom: The paper shows that this approach improves state-of-the-art results for weight and activation quantization, specifically on metrics like W4A4 accuracy.

Jane: It's a big step because it proves that we can get better accuracy by being smart about how we transform the data before you quantize it.

Conclusion: Tom: So, to wrap up this paper, WUSH is about getting better at quantizing those weights and activations in large language models by using a transform that adapts to the data instead of just using one fixed thing for everything.

Jane: It's really focused on solving that problem where a few extreme numbers can mess up the quality of your low-bit representation. So, it’s about making the quantization more resilient to those outliers.

Lu: The core idea is this construction WUSH, which mixes a standard Hadamard backbone with something that depends on the data's second moment statistics. It’s designed to be nearly optimal for both floating-point and integer formats under certain assumptions.

Meng: From a deployment standpoint, what I like is that they claim it has an efficient fused GPU implementation, so it shouldn't add a huge runtime tax when we actually run these models at scale.

Lalam: I see the big picture here is that this isn't just tweaking some numbers; it’s about building a smarter way to map the weights and activations for quantization that actually reduces error where it matters most.

Tom: So, if you think about what this means for deployment, WUSH suggests we might be able to get much better accuracy on formats like MXFP4 or INT4 without having to use overly complex or slow transforms.

Jane: Exactly. It’s showing that a principled, data-aware transform can actually outperform some of the established methods we've seen before, especially when dealing with those tricky outlier cases.

Lu: The theoretical analysis confirms that this non-orthogonal transform aligns the error reduction along the direction where it actually helps, which is why it performs so well in those extreme scenarios.

Meng: It’s interesting because they show you can get speedups too; they’re hitting up to five point eight times per layer over BF16 using this FP4 MatMul approach. That throughput gain is something I really care about when I'm thinking about serving models.

Tom: The authors are basically saying that we should look beyond just the standard fixed Hadamard rotations and start looking at how the data itself can inform the transform we use for quantization.

Jane: And that moves us closer to having a more robust quantization workflow for whatever models people are building right now. What this paper opens up next is seeing if this works as well when you add more complex noise or different types of activations into the picture.

Jiale Chen, Vage Egiazarian, Roberto L. Castro, Torsten Hoefler, Dan Alistarh

Institute of Science and Technology Austria (ISTA) · Red Hat AI · ETH Zürich

cs.LG, cs.CL

Submitted: 2025-11-30

Updated: 2026-05-30

Comments: Published as a conference paper at the 43rd International Conference on Machine Learning (ICML 2026): https://openreview.net/forum?id=ZsECxUkbKB

Journal ref: Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:14118-14144, 2026

Code: https://github.com/IST-DASLab/WUSH

License: http://creativecommons.org/licenses/by/4.0/

The gist: The gist The construction WUSH combines a Hadamard backbone with a data-dependent second-moment component to form a non-orthogonal transform that is provably nearoptimal for FP and INT quantizers

Key concepts

Quantization Outliers
Extreme weights or activations in a model can cause the dynamic range to expand significantly. This expansion degrades the effective resolution of low-bit representations, leading to larger quantization errors. WUSH is designed to mitigate these specific outlier issues.
WUSH Construction
WUSH is a novel transform that merges a fixed Hadamard backbone with a second-moment component derived from data statistics. This results in a non-orthogonal transformation that is provably near-optimal for both floating-point and integer quantizers under mild assumptions, making it more adaptive than standard methods.
Hadamard Matrix (H)
The Hadamard matrix is a fixed, data-agnostic ingredient used in the WUSH construction. It serves as a baseline component in the transform. The paper shows that while fixed transforms are useful, they are insufficient on their own for achieving near-optimal quantization performance across different data distributions.

Terminology

Summary

The gist The construction WUSH combines a Hadamard backbone with a data-dependent second-moment component to form a non-orthogonal transform that is provably nearoptimal for FP and INT quantizers under mild assumptions while admitting an efficient fused GPU implementation.

Problem Setup and Goal

The paper addresses the difficulty that a few extreme “outlier” weights and activations expand the dynamic range and thereby degrade the effective resolution of low-bit representations. The central difficulty in model deployment is that a few extreme “outlier” weights and activations expand the dynamic range and thereby degrade the effective resolution of low-bit representations. The objective is to choose transforms TW and TX such that the L2 output loss l = d−1 outd−1 batch q (TWW)⊤ q (TXX) − W⊤X is minimized under the given quantizer q. This involves minimizing the blockwise losses l(i) independently, where l(i) is defined as d−1 outd−1 batch q TW(i)W(i)⊤ q TX(i)X(i) − W⊤ (i)X (4).

Optimal Transform Derivation

The paper derives closed-form optimal linear blockwise transforms for joint weight-activation quantization, which are generally non-orthogonal and adaptive. The construction WUSH is derived by showing that the optimal TW(i) and TX(i) can be constructed as Txvsh(i) = HS− 1/2 (i) V⊤ (i)X′(i), Twush(i) = HS− 1/2 U⊤ (i)W′(i), respectively. This construction "combines a Hadamard backbone with a datadependent second-moment component to form a non-orthogonal transform that is provably nearoptimal for FP and INT quantizers under mild assumptions while admitting an efficient fused GPU implementation". The Hadamard matrix H is the only data-agnostic ingredient in our optimal formulation in Eq. (7).

Theoretical Analysis of Optimality

The theoretical derivation shows that for floating-point (FP) data types, the optimal configuration of T for floating-point (FP) data types is U′ = H, S′ = S1/2, and R = I. For integer (INT) types, the same configuration is optimal up to a d o(1) factor for zeromean multivariate Gaussian/Laplacian distributed data and within a d factor for any distribution. The analysis shows that WUSH more effectively reduces the error by aligning the ellipse’s major axis to the error reduction (blue) regions. Specifically, in the FP case, WUSH can reduce the error by at most d times in the extreme outlier scenario.

Empirical Performance and Efficiency

Empirically, WUSH significantly improves end-to-end accuracy over prior transform-based baselines. For Llama-3.1-8BInstruct in MXFP4, it gains +2.8 average points with RTN and +0.7 with GPTQ. Despite using a distinct (data-aware) transform per block, WUSH admits an efficient fused GPU kernel whose throughput matches that of optimized blockwise Hadamard kernels while delivering up to 5.8× per-layer speedups over BF16 via FP4 MatMul. The online transform is fused with activation quantization in a kernel detailed in Section 5, leading to negligible runtime overhead.

Experimental Results

WUSH consistently yields the smallest loss for MXFP4 and INT4. For Llama-3.1-8BInstruct on W4A4 accuracy, GPTQ-WUSH improves by up to +0.7 average points. The results show that WUSH improves the state-of-the-art for weight-activation quantization. The performance comparison in Figure 2 shows that WUSH + Quant + FP4 MatMul achieves speedups of up to 5.8× over BF16, and it closely matches the performance of the optimized H + Quant + FP4 MatMul baseline.

Conclusion

WUSH is a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU kernel implementations. This work clarifies the empirical success of Hadamard rotations and indicates that principled, data-aware block transforms can yield significant improvements, e.g., making the MXFP format competitive with NVFP. The results conclude that WUSH improves the state-of-the-art for weight-activation quantization. The construction WUSH combines a fixed Hadamard backbone with a data-aware component derived from second-order statistics, yielding a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU kernel implementations. The results clarify the empirical success of Hadamard rotations and indicate that principled, data-aware block transforms can yield significant improvements, e.g., making the MXFP format competitive with NVFP. The construction WUSH combines a fixed Hadamard backbone with a data-aware component derived from second-order statistics, yielding a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU implementation. The results clarify the empirical success of Hadamard rotations and indicate that principled, data-aware block transforms can yield significant improvements, e.g., making the MXFP format competitive with NVFP. The construction WUSH combines a fixed Hadamard backbone with a data-aware component derived from second-order statistics, yielding a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU implementation. The results clarify the empirical success of Hadamard rotations and indicate that principled, data-aware block transforms can yield significant improvements, e.g., making the MXFP format competitive with NVFP. The construction WUSH combines a fixed Hadamard backbone with a data-aware component derived from second-order statistics, yielding a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU implementation. The results clarify the empirical success of Hadamard rotations and indicate that principled, data-aware block transforms can yield significant improvements, e.g., making the MXFP format competitive with NVFP. The construction WUSH combines a fixed Hadamard backbone with a data-aware component derived from second-order statistics, yielding a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU implementation. The results clarify the empirical success of Hadamard rotations and indicate that principled, data-aware block transforms can yield significant improvements, e.g., making the MXFP format competitive with NVFP. The construction WUSH combines a fixed Hadamard backbone with a data-aware component derived from second-order statistics, yielding a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU implementation. The results clarify the empirical success of Hadamard rotations and indicate that principled, data-aware block transforms can yield significant improvements, e.g., making the MXFP format competitive with NVFP. The construction WUSH combines a fixed Hadamard backbone with a data-aware component derived from second-order statistics, yielding a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU implementation. The results clarify the empirical success of Hadamard rotations and indicate that principled, data-aware block transforms can yield significant improvements, e.g., making the MXFP format competitive with NVFP. The construction WUSH combines a fixed Hadamard backbone with a data-aware component derived from second-order statistics, yielding a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU implementation. The results clarify the empirical success of Hadamard rotations and indicate that principled, data-aware block transforms can yield significant improvements, e.g., making the MXFP format competitive with NVFP. The construction WUSH combines a fixed Hadamard backbone with a data-aware component derived from second-order statistics, yielding a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU implementation. The results clarify the empirical success of Hadamard rotations and indicate that principled, data-aware block transforms can yield significant improvements, e.g., making the MXFP format competitive with NVFP. The construction WUSH combines a fixed Hadamard backbone with a data-aware component derived from second-order statistics, yielding a non-orthogonal blockwise transform that is provably nearoptimal and remains amenable to efficient GPU implementation.

Improvements for AI systems

  1. Data-aware blockwise transforms for weight-activation quantization can be derived using WUSH, which combines a Hadamard backbone with a datadependent second-moment component to form a non-orthogonal transform that is provably nearoptimal for FP and INT quantizers. This allows the system to achieve accuracy improvements of up to +2.8 average points over strong Hadamard-based baselines on Llama-3.1-8B-Instruct in MXFP4 RTN.

  2. The WUSH construction enables a significant throughput increase, delivering up to 5.8x per-layer speedups over BF16 via FP4 MatMul. This means the system can process LLM inferences much faster on compatible hardware while maintaining high accuracy.

  3. By utilizing the WUSH transform in conjunction with GPTQ, the system gains improved accuracy, specifically achieving +0.7 points on Llama-3.1-8B-Instruct in MXFP4 GPTQ comparisons. This makes the system more robust when using iterative weight update methods during quantization.

  4. The proposed method allows for a fused GPU kernel implementation where the online transform is integrated with activation quantization, resulting in negligible runtime overhead. This ensures that the performance gains are realized without incurring significant latency during inference.

  5. The system can be optimized for both FP and INT formats using WUSH, providing closed-form optimal linear blockwise transforms for joint weight-activation quantization under standard RTN AbsMax-scaled block quantizers, covering both integer and floatingpoint formats. This versatility allows the model to adapt its transformation strategy based on the target precision.

Abstract

Quantizing LLM weights and activations is a standard approach for efficient deployment, but a few extreme outliers can stretch the dynamic range and amplify low-bit quantization errors. Prior transform-based mitigations (e.g., Hadamard rotations) are fixed and data-agnostic, and their optimality for quantization has remained unclear. We derive closed-form optimal linear blockwise transforms for joint weight-activation quantization under standard RTN AbsMax-scaled block quantizers, covering both integer and floating-point formats. The resulting construction, WUSH, combines a Hadamard backbone with a data-dependent second-moment component to form a non-orthogonal transform that is provably near-optimal for FP and INT quantizers under mild assumptions while admitting an efficient fused GPU implementation. Empirically, WUSH improves W4A4 accuracy over the strongest Hadamard-based baselines (e.g., on Llama-3.1-8B-Instruct in MXFP4, it gains +2.8 average points with RTN and +0.7 with GPTQ) while delivering up to 5.8 times per-layer throughput over BF16 via FP4 MatMul. Source code is available at https://github.com/IST-DASLab/WUSH.

Sources

Related papers