一句话:提出 SeQTO,对 ONNX 模型选择性量化并在 CPU/GPU 上部署评测,用帕累托多目标优化平衡精度与体积。
量化可压缩深度神经网络并降低计算需求,但全量化常显著损失精度,且部分硬件加速器不支持所有量化算子。作者提出 SeQTO,一个面向 ONNX 模型的选择性量化、部署与执行框架,支持多种 CPU/GPU,结合性能剖析与多目标优化。SeQTO 生成部分层量化的模型,部署到设备,评估精度和大小等指标,用 Pareto Front 目标最小化筛选最优候选并可视化结果。在四个 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.