HiMA:一个快速可扩展的基于历史的可微神经计算机内存访问引擎
HiMA: A Fast and Scalable History-based Memory Access Engine for Differentiable Neural Computer
摘要:
记忆增强神经网络(MANN)在外部记忆的帮助下,在许多任务中提供更好的推理性能。最近开发的可微神经计算机(DNC)是一种MANN,已被证明在表示复杂的数据结构和学习长期依赖关系方面表现出色。DNC的更高的性能来自于新的基于历史的注意力机制,除了以前使用的基于内容的注意力机制。基于历史的机制需要各种新的计算原语和状态存储器,这是不支持现有的神经网络(NN)或MANN加速器。我们提出了HiMA,一个平铺的,基于历史的内存访问引擎与分布式存储器在瓷砖。HiMA采用多模式片上网络(NoC)来减少通信延迟并提高可扩展性。一个最佳的子矩阵明智的内存分区策略,以减少的NoC流量的量,和一个两阶段的使用排序方法,利用分布式瓦片,以提高计算速度。为了使HiMA从根本上可扩展,我们创建了一个分布式版本的DNC,称为DNC-D,允许几乎所有的内存操作都应用于本地内存,并通过可训练的加权求和来产生全局内存输出。两个近似技术,使用撇取和softmax近似,提出了进一步提高硬件效率。HiMA原型在RTL中创建,并在40 nm技术中合成。通过模拟,HiMA运行DNC和DNC-D的速度比最先进的MANN加速器高6.47倍和39.1倍,面积效率高22.8倍和164.3倍,能源效率高6.1倍和61.2倍。与Nvidia 3080 Ti GPU相比,HiMA在运行DNC和DNC-D时的加速分别高达437倍和2,646倍。
英文摘要:
Memory-augmented neural networks (MANNs) provide better inference performance in many tasks with the help of an external memory. The recently developed differentiable neural computer (DNC) is a MANN that has been shown to outperform in representing complicated data structures and learning long-term dependencies. DNC's higher performance is derived from new history-based attention mechanisms in addition to the previously used content-based attention mechanisms. History-based mechanisms require a variety of new compute primitives and state memories, which are not supported by existing neural network (NN) or MANN accelerators. We present HiMA, a tiled, history-based memory access engine with distributed memories in tiles. HiMA incorporates a multi-mode network-on-chip (NoC) to reduce the communication latency and improve scalability. An optimal submatrix-wise memory partition strategy is applied to reduce the amount of NoC traffic; and a two-stage usage sort method leverages distributed tiles to improve computation speed. To make HiMA fundamentally scalable, we create a distributed version of DNC called DNC-D to allow almost all memory operations to be applied to local memories with trainable weighted summation to produce the global memory output. Two approximation techniques, usage skimming and softmax approximation, are proposed to further enhance hardware efficiency. HiMA prototypes are created in RTL and synthesized in a 40nm technology. By simulations, HiMA running DNC and DNC-D demonstrates 6.47x and 39.1x higher speed, 22.8x and 164.3x better area efficiency, and 6.1x and 61.2x better energy efficiency over the state-of-the-art MANN accelerator. Compared to an Nvidia 3080Ti GPU, HiMA demonstrates speedup by up to 437x and 2,646x when running DNC and DNC-D, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。