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

LoAS:面向双稀疏脉冲神经网络的完全时间并行数据流

LoAS: Fully Temporal-Parallel Dataflow for Dual-Sparse Spiking Neural Networks

Yale University(耶鲁大学);University of Central Florida(中佛罗里达大学)

Ruokai Yin, Youngeun Kim, Di Wu, Priyadarshini Panda

AI总结:

本文针对双稀疏脉冲神经网络推理效率低的问题,提出完全时间并行数据流及配套压缩与内连接电路,并集成于LoAS加速器,实现最高8.51倍加速和3.68倍能耗降低。

摘要:

脉冲神经网络(SNNs)在过去十年中因其驱动资源受限边缘设备的潜力而获得了显著的研究关注。尽管现有的SNN加速器在处理稀疏脉冲与稠密权重方面提供了高效率,但在具有稀疏权重的SNN(即双稀疏性)方面的机会却较少被探索。在这项工作中,我们研究了双稀疏SNN的加速,重点关注其核心运算——稀疏矩阵-稀疏矩阵乘法(spMspM)。我们观察到,在现有的为双稀疏人工神经网络(ANNs)设计的spMspM加速器上直接运行双稀疏SNN会表现出次优效率。主要挑战在于,处理时间步这一SNN的固有属性会给ANN spMspM引入一个额外的循环,从而导致更长的延迟和更多的内存访问流量。为了解决这个问题,我们提出了一种完全时间并行(FTP)数据流,它同时最小化了跨时间步的数据移动和双稀疏SNN的端到端延迟。为了最大化FTP数据流的效率,我们提出了一种FTP友好的脉冲压缩机制,该机制能够高效压缩单比特脉冲并确保连续的内存访问。我们进一步提出了一种FTP友好的内连接电路,该电路能够以几乎无吞吐量损失的方式降低昂贵的prefix-sum电路的成本。上述所有针对FTP数据流的技术都被封装在LoAS中,这是一个用于双稀疏SNN的低延迟推理加速器。借助FTP数据流、压缩和内连接,与在先前双稀疏加速器上运行相比,在LoAS上运行双稀疏SNN工作负载展现出显著的加速(最高达$8.51\ imes$)和能耗降低(最高达$3.68\ imes$)。

英文摘要:

Spiking Neural Networks (SNNs) have gained significant research attention in the last decade due to their potential to drive resource-constrained edge devices. Though existing SNN accelerators offer high efficiency in processing sparse spikes with dense weights, opportunities are less explored in SNNs with sparse weights, i.e., dual-sparsity. In this work, we study the acceleration of dual-sparse SNNs, focusing on their core operation, sparse-matrix-sparse-matrix multiplication (spMspM). We observe that naively running a dual-sparse SNN on existing spMspM accelerators designed for dual-sparse Artificial Neural Networks (ANNs) exhibits sub-optimal efficiency. The main challenge is that processing timesteps, a natural property of SNNs, introduces an extra loop to ANN spMspM, leading to longer latency and more memory traffic. To address the problem, we propose a fully temporal-parallel (FTP) dataflow, which minimizes both data movement across timesteps and the end-to-end latency of dual-sparse SNNs. To maximize the efficiency of FTP dataflow, we propose an FTP-friendly spike compression mechanism that efficiently compresses single-bit spikes and ensures contiguous memory access. We further propose an FTP-friendly inner-join circuit that can lower the cost of the expensive prefix-sum circuits with almost no throughput penalty. All the above techniques for FTP dataflow are encapsulated in LoAS, a Low-latency inference Accelerator for dual-sparse SNNs. With FTP dataflow, compression, and inner-join, running dual-sparse SNN workloads on LoAS demonstrates significant speedup (up to $8.51\times$) and energy reduction (up to $3.68\times$) compared to running it on prior dual-sparse accelerators.

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

↑