静态数据流图中的递归函数定义及其在 TensorFlow 中的实现
Recursive Function Definitions in Static Dataflow Graphs and their Implementation in TensorFlow
AI总结:
本文提出在 TensorFlow 等静态数据流系统中支持递归函数的方法,通过两个数据流操作和 tagging 机制将递归定义转为可分布式高效执行的静态图,并验证其与自动微分兼容。
摘要:
现代机器学习系统将其计算表示为数据流图。日益复杂的神经网络架构渴望更强大且高效的编程抽象。在本文中,我们提出了一种高效技术,用于在 TensorFlow 等基于数据流的系统中支持递归函数定义。所提出的方法将给定的递归定义转换为一个静态数据流图,该图通过两个简单但强大的数据流操作进行增强。由于静态图在执行期间不会改变,因此它们可以被轻松划分,并在分布式和异构环境中高效执行。所提出的技术大量使用了标记(tagging)思想,该思想自数据流系统诞生以来就是其基石之一。我们证明了我们的技术与自动微分思想兼容;对于专注于深度学习应用的数据流系统而言,自动微分是一个至关重要的概念。我们描述了该技术在 TensorFlow 框架中实际实现的原则,并给出实验结果,这些结果表明,使用标记对于为现代数据流系统开发高效的高层抽象具有至关重要的意义。
英文摘要:
Modern machine learning systems represent their computations as dataflow graphs. The increasingly complex neural network architectures crave for more powerful yet efficient programming abstractions. In this paper we propose an efficient technique for supporting recursive function definitions in dataflow-based systems such as TensorFlow. The proposed approach transforms the given recursive definitions into a static dataflow graph that is enriched with two simple yet powerful dataflow operations. Since static graphs do not change during execution, they can be easily partitioned and executed efficiently in distributed and heterogeneous environments. The proposed technique makes heavy use of the idea of tagging, which was one of the cornerstones of dataflow systems since their inception. We demonstrate that our technique is compatible with the idea of automatic differentiation, a notion that is crucial for dataflow systems that focus on deep learning applications. We describe the principles of an actual implementation of the technique in the TensorFlow framework, and present experimental results that demonstrate that the use of tagging is of paramount importance for developing efficient high-level abstractions for modern dataflow systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。