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

崩溃或保留:用于脉冲神经网络加速的数据依赖性时间聚合

Collapse or Preserve: Data-Dependent Temporal Aggregation for Spiking Neural Network Acceleration

Jiahao Qin

AI总结:

本文提出时间聚合卷积(TAC)用于加速SNN,通过预聚合脉冲帧减少计算次数,提升速度和精度。针对不同数据类型,TAC-TP保留时间维度信息,实现更优性能。

摘要:

脉冲稀疏性被认为能提升GPU上SNN推理效率,但本文证明这是个误区:在Apple M3 Max上,五种稀疏计算策略均无法超越密集卷积,因为SIMD架构无法利用独立同分布二进制脉冲的细粒度非结构化稀疏性。本文提出时间聚合卷积(TAC),利用卷积线性性,在单次卷积调用前预聚合K个脉冲帧,将T次调用减少为T/K次。在率编码数据上,TAC在MNIST上实现13.8倍加速,精度提升1.6%,在Fashion-MNIST上提升5.4%。然而,在事件数据上,TAC的时间崩溃有害。因此引入TAC-TP(时间保留),通过共享每个组的卷积输出跨K个独立LIF步骤,保留完整时间分辨率。在DVS128-Gesture数据上,TAC-TP在50%更少的卷积调用下达到95.1%精度(vs. 96.3%基准),而标准TAC降至91.3%。本文发现最优时间聚合策略依赖数据:对率编码数据崩溃时间维度(降噪),对事件数据保留时间维度(信息保留)。加速效果与硬件无关:TAC在NVIDIA V100上实现11.0倍加速,验证机制跨GPU架构有效。mlx-snn库所有操作符均为开源。

英文摘要:

Spike sparsity is widely believed to enable efficient spiking neural network (SNN) inference on GPU hardware. We demonstrate this is an illusion: five distinct sparse computation strategies on Apple M3 Max all fail to outperform dense convolution, because SIMD architectures cannot exploit the fine-grained, unstructured sparsity of i.i.d. binary spikes. Instead, we propose Temporal Aggregated Convolution (TAC), which exploits convolution linearity to pre-aggregate $K$ spike frames before a single convolution call, reducing $T$ calls to $T/K$. On rate-coded data, TAC achieves 13.8times speedup with +1.6% accuracy on MNIST and +5.4% on Fashion-MNIST -- a simultaneous improvement in both speed and accuracy. However, on event-based data where the temporal dimension carries genuine motion information, TAC's temporal collapse is harmful. We therefore introduce TAC-TP (Temporal Preservation), which shares each group's convolution output across K independent LIF steps, preserving full temporal resolution for downstream layers. On DVS128-Gesture, TAC-TP achieves 95.1% accuracy (vs. 96.3% baseline) with 50% fewer convolution calls, while standard TAC drops to 91.3%. Our key finding is that the optimal temporal aggregation strategy is data-dependent: collapse the temporal dimension for rate-coded data (noise reduction) but preserve it for event data (information retention). Speedup is hardware-agnostic: TAC achieves 11.0times on NVIDIA V100, confirming the mechanism transfers across GPU architectures. All operators in the mlx-snn library are open source.

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

↑