使用符号微分代数的高阶自动微分:弥合算法微分与符号微分之间的鸿沟
Higher-Order Automatic Differentiation Using Symbolic Differential Algebra: Bridging the Gap between Algorithmic and Symbolic Differentiation
AI总结:
针对高阶导数计算中符号微分与算法微分分离的问题,本文开发了符号微分代数(SDA)软件包,将算法微分的计算技术与符号计算相集成以生成高阶导数的显式表达式。经验证,该方法不仅能简化表达式,还显著加速了高阶导数的计算。
摘要:
在科学计算中,通常需要计算函数的高阶导数。目前,存在两种主要的计算高阶导数的方法:符号微分和算法自动微分(AD)。微分代数(DA)是一种在束流动力学分析和粒子加速器模拟中广泛使用的数学技术,它同时也作为算法自动微分方法的基础。DA会自动计算函数在特定点的泰勒展开式,其中展开式的导数可以很容易从展开式的系数中提取。我们开发了一个符号微分代数(SDA)软件包,该软件包将算法微分与符号计算相集成,以利用算法微分的计算技术来生成高阶导数的显式表达式。我们的代码已针对现有的DA和AD库进行了验证。此外,我们展示了SDA不仅能够简化显式表达式,还能显著加速高阶导数的计算,使其能够直接使用AD。abstract_cn
英文摘要:
In scientific computation, it is often necessary to calculate higher-order derivatives of a function. Currently, two primary methods for higher-order automatic differentiation exist: symbolic differentiation and algorithmic automatic differentiation (AD). Differential Algebra (DA) is a mathematical technique widely used in beam dynamics analysis and simulations of particle accelerators, and it also functions as an algorithmic automatic differentiation method. DA automatically computes the Taylor expansion of a function at a specific point up to a predetermined order and the derivatives can be easily extracted from the coefficients of the expansion. We have developed a Symbolic Differential Algebra (SDA) package that integrates algorithmic differentiation with symbolic computation to produce explicit expressions for higher-order derivatives using the computational techniques of algorithmic differentiation. Our code has been validated against existing DA and AD libraries. Moreover, we demonstrate that SDA not only facilitates the simplification of explicit expressions but also significantly accelerates the calculation of higher-order derivatives, compared to directly using AD.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。