arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.18994cs.NEcs.LG
收藏

Spyx:一个用于脉冲神经网络即时编译优化的库

Spyx: A Library for Just-In-Time Compiled Optimization of Spiking Neural Networks

University of Cambridge(剑桥大学);University of Sussex(萨塞克斯大学)

Kade M. Heckel, Thomas Nowotny

AI总结:

针对脉冲神经网络难以利用现代加速器并行能力的问题,本文提出基于 JAX 的轻量级库 Spyx,通过 vRAM 数据预暂存和全面 JIT 编译实现统一底层执行,从而在 GPU/TPU 上提升训练性能与灵活性。

摘要:

随着人工智能在现代社会中的作用变得日益关键,深度神经网络的高效训练与部署已成为重点关注领域。近期基于注意力的大型神经架构的进展推动了 AI 加速器的发展,促进了拥有数十亿参数的大规模模型的训练。尽管这些强大的网络有效,但在生产环境中通常会产生高昂的执行成本。受生物神经过程启发的神经形态计算提供了一种有前景的替代方案。通过利用时间稀疏计算,脉冲神经网络(SNN)能够以更少、低功耗的硬件占用提升能源效率。然而,SNN 的训练可能具有挑战性,因为其具有循环特性,无法像其他网络那样轻松利用现代 AI 加速器的大规模并行能力。为促进对 SNN 架构和动力学的研究,研究人员一直试图将 PyTorch 或 TensorFlow 等基于 Python 的深度学习框架与自定义实现的计算内核连接起来。本文介绍了 Spyx,这是一个使用 JAX 设计的新型轻量级 SNN 仿真与优化库。通过在当代加速器充裕的 vRAM 中预暂存数据,并采用广泛的 JIT 编译,Spyx 使 SNN 优化能够作为统一的底层程序在 NVIDIA GPU 或 Google TPU 上执行。该方法实现了最佳硬件利用率,在保持相当大灵活性的同时,性能超过了许多现有 SNN 训练框架。

英文摘要:

As the role of artificial intelligence becomes increasingly pivotal in modern society, the efficient training and deployment of deep neural networks have emerged as critical areas of focus. Recent advancements in attention-based large neural architectures have spurred the development of AI accelerators, facilitating the training of extensive, multi-billion parameter models. Despite their effectiveness, these powerful networks often incur high execution costs in production environments. Neuromorphic computing, inspired by biological neural processes, offers a promising alternative. By utilizing temporally-sparse computations, Spiking Neural Networks (SNNs) offer to enhance energy efficiency through a reduced and low-power hardware footprint. However, the training of SNNs can be challenging due to their recurrent nature which cannot as easily leverage the massive parallelism of modern AI accelerators. To facilitate the investigation of SNN architectures and dynamics researchers have sought to bridge Python-based deep learning frameworks such as PyTorch or TensorFlow with custom-implemented compute kernels. This paper introduces Spyx, a new and lightweight SNN simulation and optimization library designed in JAX. By pre-staging data in the expansive vRAM of contemporary accelerators and employing extensive JIT compilation, Spyx allows for SNN optimization to be executed as a unified, low-level program on NVIDIA GPUs or Google TPUs. This approach achieves optimal hardware utilization, surpassing the performance of many existing SNN training frameworks while maintaining considerable flexibility.

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

↑