arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.15243math.OC
收藏

自动化稳态与非稳态伴随:高效利用隐式与算法微分

Automating Steady and Unsteady Adjoints: Efficiently Utilizing Implicit and Algorithmic Differentiation

Andrew Ning, Taylor McDonnell

AI总结:

本文提出利用隐式微分定义通用算法微分规则以自动化稳态伴随,利用微分方程结构高效自动化非稳态伴随,并推导出加速显式求解器的技术,在最少代码改动下实现数量级加速,使复杂分析中的精确导数计算变得简单。

摘要:

算法微分(AD)已变得越来越强大且易于使用。然而,将AD直接应用于求解器时效率低下,而这是大多数工程分析的特征。我们可以利用隐式微分来定义一个通用的AD规则,使伴随自动化。此外,我们可以利用微分方程的结构,以内存高效的方式自动化非稳态伴随。我们还推导出一种技术,用于加速显式微分方程求解器,这类求解器没有迭代求解器可供利用。所有这些技术都在不同规模的问题上得到了验证,表明仅需最少的代码更改即可实现数量级的加速。因此,我们能够使用户在具有内部求解器的复杂分析中轻松计算准确的导数,换言之,通过结合AD和隐式微分来实现伴随的自动化。

英文摘要:

Algorithmic differentiation (AD) has become increasingly capable and straightforward to use. However, AD is inefficient when applied directly to solvers, a feature of most engineering analyses. We can leverage implicit differentiation to define a general AD rule, making adjoints automatic. Furthermore, we can leverage the structure of differential equations to automate unsteady adjoints in a memory efficient way. We also derive a technique to speed up explicit differential equation solvers, which have no iterative solver to exploit. All of these techniques are demonstrated on problems of various sizes, showing order of magnitude speed-ups with minimal code changes. Thus, we can enable users to easily compute accurate derivatives across complex analyses with internal solvers, or in other words, automate adjoints using a combination of AD and implicit differentiation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑