[Paper Review] OMPQ: Orthogonal Mixed Precision Quantization
OMPQ proposes a novel mixed precision quantization method that uses a learned orthogonality metric (ORM) to efficiently determine optimal bit-widths for neural network layers via linear programming, achieving state-of-the-art accuracy with minimal search cost—72.08% Top-1 accuracy on ResNet-18 with only 6.7 MB and no iterative search.
To bridge the ever increasing gap between deep neural networks' complexity and hardware capability, network quantization has attracted more and more research attention. The latest trend of mixed precision quantization takes advantage of hardware's multiple bit-width arithmetic operations to unleash the full potential of network quantization. However, this also results in a difficult integer programming formulation, and forces most existing approaches to use an extremely time-consuming search process even with various relaxations. Instead of solving a problem of the original integer programming, we propose to optimize a proxy metric, the concept of network orthogonality, which is highly correlated with the loss of the integer programming but also easy to optimize with linear programming. This approach reduces the search time and required data amount by orders of magnitude, with little compromise on quantization accuracy. Specifically, we achieve 72.08% Top-1 accuracy on ResNet-18 with 6.7Mb, which does not require any searching iterations. Given the high efficiency and low data dependency of our algorithm, we used it for the post-training quantization, which achieve 71.27% Top-1 accuracy on MobileNetV2 with only 1.5Mb. Our code is available at https://github.com/MAC-AutoML/OMPQ.
Motivation & Objective
- Address the high computational and data cost of existing mixed precision quantization methods that rely on iterative search or relaxation techniques.
- Reduce the time and data requirements for bit-width configuration in mixed precision quantization without sacrificing model accuracy.
- Develop a proxy metric for quantization accuracy that is efficiently computable and highly correlated with model performance.
- Enable efficient post-training quantization by minimizing dependency on large-scale data and fine-tuning.
- Establish a framework that integrates seamlessly with existing quantization schemes, including both quantization-aware training and post-training quantization.
Proposed method
- Introduce a novel orthogonality metric (ORM) by generalizing function orthogonality to deep neural networks, measuring layer-wise orthogonality via Monte Carlo sampling and the Cauchy-Schwarz inequality.
- Formulate the bit-width allocation problem as a linear programming optimization that maximizes model orthogonality under compression and hardware constraints.
- Derive an equivalent, computationally efficient form of ORM to accelerate the orthogonality computation, enabling single-pass evaluation.
- Leverage the strong positive correlation between ORM and both quantization accuracy and bit-width to guide optimal bit allocation.
- Integrate OMPQ into both quantization-aware training and post-training quantization (PTQ) pipelines, replacing costly search mechanisms like evolutionary algorithms or reinforcement learning.
- Use a monotonically decreasing function (e.g., $ e^{-x} $) to model the trade-off between accuracy and compression, ensuring stable optimization.
Experimental results
Research questions
- RQ1Can a proxy metric based on neural network orthogonality effectively replace iterative or relaxation-based search in mixed precision quantization?
- RQ2How does the proposed orthogonality metric (ORM) correlate with actual quantized model accuracy and bit-width allocation?
- RQ3To what extent can OMPQ reduce data and computation requirements for bit configuration compared to existing methods like HAWQ, FracBits, or BRECQ?
- RQ4Can OMPQ achieve competitive performance in post-training quantization with minimal data and no fine-tuning?
- RQ5Does the linear programming formulation of bit allocation based on ORM yield optimal or near-optimal configurations across diverse architectures?
Key findings
- OMPQ achieves 72.08% Top-1 accuracy on ResNet-18 with only 6.7 MB model size and 75 BOPs, outperforming HAWQ-V3 by 1.86% without iterative search.
- On ResNet-50, OMPQ achieves 76.28% Top-1 accuracy with 18.7 MB and 156 BOPs, surpassing HAWQ-V3 by 0.89% with comparable model size.
- In post-training quantization, OMPQ achieves 71.27% Top-1 accuracy on MobileNetV2 with just 1.5 MB, outperforming BRECQ by 0.52% under the same model size constraint.
- OMPQ reduces search cost by orders of magnitude—requiring only a single-pass evaluation on a small data set—compared to evolutionary or reinforcement learning-based methods.
- The ORM metric shows strong positive correlation with both quantization accuracy and bit-width, validating its use as a reliable proxy for optimization.
- OMPQ’s efficiency allows it to be deployed in low-data regimes, making it suitable for practical deployment where data access is limited.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.