计算机科学 > 计算机科学中的逻辑
[提交于 2021年1月12日 (v1),最后修订于 2021年1月12日 (此版本, v3)]
标题:Automatic Differentiation in PCF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We study the correctness of automatic differentiation (AD) in the context of a higher-order, Turing-complete language (PCF with real numbers), both in forward and reverse mode. Our main result is that, under mild hypotheses on the primitive functions included in the language, AD is almost everywhere correct, that is, it computes the derivative or gradient of the program under consideration except for a set of Lebesgue measure zero. Stated otherwise, there are inputs on which AD is incorrect, but the probability of randomly choosing one such input is zero. Our result is in fact more precise, in that the set of failure points admits a more explicit description: for example, in case the primitive functions are just constants, addition and multiplication, the set of points where AD fails is contained in a countable union of zero sets of non-identically-zero polynomials.
提交历史
来自:Damiano Mazza[v3] 2021年1月12日 星期二 16:01:14 UTC