arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.11531cs.CVcs.LG
收藏

EPTQ:通过Hessian引导的网络级优化实现的增强型训练后量化

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

Sony Semiconductor Israel(索尼半导体以色列公司)

Ofir Gordon, Elad Cohen, Hai Victor Habi, Arnon Netzer

AI总结:

提出增强型训练后量化方法EPTQ,利用无标签Hessian矩阵上界构建样本-层注意力分数与知识蒸馏损失,实现跨层依赖的网络级优化,在多种视觉任务上达到SOTA。

摘要:

量化是将深度神经网络部署在内存和计算资源有限的边缘设备上的关键方法。近期训练后量化(PTQ)方法的改进,是通过额外的局部优化过程来学习权重量化取整策略而实现的。然而,在小型代表性数据集上采用网络级优化时仍存在差距。本文中,我们提出了一种增强PTQ(EPTQ)的新方法,该方法采用网络级量化优化过程,通过在优化期间考虑跨层依赖性而获益。EPTQ利用一种基于无标签Hessian矩阵上界的新型样本-层注意力分数,使得在小型代表性数据集上进行网络级优化成为可能。这种无标签方法使我们的方法适用于PTQ方案。我们对上述上界进行了理论分析,并利用它构建了一个知识蒸馏损失,该损失引导优化过程聚焦于更敏感的层和样本。此外,我们利用Hessian上界,通过聚焦于权重张量中更敏感的元素,来改进权重量化参数的选择。在实验中,通过采用EPTQ,我们在各种模型、任务和数据集上取得了当前最优结果,包括ImageNet分类、COCO目标检测以及用于语义分割的Pascal-VOC。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑