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

基于 Golang 的并行神经网络

Parallel Neural Networks in Golang

Daniela Kalwarowskyj, Erich Schikuta

AI总结:

本文基于 Golang 的并行化特性,采用 SPMD 模型设计并实现了并行神经网络,并在 MNIST 数据集上分析了激活函数与优化方法,证明其相比顺序实现能显著降低处理时间。

摘要:

本文描述了使用新型编程语言 Golang 设计和实现并行神经网络(PNNs)的方法。我们的方法遵循经典的单程序多数据(SPMD)模型,其中并行神经网络由多个顺序神经网络组成,每个网络使用训练数据集的相应比例份额进行训练。为此,我们使用了 MNIST 数据集,该数据集包含手写数字的二值图像。我们的分析重点关注不同的激活函数以及以随机梯度和权重与偏置初始化形式进行的优化。我们进行了全面的性能分析,对网络配置和不同的性能因素进行了分析和解读。与顺序变体相比,Golang 及其固有的并行化支持显著缩短了处理时间,证明其非常适合并行神经网络模拟。

英文摘要:

This paper describes the design and implementation of parallel neural networks (PNNs) with the novel programming language Golang. We follow in our approach the classical Single-Program Multiple-Data (SPMD) model where a PNN is composed of several sequential neural networks, which are trained with a proportional share of the training dataset. We used for this purpose the MNIST dataset, which contains binary images of handwritten digits. Our analysis focusses on different activation functions and optimizations in the form of stochastic gradients and initialization of weights and biases. We conduct a thorough performance analysis, where network configurations and different performance factors are analyzed and interpreted. Golang and its inherent parallelization support proved very well for parallel neural network simulation by considerable decreased processing times compared to sequential variants.

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

↑