arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.12224cs.ARcs.AIcs.LGcs.PF
收藏

面向深度神经网络加速器的快速内积算法与架构

Fast Inner-Product Algorithms and Architectures for Deep Neural Network Accelerators

McMaster University(麦克马斯特大学)

Trevor E. Pogue, Nicola Nicolici

AI总结:

提出 FFIP 算法与架构,改进 FIP 并首次在 ML 加速器中实现,通过 ML 特定优化使脉动阵列加速器在相同吞吐量下减半 MAC 单元或翻倍阵列尺寸,提升计算效率。

摘要:

我们提出了一种名为 Free-pipeline Fast Inner Product (FFIP) 的新算法及其硬件架构,改进了 Winograd 在 1968 年提出的一种探索不足的快速内积算法(FIP)。与用于卷积层的无关 Winograd 最小滤波算法不同,FIP 适用于所有主要可分解为矩阵乘法的机器学习(ML)模型层,包括全连接层、卷积层、循环层和注意力/transformer 层。我们首次在 ML 加速器中实现了 FIP,随后提出了 FFIP 算法和通用架构,这些算法和架构本质上提升了 FIP 的时钟频率,从而在相近的硬件成本下提高了吞吐量。最后,我们为 FIP 和 FFIP 算法及架构贡献了 ML 特定的优化方案。我们证明 FFIP 可以无缝集成到传统的定点脉动阵列 ML 加速器中,以一半数量的乘加(MAC)单元实现相同的吞吐量,或者使能放入固定硬件预算设备中的最大脉动阵列尺寸翻倍。我们的 FFIP 实现针对具有 8 到 16 位定点输入的非稀疏 ML 模型,在相同类型的计算平台上实现了比同类最佳先前解决方案更高的吞吐量和计算效率。

英文摘要:

We introduce a new algorithm called the Free-pipeline Fast Inner Product (FFIP) and its hardware architecture that improve an under-explored fast inner-product algorithm (FIP) proposed by Winograd in 1968. Unlike the unrelated Winograd minimal filtering algorithms for convolutional layers, FIP is applicable to all machine learning (ML) model layers that can mainly decompose to matrix multiplication, including fully-connected, convolutional, recurrent, and attention/transformer layers. We implement FIP for the first time in an ML accelerator then present our FFIP algorithm and generalized architecture which inherently improve FIP's clock frequency and, as a consequence, throughput for a similar hardware cost. Finally, we contribute ML-specific optimizations for the FIP and FFIP algorithms and architectures. We show that FFIP can be seamlessly incorporated into traditional fixed-point systolic array ML accelerators to achieve the same throughput with half the number of multiply-accumulate (MAC) units, or it can double the maximum systolic array size that can fit onto devices with a fixed hardware budget. Our FFIP implementation for non-sparse ML models with 8 to 16-bit fixed-point inputs achieves higher throughput and compute efficiency than the best-in-class prior solutions on the same type of compute platform.

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

↑