@incollection{publications42370, volume = {33}, author = {J{\'e}r{\^o}me Bolte and Edouard Pauwels}, booktitle = {Advances in Neural Information Processing Systems 33 (NeurIPS 2020)}, editor = {Hugo Larochelle and M. Ranzato and R. Hadsell and M.F. Balcan and H. Lin}, title = {A mathematical model for automatic differentiation in machine learning}, publisher = {MIT Press}, journal = {Advances in Neural Information Processing Systems}, year = {2020}, url = {https://publications.ut-capitole.fr/id/eprint/42370/}, abstract = {Automatic differentiation, as implemented today, does not have a simple mathematical model adapted to the needs of modern machine learning. In this work we articulate the relationships between differentiation of programs as implemented in practice, and differentiation of nonsmooth functions. To this end we provide a simple class of functions, a nonsmooth calculus, and show how they apply to stochastic approximation methods. We also evidence the issue of artificial critical points created by algorithmic differentiation and show how usual methods avoid these points with probability one.} }