OMPQ: Orthogonal Mixed Precision Quantization

Yuexiao Ma, Taisong Jin, Xiawu Zheng, Yan Wang, Huixia Li, Yongjian Wu, Guannan Jiang, Wei Zhang, Rongrong Ji

Abstract

Mixed Precision Quantization (MPQ) is a powerful technique for optimizing neural networks for edge deployment, yet finding the optimal bit-width for each layer remains a computationally expensive search problem. We present Orthogonal Mixed Precision Quantization (OMPQ), a novel framework that utilizes an "orthogonality metric" (ORM) as a proxy for model accuracy. By transforming the bit-selection process into a linear programming task, OMPQ achieves state-of-the-art quantization results in seconds using minimal data, effectively eliminating the need for costly reinforcement learning or evolutionary search loops.

Introduction

Deploying deep neural networks on resource-constrained edge devices requires significant model compression. Quantization—reducing the precision of weights and activations—is a primary strategy. Mixed Precision Quantization (MPQ) offers superior performance by tailoring bit-widths to the sensitivity of individual layers. However, the search space for these configurations is combinatorial, traditionally requiring hundreds of GPU hours, complex Hessian calculations, or large calibration datasets.

OMPQ addresses these bottlenecks by introducing a proxy metric that correlates highly with accuracy but can be calculated almost instantly. This approach allows for a "zero-iteration" search, drastically reducing the time and data required to find optimal bit configurations.

Methodology: The Orthogonality Metric

The core of OMPQ is the ORthogonality Metric (ORM), which measures the independence of layer representations.

Network Deconstruction and ORM Calculation

The framework treats a neural network as a sequence of functions ($f_1, f_2, \dots, f_L$). The authors hypothesize that maintaining orthogonality between these layer functions preserves the model's representational capacity. The ORM is defined using a normalized inner product between layer functions, where a value of 0 indicates perfect orthogonality and 1 indicates redundancy.

To make this computationally feasible, OMPQ uses Monte Carlo sampling with a small batch of images (32–64) and a mathematical flattening trick to convert complex integrals into efficient matrix operations.

Overview of the OMPQ pipeline: from network deconstruction to linear programming for bit-allocation.

Linear Programming for Bit Allocation

Once the ORM for each layer is determined, an importance factor ($\theta$) is calculated. The bit-allocation problem is then formulated as a standard Linear Programming (LP) objective: maximize the total importance of the layers subject to a total model size constraint. This LP problem can be solved on a standard CPU in seconds, bypassing the need for iterative training loops.

Experimental Results

The researchers evaluated OMPQ on the ImageNet dataset, focusing on both search efficiency and final model accuracy.

Search Efficiency

A standout feature of OMPQ is its extreme efficiency. As illustrated in the comparison below, OMPQ requires zero search iterations and significantly less data than competing methods like HAWQ or BRECQ. For instance, on MobileNetV2, the entire search process completes in just 9 seconds on a single CPU.

Comparison of searching cost and data requirements between OMPQ and existing methods.

Accuracy Benchmarks

OMPQ achieves competitive or superior accuracy compared to state-of-the-art methods:

  • ResNet-18: Reached 72.08% Top-1 accuracy with a 6.7MB model, outperforming HAWQ-V3 (70.22%).
  • MobileNetV2: Achieved 71.39% Top-1 accuracy in a post-training quantization (PTQ) setting, surpassing FracBits (69.90%) and BRECQ (70.28%).

Key Insights and Future Work

The primary insight of this work is that network orthogonality serves as a reliable proxy for quantized accuracy. This shift from iterative search to direct calculation enables rapid deployment of mixed-precision models.

While OMPQ is highly effective, future work could address the sensitivity of the importance factor hyperparameter ($\beta$) and extend the framework to search for weight and activation bit-widths simultaneously. Additionally, the authors suggest adapting the linear programming formulation to handle multi-objective constraints such as latency and energy consumption alongside model size.

Summary updated

BibTeX
@inproceedings{ma2023ompq,
  author = {Yuexiao Ma and Taisong Jin and Xiawu Zheng and Yan Wang and Huixia Li and Yongjian Wu and Guannan Jiang and Wei Zhang and Rongrong Ji},
  title = {{OMPQ: Orthogonal Mixed Precision Quantization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i7.26084},
}
Figure