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

用于文本分类的脉冲卷积神经网络

Spiking Convolutional Neural Networks for Text Classification

School of Computer Science, Fudan University(复旦大学计算机科学学院);Shanghai Key Laboratory of Intelligent Information Processing(上海智能信息处理重点实验室)

Changze Lv, Jianhan Xu, Xiaoqing Zheng

AI总结:

本文提出“转换+微调”两步法训练用于文本分类的脉冲神经网络,并将预训练词嵌入编码为脉冲序列,在英中多数据集上以更低能耗取得与深度神经网络相当的结果,且对对抗攻击更鲁棒。

摘要:

脉冲神经网络(SNNs)为实现深度神经网络(DNNs)提供了一种更具能效的途径,因为其神经元稀疏激活且推理过程由事件驱动。然而,目前很少有工作证明SNNs在语言任务中的有效性,部分原因在于以脉冲形式表示单词以及用SNNs处理变长文本并非易事。本文提出了一种“转换+微调”的两步方法来训练用于文本分类的SNNs,并提出了一种简单而有效的方式将预训练的词嵌入编码为脉冲序列。我们通过实验表明,在使用代理梯度进行微调后,转换得到的SNNs在多个英文和中文数据集上取得了与对应DNNs相当的结果,同时能耗大幅降低。我们还表明,这类SNNs比DNNs对对抗攻击更具鲁棒性。

英文摘要:

Spiking neural networks (SNNs) offer a promising pathway to implement deep neural networks (DNNs) in a more energy-efficient manner since their neurons are sparsely activated and inferences are event-driven. However, there have been very few works that have demonstrated the efficacy of SNNs in language tasks partially because it is non-trivial to represent words in the forms of spikes and to deal with variable-length texts by SNNs. This work presents a "conversion + fine-tuning" two-step method for training SNNs for text classification and proposes a simple but effective way to encode pre-trained word embeddings as spike trains. We show empirically that after fine-tuning with surrogate gradients, the converted SNNs achieve comparable results to their DNN counterparts with much less energy consumption across multiple datasets for both English and Chinese. We also show that such SNNs are more robust to adversarial attacks than DNNs.

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

↑