arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2203.05492cs.LG
收藏

低精度Quantization对TinyML的实证研究

An Empirical Study of Low Precision Quantization for TinyML

Qualcomm AI Research(高通人工智能研究院);Qualcomm Canada ULC(高通加拿大无限责任公司);University of Toronto(多伦多大学)

Shaojie Zhuo, Hongyu Chen, Ramchalam Kinattinkara Ramakrishnan, Tommy Chen, Chen Feng, Yicheng Lin, Parker Zhang, Liang Shen

摘要:

微型机器学习(tinyML)在过去几年中出现,旨在将机器学习模型部署到具有高度受限的内存和计算能力的嵌入式AI处理器中。低精度量化是一种重要的模型压缩技术,可以大大减少模型推理的内存消耗和计算量。在这项研究中,我们专注于训练后量化(PTQ)算法,该算法仅使用一小部分校准数据将模型转换为低位(小于8位)精度,并在不同的tinyML用例上进行基准测试。为了实现一个公平的比较,我们建立了一个模拟的量化框架,调查最近的PTQ算法。此外,我们将这些算法分解为基本组件,并重新组装了一个通用的PTQ管道。通过对管道中不同替代组件的烧蚀研究,我们揭示了执行低精度量化时的关键设计选择。我们希望这项工作可以提供有用的数据点,并为未来的低精度量化的研究。

英文摘要:

Tiny machine learning (tinyML) has emerged during the past few years aiming to deploy machine learning models to embedded AI processors with highly constrained memory and computation capacity. Low precision quantization is an important model compression technique that can greatly reduce both memory consumption and computation cost of model inference. In this study, we focus on post-training quantization (PTQ) algorithms that quantize a model to low-bit (less than 8-bit) precision with only a small set of calibration data and benchmark them on different tinyML use cases. To achieve a fair comparison, we build a simulated quantization framework to investigate recent PTQ algorithms. Furthermore, we break down those algorithms into essential components and re-assembled a generic PTQ pipeline. With ablation study on different alternatives of components in the pipeline, we reveal key design choices when performing low precision quantization. We hope this work could provide useful data points and shed lights on the future research of low precision quantization.

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

↑