GithubHelp home page GithubHelp logo

aetf / cavs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhisbug/cavs

0.0 2.0 0.0 860 KB

Cavs: An Efficient Runtime System for Dynamic Neural Networks

Home Page: https://github.com/zhisbug/Cavs

License: Apache License 2.0

Cuda 22.34% C++ 74.64% C 0.30% CMake 2.34% Python 0.39%

cavs's Introduction

This project is an implementation of the Cavs system presented in the paper: Cavs: An Efficient Runtime System for Dynamic Neural Networks, ATC'18, sponsored by Petuum Inc.

Introduction

Recent deep learning (DL) models are moving more and more to dynamic neural network (NN) architectures, where the NN structure changes for every data sample. However, existing DL programming models are inefficient in handling dynamic network architectures because of:

  • substantial overhead caused by repeating dataflow graph construction and processing every example;
  • difficulties in batched execution of multiple samples;
  • inability to incorporate graph optimization techniques such as those used in static graphs.

In this paper, we present Cavs, a runtime system that overcomes these bottlenecks and achieves efficient training and inference of dynamic NNs. Cavs represents a dynamic NN as a static vertex function and a dynamic instance-specific graph . It avoids the overhead of repeated graph construction by only declaring and constructing once, and allows for the use of static graph optimization techniques on pre-defined operations in . Cavs performs training and inference by scheduling the execution of following the dependencies in , hence naturally exposing batched execution opportunities over different samples.

Experiments comparing Cavs to state-of-the-art frameworks for dynamic NNs (TensorFlow Fold, PyTorch and DyNet) demonstrate the efficacy of our approach: Cavs achieves a near one order of magnitude speedup on training of dynamic NN architectures, and ablations verify the effectiveness of our proposed design and optimizations.

How to cite

@inproceedings{xu2018cavs,
  title={Cavs: An efficient runtime system for dynamic neural networks},
  author={Xu, Shizhen and Zhang, Hao and Neubig, Graham and Dai, Wei and Kim, Jin Kyu and Deng, Zhijie and Ho, Qirong and Yang, Guangwen and Xing, Eric P},
  booktitle={2018 $\{$USENIX$\}$ Annual Technical Conference ($\{$USENIX$\}$$\{$ATC$\}$ 18)},
  pages={937--950},
  year={2018}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.