arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1701.03980stat.MLcs.CLcs.MS
收藏

DyNet:动态神经网络工具包

DyNet: The Dynamic Neural Network Toolkit

Allen Institute for Artificial Intelligence(艾伦人工智能研究院);Google(谷歌);Carnegie Mellon University(卡内基梅隆大学);Nara Institute of Science and Technology(奈良先端科学技术大学);DeepMind;Bar Ilan University(巴伊兰大学);University of Notre Dame(圣母大学);IBM T.J. Watson Research Center(IBM T.J. 沃森研究中心);University of Melbourne(墨尔本大学);Johns Hopkins University(约翰斯·霍普金斯大学);University of Washington(华盛顿大学);Microsoft Research(微软研究院);University of Edinburgh(爱丁堡大学)
Graham Neubig, Chris Dyer, Yoav Goldberg, Austin Matthews, Waleed Ammar, Antonios Anastasopoulos, Miguel Ballesteros, David Chiang, Daniel Clothiaux, Trevor Coh… 展开作者

Graham Neubig, Chris Dyer, Yoav Goldberg, Austin Matthews, Waleed Ammar, Antonios Anastasopoulos, Miguel Ballesteros, David Chiang, Daniel Clothiaux, Trevor Cohn, Kevin Duh, Manaal Faruqui, Cynthia Gan, Dan Garrette, Yangfeng Ji, Lingpeng Kong, Adhiguna Kuncoro, Gaurav Kumar, Chaitanya Malaviya, Paul Michel, Yusuke Oda, Matthew Richardson, Naomi Saphra, Swabha Swayamdipta, Pengcheng Yin

摘要:

我们描述了DyNet,一个工具包,用于实现神经网络模型的基础上动态声明的网络结构。在Theano、CNTK和TensorFlow等工具包中使用的静态声明策略中,用户首先定义一个计算图(计算的符号表示),然后将示例输入执行此计算并计算其导数的引擎。在DyNet的动态声明策略中,计算图的构造大多是透明的,通过执行计算网络输出的过程代码来隐式地构造,用户可以自由地为每个输入使用不同的网络结构。因此,动态声明有助于实现更复杂的网络架构,DyNet专门设计用于允许用户以其首选编程语言(C++或Python)中惯用的方式实现其模型。动态声明的一个挑战是,由于符号计算图是为每个训练示例重新定义的,因此其构造必须具有低开销。为了实现这一点,DyNet有一个优化的C++后端和轻量级的图形表示。实验表明,DyNet的速度比静态声明工具包快或相当,并且明显快于另一个动态声明工具包Chainer。DyNet是在Apache 2.0许可证下开源发布的,可在http://github.com/clab/dynet上获得。

英文摘要:

We describe DyNet, a toolkit for implementing neural network models based on dynamic declaration of network structure. In the static declaration strategy that is used in toolkits like Theano, CNTK, and TensorFlow, the user first defines a computation graph (a symbolic representation of the computation), and then examples are fed into an engine that executes this computation and computes its derivatives. In DyNet's dynamic declaration strategy, computation graph construction is mostly transparent, being implicitly constructed by executing procedural code that computes the network outputs, and the user is free to use different network structures for each input. Dynamic declaration thus facilitates the implementation of more complicated network architectures, and DyNet is specifically designed to allow users to implement their models in a way that is idiomatic in their preferred programming language (C++ or Python). One challenge with dynamic declaration is that because the symbolic computation graph is defined anew for every training example, its construction must have low overhead. To achieve this, DyNet has an optimized C++ backend and lightweight graph representation. Experiments show that DyNet's speeds are faster than or comparable with static declaration toolkits, and significantly faster than Chainer, another dynamic declaration toolkit. DyNet is released open-source under the Apache 2.0 license and available at http://github.com/clab/dynet.

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

↑