arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.11407cs.NEcs.AIcs.LG
收藏

一种真正稀疏且通用的基于梯度的突触可塑性实现

A Truly Sparse and General Implementation of Gradient-Based Synaptic Plasticity

Peter Grünberg Institute(彼得·格伦贝格研究所);FZ Jülich(于利希研究中心);RWTH Aachen(亚琛工业大学)

Jamie Lohoff, Anil Kaya, Florian Assmuth, Emre Neftci

AI总结:

提出一种自定义自动微分流水线,实现稀疏且在线的基于梯度的突触可塑性规则,可推广至任意神经元模型,兼具编程简便与内存高效,并在合成任务和音频分类基准上验证了梯度一致性与内存扩展优势。

摘要:

基于梯度下降的在线突触可塑性规则在广泛的实际任务中实现了高精度。然而,其软件实现通常需要繁琐的手工推导梯度,或使用梯度反向传播,这牺牲了规则的在线能力。在这项工作中,我们提出了一种自定义自动微分(AD)流水线,用于稀疏且在线的基于梯度的突触可塑性规则的实现,该流水线可推广到任意神经元模型。我们的工作结合了反向传播类方法在前向AD中的编程简便性,同时保持内存高效。为实现这一点,我们利用了在线突触可塑性的有利计算和内存缩放,提供了一种固有稀疏的AD实现,其中昂贵的张量收缩被替换为简单的逐元素乘法(如果张量是对角的)。基于梯度的突触可塑性规则,如资格传播(e-prop),恰好具有这一性质,因此从这一特性中受益匪浅。我们在一个合成任务上展示了我们的梯度与梯度反向传播的一致性,其中e-prop梯度是精确的,以及音频语音分类基准。我们展示了内存利用如何随网络规模扩展,而不依赖于序列长度,正如前向AD方法所预期的那样。

英文摘要:

Online synaptic plasticity rules derived from gradient descent achieve high accuracy on a wide range of practical tasks. However, their software implementation often requires tediously hand-derived gradients or using gradient backpropagation which sacrifices the online capability of the rules. In this work, we present a custom automatic differentiation (AD) pipeline for sparse and online implementation of gradient-based synaptic plasticity rules that generalizes to arbitrary neuron models. Our work combines the programming ease of backpropagation-type methods for forward AD while being memory-efficient. To achieve this, we exploit the advantageous compute and memory scaling of online synaptic plasticity by providing an inherently sparse implementation of AD where expensive tensor contractions are replaced with simple element-wise multiplications if the tensors are diagonal. Gradient-based synaptic plasticity rules such as eligibility propagation (e-prop) have exactly this property and thus profit immensely from this feature. We demonstrate the alignment of our gradients with respect to gradient backpropagation on an synthetic task where e-prop gradients are exact, as well as audio speech classification benchmarks. We demonstrate how memory utilization scales with network size without dependence on the sequence length, as expected from forward AD methods.

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

↑