arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.09109cs.ARcs.AIcs.LGcs.NEeess.SP
收藏

随机尖峰注意力:在脉冲网络中利用随机计算加速注意力机制

Stochastic Spiking Attention: Accelerating Attention with Stochastic Computing in Spiking Networks

King’s College London(伦敦国王学院)

Zihang Song, Prabodh Katti, Osvaldo Simeone, Bipin Rajendran

AI总结:

本文提出利用随机计算在脉冲Transformer中高效执行点积注意力,在CIFAR-10上达到83.53%准确率,并显著降低能耗、存储访问、延迟和功耗。

摘要:

脉冲神经网络(SNNs)最近被集成到Transformer架构中,因为它们具有降低计算需求和提升功耗效率的潜力。然而,在通用计算平台上使用脉冲信号实现注意力机制仍然效率低下。在本文中,我们提出了一种新颖的框架,利用随机计算(SC)来有效执行基于SNN的Transformer中的点积注意力。我们证明,我们的方法在CIFAR-10数据集上,在10个时间步内可以实现83.53%的高分类准确率,这与基线人工神经网络实现的性能(83.66%)相当。我们估计,所提出的SC方法在基于数字CMOS的ASIC设计中,可以带来超过6.3倍的计算能耗降低和1.7倍的存储访问成本降低。我们通过FPGA实现实验验证了我们的随机注意力块设计,与GPU实现相比,其延迟降低了48倍,同时功耗降低了15倍。

英文摘要:

Spiking Neural Networks (SNNs) have been recently integrated into Transformer architectures due to their potential to reduce computational demands and to improve power efficiency. Yet, the implementation of the attention mechanism using spiking signals on general-purpose computing platforms remains inefficient. In this paper, we propose a novel framework leveraging stochastic computing (SC) to effectively execute the dot-product attention for SNN-based Transformers. We demonstrate that our approach can achieve high classification accuracy ($83.53\%$) on CIFAR-10 within 10 time steps, which is comparable to the performance of a baseline artificial neural network implementation ($83.66\%$). We estimate that the proposed SC approach can lead to over $6.3\times$ reduction in computing energy and $1.7\times$ reduction in memory access costs for a digital CMOS-based ASIC design. We experimentally validate our stochastic attention block design through an FPGA implementation, which is shown to achieve $48\times$ lower latency as compared to a GPU implementation, while consuming $15\times$ less power.

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

↑