[论文解读] SNNLP: Energy-Efficient Natural Language Processing Using Spiking Neural Networks
本文提出SNNLP,一种基于脉冲的自然语言处理编码方法,采用脉冲神经网络(SNNs)实现,相较于在情感分析任务中使用泊松率编码的模型,准确率提高了13%。该方法在训练过程中实现高达60倍的能效提升,在推理过程中实现32倍的能效提升,同时保持了与传统人工神经网络(ANNs)相当的性能,并将延迟降低3.7至7倍。
As spiking neural networks receive more attention, we look toward applications of this computing paradigm in fields other than computer vision and signal processing. One major field, underexplored in the neuromorphic setting, is Natural Language Processing (NLP), where most state-of-the-art solutions still heavily rely on resource-consuming and power-hungry traditional deep learning architectures. Therefore, it is compelling to design NLP models for neuromorphic architectures due to their low energy requirements, with the additional benefit of a more human-brain-like operating model for processing information. However, one of the biggest issues with bringing NLP to the neuromorphic setting is in properly encoding text into a spike train so that it can be seamlessly handled by both current and future SNN architectures. In this paper, we compare various methods of encoding text as spikes and assess each method's performance in an associated SNN on a downstream NLP task, namely, sentiment analysis. Furthermore, we go on to propose a new method of encoding text as spikes that outperforms a widely-used rate-coding technique, Poisson rate-coding, by around 13\% on our benchmark NLP tasks. Subsequently, we demonstrate the energy efficiency of SNNs implemented in hardware for the sentiment analysis task compared to traditional deep neural networks, observing an energy efficiency increase of more than 32x during inference and 60x during training while incurring the expected energy-performance tradeoff.
研究动机与目标
- 探索脉冲神经网络(SNNs)在自然语言处理(NLP)任务中的可行性。
- 解决将文本编码为脉冲神经网络硬件可用脉冲序列的挑战。
- 比较SNN在NLP任务中不同编码技术的表现,重点关注准确率、能效和延迟。
- 证明SNN可在显著降低能耗的同时,实现与传统深度学习模型相当的性能表现。
提出的方法
- 提出一种确定性率编码方法,将词嵌入转换为脉冲序列,优于随机的泊松率编码。
- 采用时间连续的SNN架构,利用二值脉冲序列处理顺序文本数据。
- 评估时采用固定推理窗口大小(50ms),并开展从10ms到100ms的窗口大小消融研究。
- 将SNN应用于两个基准NLP任务:IMDb二分类情感分类和Twitter情感六分类任务。
- 实施能效建模,比较SNN与传统ANN在训练和推理阶段的能效表现。
- 在硬件平台上验证结果,以测量实际的能效和延迟表现。

实验结果
研究问题
- RQ1在基于SNN的NLP任务中,二值嵌入编码与率编码哪种方法表现更优?
- RQ2与随机(泊松)率编码相比,确定性率编码是否能在SNN的NLP任务中提升准确率?
- RQ3在SNN的NLP任务中,是否观察到与先前SNN研究一致的预期能效-准确率权衡?
- RQ4与ANN相比,SNN的推理延迟在保持竞争力性能的前提下可降低多少?
主要发现
- 所提出的确定性率编码方法在基准NLP任务中相比泊松率编码,准确率提高了约13%。
- SNN在推理阶段实现最高32倍的能效提升,在训练阶段实现最高60倍的能效提升,相比传统ANN。
- 采用所提编码方法后,SNN与ANN之间的准确率差距缩小至5%以内。
- SNN的推理延迟降低至ANN的3.7至7倍,性能下降约7–10%,体现了有利的权衡。
- 先前SNN研究中观察到的能效-准确率权衡在NLP任务背景下得到证实。
- 本研究证明SNN在NLP任务中具有可行性,可实现与传统模型相当的性能表现,并带来显著的能效节省,尤其适用于低功耗环境。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。