一个连接机器学习和科学计算的可微程序设计系统
A Differentiable Programming System to Bridge Machine Learning and Scientific Computing
摘要:
科学计算越来越多地融合了机器学习的进步和处理大量数据的能力。与此同时,机器学习模型正变得越来越复杂,并表现出科学计算中常见的许多特征,强调了机器学习框架的能力。正如科学计算和机器学习的学科以数值线性代数的形式共享共同的基础设施一样,我们现在有机会以微分编程的形式进一步共享新的计算基础设施,从而共享新的思想。我们描述受精卵,微分编程系统,能够采取梯度的一般程序结构。我们用Julia程序设计语言实现了这个系统。我们的系统支持几乎所有的语言结构(控制流,递归,变异等)。并且编译高性能代码,而不需要任何用户干预或重构来分阶段计算。这为深度学习提供了一个富有表现力的编程模型,但更重要的是,它使我们能够以一种简单的方式将大型库生态系统纳入我们的模型中。我们讨论了我们的方法,自动微分,包括其支持先进的技术,如混合模式,复杂的和检查点的差异,并提出了几个例子,区分程序。
英文摘要:
Scientific computing is increasingly incorporating the advancements in machine learning and the ability to work with large amounts of data. At the same time, machine learning models are becoming increasingly sophisticated and exhibit many features often seen in scientific computing, stressing the capabilities of machine learning frameworks. Just as the disciplines of scientific computing and machine learning have shared common underlying infrastructure in the form of numerical linear algebra, we now have the opportunity to further share new computational infrastructure, and thus ideas, in the form of Differentiable Programming. We describe Zygote, a Differentiable Programming system that is able to take gradients of general program structures. We implement this system in the Julia programming language. Our system supports almost all language constructs (control flow, recursion, mutation, etc.) and compiles high-performance code without requiring any user intervention or refactoring to stage computations. This enables an expressive programming model for deep learning, but more importantly, it enables us to incorporate a large ecosystem of libraries in our models in a straightforward way. We discuss our approach to automatic differentiation, including its support for advanced techniques such as mixed-mode, complex and checkpointed differentiation, and present several examples of differentiating programs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。