Quantization is often described as a simple rounding exercise: taking a high-precision number and snapping it to the nearest value on a grid. However, as we push neural networks toward ultra-low bit-widths—like 4-bit, 2-bit, or even ternary representations—simple rounding fails. The cumulative noise from rounding errors destroys the delicate signal within the model's weights and activations.
A growing body of research reframes quantization not as a rounding problem, but as a mathematical optimization problem. The goal is to find a discrete representation that minimizes the "reconstruction error" between the original high-precision tensor and its compressed counterpart.
The Objective: Minimizing Reconstruction Error
The core intuition shared across this research is that the best quantized model is the one that stays "closest" to the original in a high-dimensional space. Most researchers, including Wonyong Sung, Kyuyeon Hwang, and Sungho Shin, argue that minimizing the Mean Squared Error (MSE) or L2 distance is the most effective way to preserve a model's performance.
In Low-bit Quantization of Neural Networks for Efficient Inference, Yoni Choukroun and colleagues demonstrate that treating quantization as a Minimum Mean Squared Error (MMSE) problem allows for 4-bit models that perform nearly as well as their 32-bit counterparts without full retraining. By optimizing the scaling factors to fit the actual distribution of weights, we ensure that the discrete grid captures the most critical information.
The Mechanism: Alternating Minimization
Quantizing a weight matrix involves two moving parts: the discrete levels (the integers or bit-codes) and the scaling factors (the floating-point values that map those integers back to the original range). Optimizing both simultaneously is difficult because the discrete part is non-differentiable.
To solve this, researchers frequently employ alternating minimization. The logic is simple:
- Freeze the scaling factors and find the best discrete weights (often via simple rounding or projection).
- Freeze the discrete weights and solve for the optimal scaling factors (often a closed-form least-squares solution).
- Repeat until the reconstruction error stops decreasing.
This strategy is a recurring theme. Zhiteng Li and the authors of ARB-LLM use this "alternating refinement" to push Large Language Models into the 1-bit regime. Similarly, Fanliu Kong in decoupleQ decouples parameters into integer and floating-point parts, using projected gradient descent to refine the discrete components.
Beyond Rounding: Geometric and Statistical Fits
Why does this optimization work better than heuristics? It accounts for the shape of the data.
- Statistical Tailoring: Weights in neural networks often follow Gaussian or Laplace distributions. Eunhyeok Park and Peter Vajda showed that by modeling these distributions, we can analytically derive quantization levels that minimize L2 error more effectively than uniform linear scaling.
- Lattice Geometry: In a fascinating theoretical bridge, Johann Birnick proved in The Lattice Geometry of Neural Network Quantization that popular algorithms like GPTQ are mathematically equivalent to Babai’s "nearest-plane" algorithm from lattice theory. This suggests that quantization is essentially a search for the closest point in a high-dimensional grid (a lattice) defined by the model's activations.
Why It Matters
This shift from "rounding" to "optimization" is what makes modern model compression viable. By treating the selection of clipping thresholds and scaling factors as a discrete optimization problem—as seen in the work of Hui Guan on embedding tables—we can shrink models to a fraction of their size.
Whether it is Penghang Yin using proximal operators for ternary networks or Jinuk Kim using end-loss guidance to prioritize critical weights, the conclusion is the same: to compress a model without breaking it, you must mathematically minimize the distance between the original and the approximation.