ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 1701.03980
33
386

DyNet: The Dynamic Neural Network Toolkit

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

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.

View on arXiv
Comments on this paper