arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.13990cs.LGcs.DB
收藏

QCore:量化模型的数据高效、端侧持续校准——扩展版

QCore: Data-Efficient, On-Device Continual Calibration for Quantized Models -- Extended Version

Aalborg University(奥尔堡大学);East China Normal University(华东师范大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳))

David Campos, Bin Yang, Tung Kieu, Miao Zhang, Chenjuan Guo, Christian S. Jensen

AI总结:

QCore通过将完整训练数据压缩为可更新子集,并结合小型比特翻转网络替代反向传播,在边缘设备上实现数据高效且计算低成本的量化模型持续校准,实验证明其性能优于强基线方法。

摘要:

我们正见证流式数据可用性的日益增长,这些数据可能蕴含关于底层过程的有价值信息。因此,能够在靠近传感器的边缘设备上部署机器学习模型颇具吸引力,这样决策可以即时做出,而无需先将传入数据传输到服务器。为了在存储和计算能力有限的边缘设备上实现部署,标准模型中的全精度参数可以被量化以使用更少的比特位。随后,所得的量化模型使用反向传播和完整训练数据进行校准以确保准确性。这种一次性校准适用于静态环境中的部署。然而,在动态边缘环境中的模型部署需要持续校准,以自适应地调整量化模型来拟合可能具有不同分布的新传入数据。在边缘端实现持续校准的第一个困难是,完整训练数据可能过大,因此在边缘设备上并不总是可用。第二个困难是,在边缘端使用反向传播进行重复校准代价过高。我们提出 QCore 以在边缘端实现持续校准。首先,它将完整训练数据压缩为一个小子集,从而能够对不同位宽的量化模型进行有效校准。我们还提出了当新的流式数据到达时更新该子集的方法,以反映环境的变化,同时不遗忘先前的训练数据。其次,我们提出一个小型比特翻转网络,它与该子集协同工作以更新量化模型参数,从而在不使用反向传播的情况下实现高效的持续校准。一项在持续学习设定下使用真实世界数据进行的实验研究,深入揭示了 QCore 的特性,并表明它能够优于强基线方法。

英文摘要:

We are witnessing an increasing availability of streaming data that may contain valuable information on the underlying processes. It is thus attractive to be able to deploy machine learning models on edge devices near sensors such that decisions can be made instantaneously, rather than first having to transmit incoming data to servers. To enable deployment on edge devices with limited storage and computational capabilities, the full-precision parameters in standard models can be quantized to use fewer bits. The resulting quantized models are then calibrated using back-propagation and full training data to ensure accuracy. This one-time calibration works for deployments in static environments. However, model deployment in dynamic edge environments call for continual calibration to adaptively adjust quantized models to fit new incoming data, which may have different distributions. The first difficulty in enabling continual calibration on the edge is that the full training data may be too large and thus not always available on edge devices. The second difficulty is that the use of back-propagation on the edge for repeated calibration is too expensive. We propose QCore to enable continual calibration on the edge. First, it compresses the full training data into a small subset to enable effective calibration of quantized models with different bit-widths. We also propose means of updating the subset when new streaming data arrives to reflect changes in the environment, while not forgetting earlier training data. Second, we propose a small bit-flipping network that works with the subset to update quantized model parameters, thus enabling efficient continual calibration without back-propagation. An experimental study, conducted with real-world data in a continual learning setting, offers insight into the properties of QCore and shows that it is capable of outperforming strong baseline methods.

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

↑