Aha.
正在载入中英对照阅读…

arXiv:1511.06051 · 中英对照阅读

SparkNet: Training Deep Networks in Spark

Philipp Moritz、Robert Nishihara*、Ion Stoica、Michael I. Jordan

中文速览

深度网络训练往往要花好几天,而常见的大数据处理框架又不擅长频繁、密集的机器间通信,论文因此想让两者能在同一套集群框架里协同工作。作者开发了 SparkNet,把 Spark、Caffe 和轻量级张量库连接起来,并采用一种少通信的训练办法:每台机器先各自训练一段时间,再把模型参数汇总平均并同步。实验和分析显示,这种办法能随着机器数量增加而加速训练,也能在通信很慢的集群上工作;在 ImageNet 等测试中,作者还研究了机器数、同步间隔和通信开销对加速效果的影响。它的意义在于,用户可以复用现有 Caffe 模型和 Spark 数据处理流程,更方便地在普通集群上训练大模型,而不必依赖专门搭建的分布式深度学习系统。

摘要

Training deep networks is a time-consuming process, with networks for object recognition often requiring multiple days to train. For this reason, leveraging the resources of a cluster to speed up training is an important area of work. However, widely-popular batch-processing computational frameworks like MapReduce and Spark were not designed to support the asynchronous and communication-intensive workloads of existing distributed deep learning systems. We introduce SparkNet, a framework for training deep networks in Spark. Our implementation includes a convenient interface for reading data from Spark RDDs, a Scala interface to the Caffe deep learning framework, and a lightweight multi-dimensional tensor library. Using a simple parallelization scheme for stochastic gradient descent, SparkNet scales well with the cluster size and tolerates very high-latency communication. Furthermore, it is easy to deploy and use with no parameter tuning, and it is compatible with existing Caffe models. We quantify the dependence of the speedup obtained by SparkNet on the number of machines, the communication frequency, and the cluster’s communication overhead, and we benchmark our system’s performance on the ImageNet dataset.

术语表

SparkNet
SparkNet
deep learning
深度学习
distributed deep learning
分布式深度学习
MapReduce
MapReduce
Apache Spark
Apache Spark
Caffe
Caffe
Spark RDD
Spark RDD
Scala
Scala
stochastic gradient descent (SGD)
随机梯度下降(SGD)
distributed optimization
分布式优化
asynchronous, lock-free optimization
异步无锁优化
parameter server model
参数服务器模型
master node
主节点
worker node
工作节点
model parameters
模型参数
gradient
梯度
minibatch
小批量
data shard
数据分片
batch-processing framework
批处理框架
communication-intensive workload
通信密集型工作负载
bandwidth-limited environment
带宽受限环境
parallelization scheme
并行化方案
multi-dimensional tensor
多维张量
NDArray
NDArray
NetParams
NetParams
WeightCollection
WeightCollection
ImageNet
ImageNet
AlexNet
AlexNet
EC2
EC2