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

权重稀疏性补充神经形态语言模型中的活动稀疏性

Weight Sparsity Complements Activity Sparsity in Neuromorphic Language Models

TUD Dresden University of Technology(德累斯顿工业大学);Birla Institute of Technology and Science Pilani – Goa Campus(毕拉理工学院皮拉尼分校果阿校区);Center for Scalable Data Analytics and Artificial Intelligence (ScaDS.AI)(可扩展数据分析与人工智能中心);Centre for Tactile Internet with Human-in-the-Loop (CeTI)(以人为中心的触觉互联网中心);Ruhr University Bochum(波鸿鲁尔大学);Royal Holloway, University of London(伦敦大学皇家霍洛威学院)

Rishav Mukherji, Mark Schöne, Khaleelulla Khan Nazeer, Christian Mayr, David Kappel, Anand Subramoney

AI总结:

本文研究脉冲神经网络中权重剪枝与活动稀疏性的互补关系,通过在Penn Treebank和WikiText-2上的实验证明稀疏连接与稀疏活动可在不明显损失性能的前提下实现高效语言建模。

摘要:

活动稀疏性和参数稀疏性是使神经网络在计算上更高效的两种标准方法。基于事件的架构(如脉冲神经网络(SNNs))天然表现出活动稀疏性,并且已有许多方法通过剪枝权重来稀疏化其连接。虽然权重剪枝对前馈SNNs的影响此前已在计算机视觉任务中得到研究,但剪枝对语言建模等复杂序列任务的影响研究较少,因为SNNs传统上难以在这些任务上取得有意义的性能。利用最近发布的一种在小规模语言建模上表现良好的类SNN架构,我们研究了权重剪枝与活动稀疏性相结合时的效果。具体而言,我们研究了这种组合所带来的乘法效率增益与其对语言建模任务性能影响之间的权衡。为了剖析这两种稀疏性的影响,我们在不同程度的连接稀疏性下,对密集激活模型和稀疏激活的基于事件模型进行了比较分析。我们证明,对于在Penn Treebank和WikiText-2语言建模数据集上训练的基于事件的神经网络,稀疏活动和稀疏连接相互补充,而不会导致任务性能成比例下降。我们的结果表明,稀疏连接的基于事件的神经网络是有效且高效的序列建模的有希望的候选方案。

英文摘要:

Activity and parameter sparsity are two standard methods of making neural networks computationally more efficient. Event-based architectures such as spiking neural networks (SNNs) naturally exhibit activity sparsity, and many methods exist to sparsify their connectivity by pruning weights. While the effect of weight pruning on feed-forward SNNs has been previously studied for computer vision tasks, the effects of pruning for complex sequence tasks like language modeling are less well studied since SNNs have traditionally struggled to achieve meaningful performance on these tasks. Using a recently published SNN-like architecture that works well on small-scale language modeling, we study the effects of weight pruning when combined with activity sparsity. Specifically, we study the trade-off between the multiplicative efficiency gains the combination affords and its effect on task performance for language modeling. To dissect the effects of the two sparsities, we conduct a comparative analysis between densely activated models and sparsely activated event-based models across varying degrees of connectivity sparsity. We demonstrate that sparse activity and sparse connectivity complement each other without a proportional drop in task performance for an event-based neural network trained on the Penn Treebank and WikiText-2 language modeling datasets. Our results suggest sparsely connected event-based neural networks are promising candidates for effective and efficient sequence modeling.

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

↑