Abstract
Model compression is essential for deploying deep learning architectures on resource-constrained edge devices. However, determining optimal mixed-precision quantization strategies remains a significant challenge due to the astronomical search space of layer-wise bit-widths. This paper introduces the Compression Error Theory (CET) framework, which shifts model compression from trial-and-error heuristics to a rigorous geometric foundation. By utilizing Hessian analysis to identify "error subspaces," CET determines optimal quantization for each layer. Our framework achieves up to 12.74× weight compression on ResNet-50 with negligible accuracy loss and even improves accuracy on ResNet-34 compared to the original full-precision model.
Introduction
As deep learning models grow in complexity, the need for efficient compression becomes paramount. Mixed-precision quantization—allocating different bit-widths to different layers based on their sensitivity—is a powerful technique. Yet, for a network with $L$ layers and multiple bit-width options, the search space is $4^L$, making exhaustive search impossible. Existing solutions often rely on expensive reinforcement learning or "gut-feeling" heuristics. CET addresses this by treating compression as a problem of managing noise introduced into model weights through a geometric lens.
Methodology: The Geometric Foundation of CET
CET treats the loss function's sensitivity to parameter changes ($\Delta w$) as a geometric problem. By applying a Taylor expansion to the loss function $\Delta L$, the framework identifies that for well-trained models (where gradients are near zero), the Hessian matrix (second-order derivatives) dictates the impact of quantization noise.
Geometric Reconstruction
The Hessian is viewed as a geometric shape in high-dimensional space. If the Hessian is positive definite, the loss surface resembles an ellipsoid; if indefinite, it forms a hyperbolic paraboloid (saddle surface). CET identifies "long axes" in these shapes—directions where the surface is flat—indicating that significant quantization noise can be added along these vectors with minimal impact on total loss. The framework uses the Lanczos algorithm to efficiently approximate the necessary eigenvalues and eigenvectors, transforming an NP-hard search problem into a solvable optimization task.
Experimental Results
The CET framework was validated across Computer Vision (ImageNet-1K) and Natural Language Processing (SQuAD, MNLI, SWAG) tasks.
Performance on ResNet Architectures
CET demonstrated superior performance compared to state-of-the-art methods like HAWQ-v2 and GPTQ. Notably, on ResNet-34, CET identified that the Hessian is indefinite at convergence. By quantizing along directions corresponding to negative eigenvalues, the framework actually reduced the loss, resulting in a quantized model that outperformed the original FP32 version by 0.11%.
Key Quantitative Highlights
- ResNet-18: Achieved 11.02× weight compression with a negligible 0.01% accuracy drop.
- ResNet-50: Reached 12.74× weight compression with only a 0.03% drop.
- MobileNet-V2: Achieved 14.99× weight compression with significantly lower degradation (-1.69%) than prior methods like HAQ (-5.12%).
- Efficiency: The optimization process converges in roughly 2,000 iterations (a few minutes), whereas search-based methods often require hundreds of GPU hours.
Discussion and Future Work
CET provides a theoretical "why" behind bit-width selection, moving beyond black-box optimization. While the framework currently relies on Hessian approximations via the Lanczos algorithm and assumes models are near convergence, its success across diverse architectures suggests broad applicability. Future research may extend this geometric error-theoretical approach to other compression techniques, such as low-rank decomposition and weight pruning, to further refine model efficiency without sacrificing performance.
Summary updated