EPTQ: Enhanced Post-Training Quantization via Hessian-Guided Network-Wise Optimization

Abstract

Quantization is a key method for deploying deep neural networks on edge devices with limited memory and computation resources. Recent improvements in Post-Training Quantization (PTQ) methods were achieved by an additional local optimization process for learning the weight quantization rounding policy. However, a gap exists when employing network-wise optimization with small representative datasets. In this paper, we propose a new method for enhanced PTQ (EPTQ) that employs a network-wise quantization optimization process, which benefits from considering cross-layer dependencies during optimization. EPTQ enables network-wise optimization with a small representative dataset using a novel sample-layer attention score based on a label-free Hessian matrix upper bound. The label-free approach makes our method suitable for the PTQ scheme. We give a theoretical analysis for the said bound and use it to construct a knowledge distillation loss that guides the optimization to focus on the more sensitive layers and samples. In addition, we leverage the Hessian upper bound to improve the weight quantization parameters selection by focusing on the more sensitive elements in the weight tensors. Empirically, by employing EPTQ we achieve state-of-the-art results on various models, tasks, and datasets, including ImageNet classification, COCO object detection, and Pascal-VOC for semantic segmentation.

Cite

Text

Gordon et al. "EPTQ: Enhanced Post-Training Quantization via Hessian-Guided Network-Wise Optimization." European Conference on Computer Vision Workshops, 2024. doi:10.1007/978-3-031-91979-4_13

Markdown

[Gordon et al. "EPTQ: Enhanced Post-Training Quantization via Hessian-Guided Network-Wise Optimization." European Conference on Computer Vision Workshops, 2024.](https://mlanthology.org/eccvw/2024/gordon2024eccvw-eptq/) doi:10.1007/978-3-031-91979-4_13

BibTeX

@inproceedings{gordon2024eccvw-eptq,
  title     = {{EPTQ: Enhanced Post-Training Quantization via Hessian-Guided Network-Wise Optimization}},
  author    = {Gordon, Ofir and Cohen, Elad and Habi, Hai Victor and Netzer, Arnon},
  booktitle = {European Conference on Computer Vision Workshops},
  year      = {2024},
  pages     = {150-166},
  doi       = {10.1007/978-3-031-91979-4_13},
  url       = {https://mlanthology.org/eccvw/2024/gordon2024eccvw-eptq/}
}