arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2302.03213cs.LGcs.NE
收藏

LUT-NN:利用质心学习与查表技术提升高效神经网络推理

LUT-NN: Empower Efficient Neural Network Inference with Centroid Learning and Table Lookup

Zhejiang University(浙江大学);Microsoft Research(微软研究院);Tsinghua University(清华大学)

Xiaohu Tang, Yang Wang, Ting Cao, Li Lyna Zhang, Qi Chen, Deng Cai, Yunxin Liu, Mao Yang

AI总结:

LUT-NN通过质心学习与查表推理,显著降低设备端DNN推理成本,在图像、语音和NLP任务上精度提升66%-92%,同时大幅减少FLOPs、模型大小、延迟、内存和功耗。

摘要:

设备端深度神经网络(DNN)推理消耗大量计算资源和开发精力。为缓解这一问题,我们提出LUT-NN,这是首个通过查表方式赋能推理的系统,旨在降低推理成本。LUT-NN为每个算子学习典型特征,称为质心,并预先计算这些质心的结果以存储在查找表中。推理过程中,与输入最接近的质心的结果可直接从表中读取,作为无需计算的近似输出。LUT-NN集成了两大主要创新技术:(1)通过反向传播进行可微的质心学习,该技术适应三个级别的近似以最小化质心对精度的影响;(2)查表推理执行,该技术综合考虑不同级别的并行性、内存访问减少以及专用硬件单元以实现最佳性能。LUT-NN在多个实际任务上进行了评估,涵盖图像识别、语音识别和自然语言处理。与相关工作相比,LUT-NN将精度提高了66%至92%,达到了与原始模型相似的水平。LUT-NN在所有维度上降低了成本,包括FLOPs(≤16倍)、模型大小(≤7倍)、延迟(≤6.8倍)、内存(≤6.5倍)和功耗(≤41.7%)。

英文摘要:

On-device Deep Neural Network (DNN) inference consumes significant computing resources and development efforts. To alleviate that, we propose LUT-NN, the first system to empower inference by table lookup, to reduce inference cost. LUT-NN learns the typical features for each operator, named centroid, and precompute the results for these centroids to save in lookup tables. During inference, the results of the closest centroids with the inputs can be read directly from the table, as the approximated outputs without computations. LUT-NN integrates two major novel techniques: (1) differentiable centroid learning through backpropagation, which adapts three levels of approximation to minimize the accuracy impact by centroids; (2) table lookup inference execution, which comprehensively considers different levels of parallelism, memory access reduction, and dedicated hardware units for optimal performance. LUT-NN is evaluated on multiple real tasks, covering image and speech recognition, and nature language processing. Compared to related work, LUT-NN improves accuracy by 66% to 92%, achieving similar level with the original models. LUT-NN reduces the cost at all dimensions, including FLOPs ($\leq$ 16x), model size ($\leq$ 7x), latency ($\leq$ 6.8x), memory ($\leq$ 6.5x), and power ($\leq$ 41.7%).

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

↑