DeepDSL:一种用于深度学习的基于解析的领域特定语言
DeepDSL: A Compilation-based Domain-Specific Language for Deep Learning
摘要:
近年来,深度学习(DL)在多媒体理解等领域取得了巨大成功。然而,多媒体数据的复杂性使得开发基于DL的软件变得困难。最先进的工具,如Caffe,TensorFlow,Torch 7和CNTK,虽然在其适用领域取得了成功,但它们是具有固定用户界面,内部表示和执行环境的编程库。这使得实现可移植和定制的DL应用程序变得困难。在本文中,我们介绍了DeepDSL,一种嵌入在Scala中的领域特定语言(DSL),它将用DeepDSL编写的深度网络编译为Java源代码。Deep DSL提供(1)直观的构造以支持深度网络的紧凑编码;(2)网络的符号梯度推导;(3)用于内存消耗和错误检测的静态分析;以及(4)DSL级优化以提高内存和运行时效率。DeepDSL程序被编译成紧凑,高效,可定制和可移植的Java源代码,通过Java本机接口(JNI)库操作在Nvidia GPU上运行的CUDA和CUDNN接口。我们评估了DeepDSL与一些流行的DL网络。我们的实验表明,编译程序具有非常有竞争力的运行时性能和内存效率相比,现有的库。
英文摘要:
In recent years, Deep Learning (DL) has found great success in domains such as multimedia understanding. However, the complex nature of multimedia data makes it difficult to develop DL-based software. The state-of-the art tools, such as Caffe, TensorFlow, Torch7, and CNTK, while are successful in their applicable domains, are programming libraries with fixed user interface, internal representation, and execution environment. This makes it difficult to implement portable and customized DL applications. In this paper, we present DeepDSL, a domain specific language (DSL) embedded in Scala, that compiles deep networks written in DeepDSL to Java source code. Deep DSL provides (1) intuitive constructs to support compact encoding of deep networks; (2) symbolic gradient derivation of the networks; (3) static analysis for memory consumption and error detection; and (4) DSL-level optimization to improve memory and runtime efficiency. DeepDSL programs are compiled into compact, efficient, customizable, and portable Java source code, which operates the CUDA and CUDNN interfaces running on Nvidia GPU via a Java Native Interface (JNI) library. We evaluated DeepDSL with a number of popular DL networks. Our experiments show that the compiled programs have very competitive runtime performance and memory efficiency compared to the existing libraries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。