一种用于ONNX模型的选择性量化调节器
A Selective Quantization Tuner for ONNX Models
AI总结:
SeQTO是一种用于ONNX模型的选择性量化框架,通过多目标优化和性能分析,实现高效且高精度的模型部署与执行。
摘要:
量化通过降低深度神经网络的精度来减小模型大小和计算需求,但通常以牺牲精度为代价。完全量化模型可能会遭受显著的精度下降,而资源受限的硬件加速器可能不支持所有量化操作。一种常见的解决方法是选择性量化,即只对某些层进行量化,而其他层保持全精度。然而,确定精度和效率之间的最佳平衡是一个具有挑战性的任务。为此,我们提出了SeQTO框架,该框架能够实现选择性量化、部署和执行ONNX模型在多种CPU和GPU设备上,结合性能分析和多目标优化。SeQTO生成选择性量化的模型,将其部署到硬件加速器上,评估其在精度和大小等指标上的性能,应用基于帕累托前沿的目标最小化来识别最优候选者,并提供结果的可视化。我们评估了SeQTO在四个ONNX模型上,针对两种量化设置在CPU和GPU设备上的表现。我们的结果表明,SeQTO能够有效识别高质量的选择性量化模型,在保持与完全量化模型相比高达98.18%的大小减少的同时,精度损失可降低至最高54.14%。
英文摘要:
Quantization reduces the precision of deep neural networks to lower model size and computational demands, but often at the expense of accuracy. Fully quantized models can suffer significant accuracy degradation, and resource-constrained hardware accelerators may not support all quantized operations. A common workaround is selective quantization, where only some layers are quantized while others remain at full precision. However, determining the optimal balance between accuracy and efficiency is a challenging task. To this direction, we propose SeQTO, a framework that enables selective quantization, deployment, and execution of ONNX models on diverse CPU and GPU devices, combined with profiling and multi-objective optimization. SeQTO generates selectively quantized models, deploys them across hardware accelerators, evaluates performance on metrics such as accuracy and size, applies Pareto Front-based objective minimization to identify optimal candidates, and provides visualization of results. We evaluated SeQTO on four ONNX models under two quantization settings across CPU and GPU devices. Our results show that SeQTO effectively identifies high-quality selectively quantized models, achieving up to 54.14% lower accuracy loss while maintaining up to 98.18% of size reduction compared to fully quantized models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。