arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.08817cs.LG
收藏

Kirin:通过混合SNN提升ANN效率

Kirin: Improving ANN efficiency with SNN Hybridization

Sun Yat-sen University(中山大学);National University of Singapore(新加坡国立大学)

Chenyu Wang, Zhanglu Yan, Zhi Zhou, Xu Chen, Weng-Fai Wong

AI总结:

Kirin通过混合整数和脉冲神经网络,实现无损失的ANN到SNN转换,显著提升能效和效率。

摘要:

人工神经网络(ANNs),特别是大语言模型(LLMs),展现出强大的推理能力,但消耗大量能量。相反,脉冲神经网络(SNNs)因其二进制和事件驱动的特性,表现出极高的能效,因此推动了ANN到SNN的转换研究。在这个过程中,量化起着关键作用,通过时间窗口的时序维度将LLMs的浮点参数映射到离散的SNN参数。然而,转换过程中仍存在几个挑战:(i)将高比特宽度量化值转换为二进制脉冲需要更长的时间窗口,增加系统延迟;(ii)SNN中单脉冲方案的信息损失与多脉冲方案的能量成本之间存在固有的权衡。为了解决这些挑战,我们提出了Kirin,一种整数和脉冲混合的SNN,以实现无损失的ANN到SNN转换,同时在时间和能量上提高效率。具体来说,我们首先提出了一种脉冲矩阵混合策略,将导致小时间窗口大小的低比特宽度参数编码为二进制脉冲,同时保持其余参数以整数格式,从而减少SNN执行的整体延迟。其次,我们引入了一个静默阈值机制,以调节单脉冲放电的时间,确保输出在数学上等同于LLM的输出并保持准确性。实验结果表明,Kirin在W4A4\&8量化设置下,实现了接近FP16的精度,同时将能耗降低了高达84.66%,并将时间步数缩短了93.75%。

英文摘要:

Artificial neural networks (ANNs), particularly large language models (LLMs), demonstrate powerful inference capabilities but consume substantial energy. Conversely, spiking neural networks (SNNs) exhibit exceptional energy efficiency due to their binary and event-driven characteristics, thus motivating the study of ANN-to-SNN conversion. In this process, quantization plays a pivotal role, mapping LLMs' floating-point parameters to discrete SNN parameters via the temporal dimension of the time window. However, several challenges remain in the conversion process: (i) converting high bit-width quantization values into binary spikes requires longer time windows, increasing system latency; and (ii) the inherent trade-off between the information loss of single-spike schemes and the energy costs of multi-spike ones in SNN. To address these challenges, we propose Kirin, a integer and spike hybrid based SNN to achieve accuracy lossless ANN-to-SNN conversion with time and energy efficiency. Specifically, we first propose a Spike Matrix Hybridization strategy that encoding low bit-width parameters that leading to small time window size into binary spikes while preserving the rest in integer format, thereby reducing the overall latency of SNN execution. Second, we introduce a silence threshold mechanism to regulate the timing of single-spike firing, ensuring the output is mathematically equivalent to the LLM's output and preserves accuracy. Experimental results demonstrate that Kirin, under a W4A4\&8 quantization setting, achieves near-FP16 accuracy while reducing energy consumption by up to 84.66\% and shortening time steps by 93.75\%.

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

↑