“…Recently, the correctness of automatic differentiation has been actively studied for various types of programs. For programs that only use differentiable functions, automatic differentiation is correct everywhere, i.e., it computes the derivative of a given program at all inputs (Abadi & Plotkin, 2020;Barthe et al, 2020;Brunel et al, 2020;Elliott, 2018;Huot et al, 2020;Krawiec et al, 2022;Radul et al, 2023;Smeding & Vákár, 2023;Vákár, 2021). On the other hand, for programs that use non-differentiable functions (e.g., ReLU 1 ), automatic differentiation can be incorrect at some inputs (Bolte & Pauwels, 2020a;Griewank & Walther, 2008;Lee et al, 2020).…”