arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.09696cs.NEcs.CVcs.LG
收藏

为传感器上的脉冲神经网络进行尖锐性感知的替代训练

Sharpness-Aware Surrogate Training for On-Sensor Spiking Neural Networks

University of Bath(巴斯大学)

Maximilian Nicholson

AI总结:

本文提出SAST方法,通过尖锐性感知最小化替代梯度,提升传感器上脉冲神经网络的准确率,并在不同硬件设置下验证其有效性。

摘要:

脉冲神经网络(SNNs)是传感器和近传感器视觉的自然计算模型,其中事件驱动处理器必须在严格功率预算下运行,使用硬二进制脉冲。然而,使用替代梯度训练的模型在部署时,当平滑的替代非线性被硬阈值替代时,性能会急剧下降;这种替代到硬阈值的转移差距直接限制了传感器上的准确性。我们研究了尖锐性感知替代训练(SAST),它将尖锐性感知最小化(SAM)应用于替代前向SNN,使得训练目标平滑且梯度精确,并将其定位为在测试设置下的一种差距减少策略,而非唯一可行的机制。在显式收缩假设下,我们提供了状态稳定性、输入Lipschitz和光滑性界,以及相应的非凸收敛结果。在两个事件相机基准上,仅交换硬脉冲的准确性在N-MNIST上从65.7%提升到94.7%,在DVS手势上从31.8%提升到63.3%。在硬件感知的推理模拟(INT8/INT4权重量化,固定点膜电位,离散泄漏因子)下,SAST仍表现出色:在N-MNIST上,硬脉冲准确性在INT8下从47.6%提升到96.9%,在INT4下从43.2%提升到81.0%;在DVS手势上,其在INT8下从25.3%提升到47.6%,在INT4下从26.0%提升到43.8%。SynOps在相同硬件感知设置下也减少,包括N-MNIST(INT8)从1734k→1315k和DVS手势(INT8)从86221k→4323k。这些结果表明,SAST是更广泛工具箱中在测试设置下用于传感器上脉冲推理的有前景组件。

英文摘要:

Spiking neural networks (SNNs) are a natural computational model for on-sensor and near-sensor vision, where event driven processors must operate under strict power budgets with hard binary spikes. However, models trained with surrogate gradients often degrade sharply when the smooth surrogate nonlinearity is replaced by a hard threshold at deployment; a surrogate-to-hard transfer gap that directly limits on-sensor accuracy. We study Sharpness-Aware Surrogate Training (SAST), which applies Sharpness-Aware Minimization (SAM) to a surrogate-forward SNN so that the training objective is smooth and the gradient is exact, and position it as one gap-reduction strategy under the tested settings rather than the only viable mechanism. Under explicit contraction assumptions we provide state-stability, input-Lipschitz, and smoothness bounds, together with a corresponding nonconvex convergence result. On two event-camera benchmarks, swap-only hard-spike accuracy improves from 65.7\% to 94.7\% on N-MNIST and from 31.8\% to 63.3\% on DVS Gesture. Under a hardware-aware inference simulation (INT8/INT4 weight quantization, fixed-point membrane potentials, discrete leak factors), SAST remains strong: on N-MNIST, hard-spike accuracy improves from 47.6\% to 96.9\% (INT8) and from 43.2\% to 81.0\% (INT4), while on DVS Gesture it improves from 25.3\% to 47.6\% (INT8) and from 26.0\% to 43.8\% (INT4). SynOps also decrease under the same hardware-aware setting, including 1734k$\rightarrow$1315k (N-MNIST, INT8) and 86221k$\rightarrow$4323k (DVS Gesture, INT8). These results suggest that SAST is a promising component in a broader toolbox for on-sensor spiking inference under the tested settings.

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

↑