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

迈向与模型规模无关、无计算、基于记忆的深度学习推理

Towards Model-Size Agnostic, Compute-Free, Memorization-based Inference of Deep Learning

University of Illinois at Chicago(伊利诺伊大学芝加哥分校);Illinois Mathematics and Science Academy(伊利诺伊数学与科学学院);University of Florida(佛罗里达大学)

Davide Giacomini, Maeesha Binte Hashem, Jeremiah Suarez, Swarup Bhunia, Amit Ranjan Trivedi

AI总结:

本文提出无计算、仅查表的基于记忆推理 MBI,利用 RAM 的低维一瞥存储键值对,并结合贝叶斯优化、聚类与存内电路,在 MNIST 上显著提升能效。

摘要:

深度神经网络的快速发展显著提升了图像和语音识别等各类任务的性能。然而,随着这些模型复杂性的增加,计算成本和参数数量也随之上升,使其难以部署在资源受限设备上。本文提出了一种新颖的基于记忆的推理(MBI),该方法无需计算,仅需查表。具体而言,本研究利用循环注意力模型(RAM)的推理机制:在一个时间步中仅处理输入域的一个小窗口(即一瞥,glimpse),并通过隐藏向量组合来自多次一瞥的输出,以确定问题的整体分类输出。通过利用一瞥的低维特性,我们的推理过程将由一瞥位置、图像块向量等组成的键值对存储在表中。推理期间通过利用该表读出键值对并以记忆方式执行无计算推理,从而免除计算。通过利用贝叶斯优化和聚类,所需查表次数得到减少,准确率也得到提高。我们还提出了存内计算电路,用于快速查找与输入查询匹配的键向量。与具有竞争力的存内计算(CIM)方法相比,在 MNIST 字符识别任务上,MBI 的能效比多层感知机(MLP)-CIM 提高近 2.7 倍,比 ResNet20-CIM 提高近 83 倍。

英文摘要:

The rapid advancement of deep neural networks has significantly improved various tasks, such as image and speech recognition. However, as the complexity of these models increases, so does the computational cost and the number of parameters, making it difficult to deploy them on resource-constrained devices. This paper proposes a novel memorization-based inference (MBI) that is compute free and only requires lookups. Specifically, our work capitalizes on the inference mechanism of the recurrent attention model (RAM), where only a small window of input domain (glimpse) is processed in a one time step, and the outputs from multiple glimpses are combined through a hidden vector to determine the overall classification output of the problem. By leveraging the low-dimensionality of glimpse, our inference procedure stores key value pairs comprising of glimpse location, patch vector, etc. in a table. The computations are obviated during inference by utilizing the table to read out key-value pairs and performing compute-free inference by memorization. By exploiting Bayesian optimization and clustering, the necessary lookups are reduced, and accuracy is improved. We also present in-memory computing circuits to quickly look up the matching key vector to an input query. Compared to competitive compute-in-memory (CIM) approaches, MBI improves energy efficiency by almost 2.7 times than multilayer perceptions (MLP)-CIM and by almost 83 times than ResNet20-CIM for MNIST character recognition.

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

↑