EPTQ: Enhanced Post-Training Quantization via Hessian-guided Network-wise Optimization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Gordon, Ofir, Cohen, Elad, Habi, Hai Victor, Netzer, Arnon
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912046744862720
author Gordon, Ofir
Cohen, Elad
Habi, Hai Victor
Netzer, Arnon
author_facet Gordon, Ofir
Cohen, Elad
Habi, Hai Victor
Netzer, Arnon
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2309_11531
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle EPTQ: Enhanced Post-Training Quantization via Hessian-guided Network-wise Optimization
Gordon, Ofir
Cohen, Elad
Habi, Hai Victor
Netzer, Arnon
Computer Vision and Pattern Recognition
Machine Learning
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.
title EPTQ: Enhanced Post-Training Quantization via Hessian-guided Network-wise Optimization
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2309.11531