SCONNA:一种基于随机计算的光学加速器,用于整数量化CNN的超快速,节能推理
SCONNA: A Stochastic Computing Based Optical Accelerator for Ultra-Fast, Energy-Efficient Inference of Integer-Quantized CNNs
摘要:
CNN推理任务的加速使用通常被转换为矢量点积(VDP)运算的卷积运算。已经提出了几种基于光子微谐振器(MRR)的硬件架构来加速整数量化的CNN,与它们的电子对应物相比具有显著更高的吞吐量和能量效率。然而,现有的基于光子MRR的模拟加速器在可实现的输入/权重精度和VDP操作大小之间表现出非常强的权衡,这严重限制了它们对于4比特和更高的量化输入/权重精度的可实现的VDP操作大小。受限的VDP操作大小最终抑制了计算吞吐量,从而严重降低了可实现的性能优势。为了解决这个缺点,我们首次提出了随机计算和基于MRR的CNN加速器的合并。为了利用随机计算固有的精度灵活性,我们发明了一种基于MRR的光学随机乘法器(OSM)。我们采用多个OSM的级联方式使用密集波分复用,打造一种新的基于随机计算的光学神经网络加速器(SCONNA)。SCONNA实现了显着的高吞吐量和能源效率,以加速高精度量化CNN的推理。我们在8位输入/权重精度下对四个现代CNN的推理进行的评估表明,SCONNA在每秒帧数(FPS)、FPS/W和FPS/W/mm 2方面分别提供了高达66.5倍、90倍和91倍的改进,平均比先前工作中的两个基于光子MRR的模拟CNN加速器高,对于大型CNN,Top-1精度下降仅高达0.4%,对于小型CNN,则高达1.5%。我们开发了一个事务级、事件驱动的基于Python的模拟器,用于评估SCONNA和其他加速器(https://github.com/uky-UCAT/SC_ONN_SIM.git)。
英文摘要:
The acceleration of a CNN inference task uses convolution operations that are typically transformed into vector-dot-product (VDP) operations. Several photonic microring resonators (MRRs) based hardware architectures have been proposed to accelerate integer-quantized CNNs with remarkably higher throughput and energy efficiency compared to their electronic counterparts. However, the existing photonic MRR-based analog accelerators exhibit a very strong trade-off between the achievable input/weight precision and VDP operation size, which severely restricts their achievable VDP operation size for the quantized input/weight precision of 4 bits and higher. The restricted VDP operation size ultimately suppresses computing throughput to severely diminish the achievable performance benefits. To address this shortcoming, we for the first time present a merger of stochastic computing and MRR-based CNN accelerators. To leverage the innate precision flexibility of stochastic computing, we invent an MRR-based optical stochastic multiplier (OSM). We employ multiple OSMs in a cascaded manner using dense wavelength division multiplexing, to forge a novel Stochastic Computing based Optical Neural Network Accelerator (SCONNA). SCONNA achieves significantly high throughput and energy efficiency for accelerating inferences of high-precision quantized CNNs. Our evaluation for the inference of four modern CNNs at 8-bit input/weight precision indicates that SCONNA provides improvements of up to 66.5x, 90x, and 91x in frames-per-second (FPS), FPS/W and FPS/W/mm2, respectively, on average over two photonic MRR-based analog CNN accelerators from prior work, with Top-1 accuracy drop of only up to 0.4% for large CNNs and up to 1.5% for small CNNs. We developed a transaction-level, event-driven python-based simulator for the evaluation of SCONNA and other accelerators (https://github.com/uky-UCAT/SC_ONN_SIM.git).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。