arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.15972cs.LG

Deep Compression for PyTorch Model Deployment on Microcontrollers

Ozyegin University(奥兹耶金大学);Stanford University(斯坦福大学)

Eren Dogan, H. Fatih Ugurdag, Hasan Unlu

英文摘要:

Neural network deployment on low-cost embedded systems, hence on microcontrollers (MCUs), has recently been attracting more attention than ever. Since MCUs have limited memory capacity as well as limited compute-speed, it is critical that we employ model compression, which reduces both memory and compute-speed requirements. In this paper, we add model compression, specifically Deep Compression, and further optimize Unlu's earlier work on arXiv, which efficiently deploys PyTorch models on MCUs. First, we prune the weights in convolutional and fully connected layers. Secondly, the remaining weights and activations are quantized to 8-bit integers from 32-bit floating-point. Finally, forward pass functions are compressed using special data structures for sparse matrices, which store only nonzero weights (without impacting performance and accuracy). In the case of the LeNet-5 model, the memory footprint was reduced by 12.45x, and the inference speed was boosted by 2.57x.

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

↑