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

使用 Go 的神经网络样本并行化

Neural Network Exemplar Parallelization with Go

Georg Wiesinger, Erich Schikuta

AI总结:

本文探讨使用 Go 语言和 goroutine 实现神经网络样本并行化,发现在笔记本和单板计算机等多核系统上均能显著提升 MNIST 识别速度,最高加速达 432%。

摘要:

本文提出了使用 Go 作为并行化框架进行神经网络样本并行化的案例。进一步表明,有限的多核硬件系统(如笔记本电脑和单板计算机系统)也适用于这些并行化任务。主要问题是,具体使用并发 Go goroutine 能产生多少加速。为寻找答案,使用 Go 编程语言创建了一个用于 MNIST 数字识别的简单并发前馈网络。使用笔记本电脑(Lenovo Yoga 2)的初步结果显示,利用 4 个 goroutine 时实现了 252% 的加速。在单板计算机(Banana Pi M3)上的测试提供了更有说服力的结果:4 个 goroutine 时为 320%,8 个 goroutine 时为 432%。

英文摘要:

This paper presents a case for exemplar parallelism of neural networks using Go as parallelization framework. Further it is shown that also limited multi-core hardware systems are feasible for these parallelization tasks, as notebooks and single board computer systems. The main question was how much speedup can be generated when using concurrent Go goroutines specifically. A simple concurrent feedforward network for MNIST digit recognition with the programming language Go was created to find the answer. The first findings when using a notebook (Lenovo Yoga 2) showed a speedup of 252% when utilizing 4 goroutines. Testing a single board computer (Banana Pi M3) delivered more convincing results: 320% with 4 goroutines, and 432% with 8 goroutines.

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

↑