arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.04159math.NAcs.NA
收藏

任意阶自动微分的双数

Dual Numbers for Arbitrary Order Automatic Differentiation

F. Peñuñuri, K. B. Cantún-Avila, R. Peón-Escalante

AI总结:

本文提出DNAOAD,一种基于Fortran的自动微分框架,利用直接双数表示高效计算任意阶导数,解决传统方法内存消耗大、可扩展性差的问题。

摘要:

双数是一种计算导数的成熟工具,构成了前向模式自动微分的基础。虽然计算任意阶导数的理论框架已得到充分理解,但实际可行且可扩展的实现仍然有限。基于嵌套双数的现有方法,如现代高级语言中使用的方法,随着导数阶数的增加,内存增长严重且可扩展性差。在本工作中,我们引入了DNAOAD,一种基于Fortran的自动微分框架,能够使用直接而非嵌套的双数表示来计算任意阶导数。通过避免递归数据结构,DNAOAD显著减少了内存使用,并能够高效计算非常高的阶导数,克服了现有方法的关键可扩展性限制,使其特别适合高性能科学计算应用。

英文摘要:

Dual numbers are a well-established tool for computing derivatives and constitute the basis of forward-mode automatic differentiation. While the theoretical framework for computing derivatives of arbitrary order is well understood, practical and scalable implementations remain limited. Existing approaches based on nested dual numbers, such as those used in modern high-level languages, suffer from severe memory growth and poor scalability as the derivative order increases. In this work, we introduce DNAOAD, a Fortran-based automatic differentiation framework capable of computing derivatives of arbitrary order using dual numbers with a direct, non-nested representation. By avoiding recursive data structures, DNAOAD significantly reduces memory usage and enables the efficient computation of derivatives of very high order, overcoming key scalability limitations of existing methods and making it particularly well suited for high-performance scientific computing applications.

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

↑