Cavs:动态神经网络的顶点中心编程接口
Cavs: A Vertex-centric Programming Interface for Dynamic Neural Networks
摘要:
最近的深度学习(DL)模型已经从静态网络架构转向动态网络架构,处理网络结构在每个示例中都发生变化的数据,例如可变长度的序列、树和图。现有的基于XML的DL编程模型-静态和动态声明-要么不能很容易地表达这些动态模型,要么由于重复的XML图构造和处理而效率低下,并且难以批量执行。我们提出了Cavs,一个以顶点为中心的编程接口和优化的系统实现动态DL模型。Cavs将动态网络结构表示为静态顶点函数$\mathcal{F}$和动态实例特定图$\mathcal{G}$,并且通过按照$\mathcal{G}$中的依赖性调度$\mathcal{F}$的执行来执行反向传播。Cavs绕过了昂贵的图形构造和预处理开销,允许在$\mathcal{F}$中的预定义操作上使用静态图形优化技术,并且自然地暴露了不同图形上的批处理执行机会。将Cavs与两种最先进的动态NN框架(TensorFlow Fold和DyNet)进行比较的实验证明了这种方法的有效性:Cavs在各种动态NN架构的训练上实现了近一个数量级的加速,消融证明了我们提出的优化和存储管理策略的贡献。
英文摘要:
Recent deep learning (DL) models have moved beyond static network architectures to dynamic ones, handling data where the network structure changes every example, such as sequences of variable lengths, trees, and graphs. Existing dataflow-based programming models for DL---both static and dynamic declaration---either cannot readily express these dynamic models, or are inefficient due to repeated dataflow graph construction and processing, and difficulties in batched execution. We present Cavs, a vertex-centric programming interface and optimized system implementation for dynamic DL models. Cavs represents dynamic network structure as a static vertex function $\mathcal{F}$ and a dynamic instance-specific graph $\mathcal{G}$, and performs backpropagation by scheduling the execution of $\mathcal{F}$ following the dependencies in $\mathcal{G}$. Cavs bypasses expensive graph construction and preprocessing overhead, allows for the use of static graph optimization techniques on pre-defined operations in $\mathcal{F}$, and naturally exposes batched execution opportunities over different graphs. Experiments comparing Cavs to two state-of-the-art frameworks for dynamic NNs (TensorFlow Fold and DyNet) demonstrate the efficacy of this approach: Cavs achieves a near one order of magnitude speedup on training of various dynamic NN architectures, and ablations demonstrate the contribution of our proposed batching and memory management strategies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。