Towards a Unified Theory of Quantization and Sparsity

Joshua Park, William Shi, David Brooks, Gu-Yeon Wei, Abdulrahman MahmoudOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

This paper challenges the conventional wisdom of model compression by proving that while applying sparsification before quantization ($S \to Q$) is mathematically superior at a tensor level, this advantage can disappear at the model level. By introducing Quantization-Aware Sparsification (QAS), the authors demonstrate that the order of operations matters less than the "co-design" of the algorithms, showing that $Q \to S$ can perform just as well as the reverse.

What Problem Does This Paper Address?

To run massive AI models on smartphones or "edge" devices, we use two main tricks: Quantization (reducing the precision of numbers, like turning 32-bit floats into 8-bit integers) and Sparsification (deleting unimportant weights by setting them to zero).

Traditionally, researchers treated these as independent steps. However, when you combine them, the order matters. If you quantize first, you might lose the fine-grained detail needed to decide which weights are "unimportant." If you sparsify first, the remaining weights might change so much that the quantization scale becomes suboptimal. This paper seeks a "Unified Theory" to explain why one order might be better than the other and whether we can bridge the performance gap between them.

Methods

The authors approach the problem through three lenses:

  1. Tensor-Level Analysis: They provide a rigorous mathematical proof showing that for any $L_p$ norm (a standard way to measure error), $S \to Q$ always results in a lower reconstruction error than $Q \to S$ when using "naive" algorithms.
  2. Model-Level Analysis: Moving beyond simple error metrics, they use a second-order Taylor expansion of the loss function to see how these errors actually affect a model's performance. They prove that $S \to Q$ is preferred when using independent, standard algorithms (like Magnitude Pruning or Optimal Brain Damage).
  3. Quantization-Aware Sparsification (QAS): To prove that $Q \to S$ isn't inherently "bad," they propose a new framework. QAS performs sparsification after quantization but uses "shadow weights" (the original full-precision values) to decide which weights to prune. This prevents the "collision" problem where quantization makes two different weights look identical to a pruner.

Datasets

The authors validated their theory using:

  • Model: OPT-125M, a popular open-source transformer model.
  • Dataset: WikiText, used to measure the "perplexity" (PPL) of the model—a lower perplexity indicates a better-performing language model.
  • Quantization Methods: They tested both naive schemes and AWQ (Activation-Aware Weight Quantization), a state-of-the-art method for Large Language Models.

Key Insights and Ideas

  • The Collision Problem: The biggest reason $Q \to S$ usually fails is "collisions." Imagine two weights, 0.4 and 0.6. If you quantize them to the nearest integer, they both become 1.0. A standard pruner can no longer tell which one was originally smaller. QAS solves this by "remembering" the original values during the pruning step.
  • Tensor Error $\neq$ Model Loss: A major takeaway is that just because a weight tensor looks "closer" to the original (low $L_p$ error), it doesn't mean the model will actually work better. This motivates the need for model-level co-design rather than just optimizing for reconstruction error.
  • The First-Order Term Matters: When a model is quantized, it moves away from its "optimal" state. The authors point out that standard pruning algorithms often ignore the "first-order" gradient terms that become significant once a model is perturbed by quantization.

Key Results

  • The $Q \to S$ Disaster: Using standard magnitude pruning after AWQ quantization caused the model's perplexity to explode. For example, at INT8 precision and 10% sparsity, the perplexity jumped from a baseline of 27.6 to 99.8. At 25% sparsity, it became a non-functional 8048.9.
  • QAS to the Rescue: When using the proposed QAS framework, the $Q \to S$ order became highly competitive. At INT8 and 10% sparsity, QAS achieved a perplexity of 28.567, nearly identical to the $S \to Q$ score of 28.557.
  • Generalization: The authors proved that the preference for $S \to Q$ holds for all $L_p$ norms ($p \ge 1$), generalizing previous work that only looked at the $L_1$ norm.

Limitations and Future Work

  • Memory Overhead: In its simplest form, QAS requires keeping a copy of the original full-precision weights to act as "shadow weights." The authors suggest this can be mitigated by storing only the rankings of the weights or by using minimal iterative "mini-retraining" to break ties between collided weights.
  • Hessian Assumptions: Some of the model-level proofs assume a diagonal Hessian matrix (meaning weights don't interact with each other in the loss function), which is a common but simplifying assumption in deep learning theory.
  • Future Directions: The authors hope this work encourages the development of more "unified" compression libraries where quantization and sparsity are optimized simultaneously rather than sequentially.

Summary updated

Abstract

Quantization and sparsification are two model compression strategies that are traditionally treated as orthogonal in the literature. Building on recent work, we show that jointly considering these techniques can meaningfully affect compression performance. First, we extend prior tensor-level analyses and prove that for any $L_p$ norm, applying sparsification before quantization ($\mathbf{S} \to \mathbf{Q}$) always yields lower errors than the reverse. However, we demonstrate that tensor-level analysis is insufficient to predict model performance, motivating the need for model-level evaluation. As such, we provide the first model-level analysis showing that $\mathbf{S} \to \mathbf{Q}$ obtains better loss in certain settings when we choose quantization and sparsification algorithms independently. Yet, this preference does have its limits. When fully relaxing model assumptions, we find it difficult to prove the superiority of $\mathbf{S} \to \mathbf{Q}$, casting doubt on the preference in the general case. To that end, we introduce Quantization-Aware Sparsification (QAS), a novel compression framework that sparsifies accounting for prior quantization, as a simple counterexample. Using this framework, we provide a simple counterexample in which $\mathbf{Q} \to \mathbf{S}$ using QAS performs comparably to $\mathbf{S} \to \mathbf{Q},$ illustrating that careful co-design between model compression steps can greatly influence performance.
BibTeX
@misc{park2026towards,
  author = {Joshua Park and William Shi and David Brooks and Gu-Yeon Wei and Abdulrahman Mahmoud},
  title = {{Towards a Unified Theory of Quantization and Sparsity}},
  year = {2026},
  url = {https://openreview.net/forum?id=H5mWJwM20M},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure