Tangent:使用source-code转换进行动态类型数组编程的自动微分
Tangent: Automatic differentiation using source-code transformation for dynamically typed array programming
摘要:
高效计算Python中表达的日益复杂的模型的一阶和高阶导数的需求已经强调或超过了可用工具的能力。在这项工作中,我们探索的技术领域的自动微分(AD),可以给研究人员的表达能力,性能和强大的可用性。这些包括源代码转换(SCT),灵活的梯度手术,有效的就地阵列操作,高阶导数以及正向和反向模式AD的混合。我们实现和展示这些想法的切线软件库的Python,第一个AD框架的动态语言,使用SCT。
英文摘要:
The need to efficiently calculate first- and higher-order derivatives of increasingly complex models expressed in Python has stressed or exceeded the capabilities of available tools. In this work, we explore techniques from the field of automatic differentiation (AD) that can give researchers expressive power, performance and strong usability. These include source-code transformation (SCT), flexible gradient surgery, efficient in-place array operations, higher-order derivatives as well as mixing of forward and reverse mode AD. We implement and demonstrate these ideas in the Tangent software library for Python, the first AD framework for a dynamic language that uses SCT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。