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

理解自动微分的陷阱

Understanding Automatic Differentiation Pitfalls

Argonne National Laboratory(阿贡国家实验室);Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室);University of Hertfordshire(赫特福德大学);Inria(法国国家信息与自动化研究所)

Jan Hückelheim, Harshitha Menon, William Moses, Bruce Christianson, Paul Hovland, Laurent Hascoët

AI总结:

本文系统分类了自动微分(AD)的常见陷阱,通过混沌、离散化等示例说明,并回顾调试技术,以帮助用户避免错误并合理预期。

摘要:

自动微分,也称为反向传播、AD、autodiff或算法微分,是一种用于精确且高效地计算计算机程序导数的流行技术。然而,有时由AD计算的导数可能被解释为不正确的。这些陷阱系统性地出现在各种工具和方法中。在本文中,我们对AD的问题用法进行了广泛分类,并通过混沌、时间平均振荡、离散化、不动点循环、查找表和线性求解器等示例来说明每个类别。我们还回顾了调试技术及其在这些情况下的有效性。通过这篇文章,我们希望帮助读者避免意外行为,在问题发生时更容易检测到问题,并对AD工具抱有更现实的期望。

英文摘要:

Automatic differentiation, also known as backpropagation, AD, autodiff, or algorithmic differentiation, is a popular technique for computing derivatives of computer programs accurately and efficiently. Sometimes, however, the derivatives computed by AD could be interpreted as incorrect. These pitfalls occur systematically across tools and approaches. In this paper we broadly categorize problematic usages of AD and illustrate each category with examples such as chaos, time-averaged oscillations, discretizations, fixed-point loops, lookup tables, and linear solvers. We also review debugging techniques and their effectiveness in these situations. With this article we hope to help readers avoid unexpected behavior, detect problems more easily when they occur, and have more realistic expectations from AD tools.

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

↑