arXiv:2506.17870cs.LGcs.AI2025-06中稿 · manuscript, DOI: 1…被引 6

让模型在设备上动态切换精度,节省存储和传输开销。

NestQuant: Post-Training Integer-Nesting Quantization for On-Device DNN

  • 通过整数分解将权重拆分为高低位,实现单模型多精度
  • ResNet-101在全精度与部分精度下准确率均超77.9%
  • 相比多模型方案,切换开销降低约78.1%,适合资源受限设备

在物联网设备上部署具备资源自适应能力的量化深度神经网络模型,可实现高效压缩并满足多场景需求。然而现有动态/混合精度量化需重训练或特殊硬件;而当前后训练量化(PTQ)存在两大局限:(i) 仅支持单一固定比特模型,难以适应物联网设备动态资源变化;(ii) 多个不同比特模型部署导致存储开销大、切换成本高。为此,本文提出一种面向设备端的轻量级后训练整数嵌套量化方法——NestQuant。该方法采用整数权重分解机制,将量化权重按位拆分为高比特与低比特整数形式,并设计分解权重嵌套优化策略,通过自适应舍入将高比特权重嵌入原量化权重中。部署时仅需传输和存储一个NestQuant模型,通过分页加载低比特权重即可灵活切换全精度或部分精度模式,适配资源波动。ImageNet-1K预训练DNN实验表明,该方法在保持高精度的同时显著降低数据传输、存储占用及切换开销。例如,带有INT8嵌套INT6的ResNet-101在全精度与部分精度下的Top-1准确率分别达到78.1%和77.9%,且相比多比特模型方案切换开销减少约78.1%。

原文摘要 · Abstract (English)

Deploying quantized deep neural network (DNN) models with resource adaptation capabilities on ubiquitous Internet of Things (IoT) devices to provide high-quality AI services can leverage the benefits of compression and meet multi-scenario resource requirements. However, existing dynamic/mixed precision quantization requires retraining or special hardware, whereas post-training quantization (PTQ) has two limitations for resource adaptation: (i) The state-of-the-art PTQ methods only provide one fixed bitwidth model, which makes it challenging to adapt to the dynamic resources of IoT devices; (ii) Deploying multiple PTQ models with diverse bitwidths consumes large storage resources and switching overheads. To this end, this paper introduces a resource-friendly post-training integer-nesting quantization, i.e., NestQuant, for on-device quantized model switching on IoT devices. The proposed NestQuant incorporates the integer weight decomposition, which bit-wise splits quantized weights into higher-bit and lower-bit weights of integer data types. It also contains a decomposed weights nesting mechanism to optimize the higher-bit weights by adaptive rounding and nest them into the original quantized weights. In deployment, we can send and store only one NestQuant model and switch between the full-bit/part-bit model by paging in/out lower-bit weights to adapt to resource changes and reduce consumption. Experimental results on the ImageNet-1K pretrained DNNs demonstrated that the NestQuant model can achieve high performance in top-1 accuracy, and reduce in terms of data transmission, storage consumption, and switching overheads. In particular, the ResNet-101 with INT8 nesting INT6 can achieve 78.1% and 77.9% accuracy for full-bit and part-bit models, respectively, and reduce switching overheads by approximately 78.1% compared with diverse bitwidths PTQ models.

量化边缘计算模型压缩

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。