Adaptive quantization with mixed-precision based on low-cost proxy

Junzhe Chen, Qiao Yang, Senmao Tian, Shunli Zhang · DOI

Researchers at Beijing Jiaotong University have introduced LCPAQ (Low-Cost Proxy-Based Adaptive Mixed-Precision Model Quantization), a framework designed to streamline the complex process of neural network quantization. By automating mixed-precision assignments, LCPAQ makes deep learning models significantly more efficient for deployment on hardware-constrained edge devices.

The Challenge of Mixed-Precision Quantization

Deep learning models are often too computationally intensive for edge devices like smartphones or IoT sensors. While quantization—reducing weight precision from 32-bit floats to 8-bit or 4-bit integers—saves memory and power, standard "uniform quantization" often degrades accuracy.

Mixed-precision quantization (MPQ) offers a superior alternative by assigning higher bit-widths to sensitive layers and lower bit-widths to robust ones. However, the search space for these configurations is massive. Finding the optimal balance of bit-widths and hyperparameters for specific hardware is traditionally a slow, computationally expensive task.

The LCPAQ Framework

LCPAQ addresses these challenges through a multi-pillared approach that optimizes both the search process and the final model performance.

  1. Hardware-Aware Module (ILP): Using Integer Linear Programming (ILP), the framework treats quantization as an optimization problem. It enforces hard constraints for model size, bit operations (Bops), and latency to ensure the resulting model fits the target hardware.
  2. Adaptive Mixed-Precision via Hessian Analysis: To identify layer sensitivity, LCPAQ calculates the trace of the Hessian matrix using a randomized, matrix-free algorithm. This mathematical grounding ensures that critical layers retain higher precision.
  3. Low-Cost Proxy NAS: This is the core innovation for speed. Instead of fully training every candidate architecture, LCPAQ utilizes a small Multi-Layer Perceptron (MLP) proxy. This proxy predicts final accuracy based on early-stage data, allowing the system to discard poor configurations almost instantly.
  4. Knowledge Distillation: A high-precision "teacher" model assists the low-precision "student" model during training, helping to recover accuracy lost during the quantization process.
The LCPAQ framework architecture including Hardware-aware, Adaptive Mixed Precision Quantization, and Low-cost Proxy Neural Architecture Search modules.

Key Insights and Results

The framework was evaluated using the ImageNet dataset on ResNet18 and ResNet50 architectures. The most significant achievement is the 200x speedup in search time, moving a process that previously took days into the realm of minutes or hours.

Accuracy vs. Efficiency

On ResNet18, LCPAQ achieved an accuracy of 73.04% using INT8 mixed precision with distillation, which notably outperforms the standard floating-point baseline of 71.47%. For ResNet50, the framework maintained a high accuracy of 74.58% even under "Low" resource constraints (reducing model size from 24.5MB to 16.0MB).

Ablation study results for ResNet18 under INT8 quantization, highlighting the performance gains from knowledge distillation and channel-wise quantization.

Complexity and Robustness

The study revealed that more complex models like ResNet50 possess a built-in buffer that improves generalization under quantization. Furthermore, while Knowledge Distillation is vital for accuracy recovery, techniques like Batch Normalization (BN) layer folding were found to prioritize inference speed over raw precision.

Limitations and Future Work

While LCPAQ is highly effective for image classification, its current optimization is task-specific. Future research will focus on adapting the framework for more complex domains, including object detection, semantic segmentation, and Natural Language Processing (NLP). Additionally, testing on specialized AI accelerators like TPUs or NPUs will further validate its real-world hardware utility.

Summary updated

BibTeX
@inproceedings{chen2024adaptive,
  author = {Junzhe Chen and Qiao Yang and Senmao Tian and Shunli Zhang},
  title = {{Adaptive quantization with mixed-precision based on low-cost proxy}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10447866},
}
Figure