{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,29]],"date-time":"2026-09-29T07:35:08Z","timestamp":1790667308668,"version":"4.1.0"},"reference-count":45,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2019,12,20]],"date-time":"2019-12-20T00:00:00Z","timestamp":1576800000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,1]]},"abstract":"<jats:p>Automatic differentiation plays a prominent role in scientific computing and in modern machine learning, often in the context of powerful programming systems. The relation of the various embodiments of automatic differentiation to the mathematical notion of derivative is not always entirely clear---discrepancies can arise, sometimes inadvertently. In order to study automatic differentiation in such programming contexts, we define a small but expressive programming language that includes a construct for reverse-mode differentiation. We give operational and denotational semantics for this language. The operational semantics employs popular implementation techniques, while the denotational semantics employs notions of differentiation familiar from real analysis. We establish that these semantics coincide.<\/jats:p>","DOI":"10.1145\/3371106","type":"journal-article","created":{"date-parts":[[2019,12,20]],"date-time":"2019-12-20T14:45:25Z","timestamp":1576853125000},"page":"1-28","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":33,"title":["A simple differentiable programming language"],"prefix":"10.1145","volume":"4","author":[{"given":"Mart\u00edn","family":"Abadi","sequence":"first","affiliation":[{"name":"Google Research, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Gordon D.","family":"Plotkin","sequence":"additional","affiliation":[{"name":"Google Research, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2019,12,20]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/2976749.2978318"},{"key":"e_1_2_1_2_1","volume-title":"Handbook of Logic in Computer Science (Vol. 3), Samson Abramsky, Dov M","author":"Abramsky Samson","unstructured":"Samson Abramsky and Achim Jung . 1994. Domain theory . In Handbook of Logic in Computer Science (Vol. 3), Samson Abramsky, Dov M . Gabbay, and T. S. E. Maibaum (Eds.). Oxford University Press, Inc. , 1\u2013168. Samson Abramsky and Achim Jung. 1994. Domain theory. In Handbook of Logic in Computer Science (Vol. 3), Samson Abramsky, Dov M. Gabbay, and T. S. E. Maibaum (Eds.). Oxford University Press, Inc., 1\u2013168."},{"key":"e_1_2_1_3_1","volume-title":"Alexandre Passos, Allen Lavoie, Ashish Agarwal, Asim Shankar, Igor Ganichev, Josh Levenberg, Mingsheng Hong, Rajat Monga, et al.","author":"Agrawal Akshay","year":"2019","unstructured":"Akshay Agrawal , Akshay Naresh Modi , Alexandre Passos, Allen Lavoie, Ashish Agarwal, Asim Shankar, Igor Ganichev, Josh Levenberg, Mingsheng Hong, Rajat Monga, et al. 2019 . TensorFlow Eager: A multi-stage, Python-embedded DSL for machine learning. arXiv preprint arXiv:1903.01855 (2019). Akshay Agrawal, Akshay Naresh Modi, Alexandre Passos, Allen Lavoie, Ashish Agarwal, Asim Shankar, Igor Ganichev, Josh Levenberg, Mingsheng Hong, Rajat Monga, et al. 2019. TensorFlow Eager: A multi-stage, Python-embedded DSL for machine learning. arXiv preprint arXiv:1903.01855 (2019)."},{"key":"e_1_2_1_4_1","volume-title":"Advances in Neural Information Processing Systems 9, NIPS","unstructured":"Shun-ichi Amari. 1996. Neural learning in structured parameter spaces \u2014 natural Riemannian gradient . In Advances in Neural Information Processing Systems 9, NIPS , M. Mozer, M. I. Jordan, and T. Petsche (Eds.). MIT Press , 127\u2013133. Shun-ichi Amari. 1996. Neural learning in structured parameter spaces \u2014 natural Riemannian gradient. In Advances in Neural Information Processing Systems 9, NIPS, M. Mozer, M. I. Jordan, and T. Petsche (Eds.). MIT Press, 127\u2013133."},{"key":"e_1_2_1_5_1","first-page":"1","article-title":"Automatic differentiation in machine learning: a survey","volume":"18","author":"Baydin Atilim G\u00fcnes","year":"2018","unstructured":"Atilim G\u00fcnes Baydin , Barak A. Pearlmutter , Alexey Andreyevich Radul , and Jeffrey Mark Siskind . 2018 . Automatic differentiation in machine learning: a survey . Journal of Machine Learning Research 18 , 153 (2018), 1 \u2013 43 . Atilim G\u00fcnes Baydin, Barak A. Pearlmutter, Alexey Andreyevich Radul, and Jeffrey Mark Siskind. 2018. Automatic differentiation in machine learning: a survey. Journal of Machine Learning Research 18, 153 (2018), 1\u201343.","journal-title":"Journal of Machine Learning Research"},{"key":"e_1_2_1_6_1","volume-title":"Tricks from deep learning. CoRR abs\/1611.03777","author":"Baydin Atilim G\u00fcnes","year":"2016","unstructured":"Atilim G\u00fcnes Baydin , Barak A. Pearlmutter , and Jeffrey Mark Siskind . 2016. Tricks from deep learning. CoRR abs\/1611.03777 ( 2016 ). Atilim G\u00fcnes Baydin, Barak A. Pearlmutter, and Jeffrey Mark Siskind. 2016. Tricks from deep learning. CoRR abs\/1611.03777 (2016)."},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1016\/0377-0427(94)90294-1"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.25080\/Majora-92bf1922-003"},{"key":"e_1_2_1_9_1","volume-title":"Interactive theorem proving and program development: Coq\u2019Art: the calculus of inductive constructions","author":"Bertot Yves","unstructured":"Yves Bertot and Pierre Cast\u00e9ran . 2013. Interactive theorem proving and program development: Coq\u2019Art: the calculus of inductive constructions . Springer Science & amp; Business Media. Yves Bertot and Pierre Cast\u00e9ran. 2013. Interactive theorem proving and program development: Coq\u2019Art: the calculus of inductive constructions. Springer Science &amp; Business Media."},{"key":"e_1_2_1_10_1","volume-title":"A convenient differential category. arXiv preprint arXiv:1006.3140","author":"Blute Richard","year":"2010","unstructured":"Richard Blute , Thomas Ehrhard , and Christine Tasson . 2010. A convenient differential category. arXiv preprint arXiv:1006.3140 ( 2010 ). Richard Blute, Thomas Ehrhard, and Christine Tasson. 2010. A convenient differential category. arXiv preprint arXiv:1006.3140 (2010)."},{"key":"e_1_2_1_11_1","first-page":"622","article-title":"Cartesian differential categories","volume":"22","author":"Blute Richard F","year":"2009","unstructured":"Richard F Blute , J Robin B Cockett , and Robert AG Seely . 2009 . Cartesian differential categories . Theory and Applications of Categories 22 , 23 (2009), 622 \u2013 672 . Richard F Blute, J Robin B Cockett, and Robert AG Seely. 2009. Cartesian differential categories. Theory and Applications of Categories 22, 23 (2009), 622\u2013672.","journal-title":"Theory and Applications of Categories"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2010.08.013"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1007\/10720107"},{"key":"e_1_2_1_14_1","volume-title":"Optimization and nonsmooth analysis. Classics in Applied Mathematics","author":"Clarke Frank H.","unstructured":"Frank H. Clarke . 1990. Optimization and nonsmooth analysis. Classics in Applied Mathematics , Vol. 5 . SIAM. Frank H. Clarke. 1990. Optimization and nonsmooth analysis. Classics in Applied Mathematics, Vol. 5. SIAM."},{"key":"e_1_2_1_15_1","first-page":"537","article-title":"Differential restriction categories","volume":"25","author":"Cockett J Robin B","year":"2011","unstructured":"J Robin B Cockett , Geoff SH Cruttwell , and Jonathan D Gallagher . 2011 . Differential restriction categories . Theory and Applications of Categories 25 , 21 (2011), 537 \u2013 613 . J Robin B Cockett, Geoff SH Cruttwell, and Jonathan D Gallagher. 2011. Differential restriction categories. Theory and Applications of Categories 25, 21 (2011), 537\u2013613.","journal-title":"Theory and Applications of Categories"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-21401-6_26"},{"key":"e_1_2_1_17_1","volume-title":"Foundations of Software Science and Computation Structures","author":"Gianantonio Pietro Di","unstructured":"Pietro Di Gianantonio and Abbas Edalat . 2013. A language for differentiable functions . In Foundations of Software Science and Computation Structures , Frank Pfenning (Ed.). Springer , 337\u2013352. Pietro Di Gianantonio and Abbas Edalat. 2013. A language for differentiable functions. In Foundations of Software Science and Computation Structures, Frank Pfenning (Ed.). Springer, 337\u2013352."},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129504004359"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-89366-2_25"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(03)00392-X"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/3236765"},{"key":"e_1_2_1_22_1","volume-title":"Friedman","author":"Felleisen Matthias","year":"1987","unstructured":"Matthias Felleisen and Daniel P . Friedman . 1987 . Control operators, the SECD-machine and the \u03bb-calculus. In Formal Description of Programming Concepts III, M. Wirsing (Ed.). Elsevier , 193\u2013217. Matthias Felleisen and Daniel P. Friedman. 1987. Control operators, the SECD-machine and the \u03bb-calculus. In Formal Description of Programming Concepts III, M. Wirsing (Ed.). Elsevier, 193\u2013217."},{"key":"e_1_2_1_23_1","volume-title":"Encyclopedia of Optimization","author":"Fischer H.","unstructured":"H. Fischer . 2001. Automatic differentiation: root problem and branch problem . In Encyclopedia of Optimization , C. A. Floudas and P. M. Pardalos (Eds.). Vol. I . Kluwer Academic Publishers , 118\u2013122. H. Fischer. 2001. Automatic differentiation: root problem and branch problem. In Encyclopedia of Optimization, C. A. Floudas and P. M. Pardalos (Eds.). Vol. I. Kluwer Academic Publishers, 118\u2013122."},{"key":"e_1_2_1_24_1","volume-title":"Matthew James Johnson, and Chris Leary","author":"Frostig Roy","year":"2018","unstructured":"Roy Frostig , Matthew James Johnson, and Chris Leary . 2018 . Compiling machine learning programs via high-level tracing. Presented at SysML 2018. Roy Frostig, Matthew James Johnson, and Chris Leary. 2018. Compiling machine learning programs via high-level tracing. Presented at SysML 2018."},{"key":"e_1_2_1_25_1","volume-title":"Deep Learning","author":"Goodfellow Ian","unstructured":"Ian Goodfellow , Yoshua Bengio , and Aaron Courville . 2016. Deep Learning . MIT Press . Ian Goodfellow, Yoshua Bengio, and Aaron Courville. 2016. Deep Learning. MIT Press."},{"key":"e_1_2_1_26_1","volume-title":"Evaluating derivatives - principles and techniques of algorithmic differentiation. Frontiers in applied mathematics","author":"Griewank Andreas","unstructured":"Andreas Griewank . 2000. Evaluating derivatives - principles and techniques of algorithmic differentiation. Frontiers in applied mathematics , Vol. 19 . SIAM. Andreas Griewank. 2000. Evaluating derivatives - principles and techniques of algorithmic differentiation. Frontiers in applied mathematics, Vol. 19. SIAM."},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/2450153.2450158"},{"key":"e_1_2_1_28_1","doi-asserted-by":"crossref","unstructured":"P. Iglesias-Zemmour. 2013. Diffeology. American Mathematical Society.  P. Iglesias-Zemmour. 2013. Diffeology. American Mathematical Society.","DOI":"10.1090\/surv\/185"},{"key":"e_1_2_1_29_1","volume-title":"The convenient setting of global analysis","author":"Kriegl Andreas","unstructured":"Andreas Kriegl and Peter W Michor . 1997. The convenient setting of global analysis . Vol. 53 . American Mathematical Soc . Andreas Kriegl and Peter W Michor. 1997. The convenient setting of global analysis. Vol. 53. American Mathematical Soc."},{"key":"e_1_2_1_30_1","volume-title":"ICML 2015 AutoML Workshop","volume":"238","author":"Maclaurin Dougal","year":"2015","unstructured":"Dougal Maclaurin , David Duvenaud , and Ryan P Adams . 2015 . Autograd: effortless gradients in Numpy . In ICML 2015 AutoML Workshop , Vol. 238 . Dougal Maclaurin, David Duvenaud, and Ryan P Adams. 2015. Autograd: effortless gradients in Numpy. In ICML 2015 AutoML Workshop, Vol. 238."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2012.08.017"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45685-6_17"},{"key":"e_1_2_1_33_1","unstructured":"Adam Paszke Sam Gross Francisco Massa Adam Lerer James Bradbury Gregory Chanan Trevor Killeen Zeming Lin Natalia Gimelshein Luca Antiga etal 2019. PyTorch: An imperative style high-performance deep learning library. In Advances in Neural Information Processing Systems. 8024\u20138035.  Adam Paszke Sam Gross Francisco Massa Adam Lerer James Bradbury Gregory Chanan Trevor Killeen Zeming Lin Natalia Gimelshein Luca Antiga et al. 2019. PyTorch: An imperative style high-performance deep learning library. In Advances in Neural Information Processing Systems. 8024\u20138035."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/1330017.1330018"},{"key":"e_1_2_1_35_1","volume-title":"Proceedings of the 34th International Conference on Machine Learning, ICML 2017","author":"Selsam Daniel","year":"2017","unstructured":"Daniel Selsam , Percy Liang , and David L. Dill . 2017. Developing bug-free machine learning systems with formal mathematics . In Proceedings of the 34th International Conference on Machine Learning, ICML 2017 , Sydney, NSW, Australia , 6-11 August 2017 (Proceedings of Machine Learning Research), Doina Precup and Yee Whye Teh (Eds.), Vol. 70. PMLR, 3047\u20133056. Daniel Selsam, Percy Liang, and David L. Dill. 2017. Developing bug-free machine learning systems with formal mathematics. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017 (Proceedings of Machine Learning Research), Doina Precup and Yee Whye Teh (Eds.), Vol. 70. PMLR, 3047\u20133056."},{"key":"e_1_2_1_36_1","volume-title":"Simon Peyton Jones, and Christoph Koch","author":"Shaikhha Amir","year":"2018","unstructured":"Amir Shaikhha , Andrew Fitzgibbon , Dimitrios Vytiniotis , Simon Peyton Jones, and Christoph Koch . 2018 . Efficient differentiable programming in a functional array-processing language. CoRR abs\/1806.02136 (2018). arXiv: 1806.02136 Amir Shaikhha, Andrew Fitzgibbon, Dimitrios Vytiniotis, Simon Peyton Jones, and Christoph Koch. 2018. Efficient differentiable programming in a functional array-processing language. CoRR abs\/1806.02136 (2018). arXiv: 1806.02136"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10990-008-9037-1"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-54833-8_3"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1109\/GlobalSIP.2013.6736861"},{"key":"e_1_2_1_41_1","volume-title":"Proceedings of Workshop on Machine Learning Systems (LearningSys) in the Twenty-Ninth Conference on Neural Information Processing Systems (NIPS)","volume":"5","author":"Tokui Seiya","year":"2015","unstructured":"Seiya Tokui , Kenta Oono , Shohei Hido , and Justin Clayton . 2015 . Chainer: a next-generation open source framework for deep learning . In Proceedings of Workshop on Machine Learning Systems (LearningSys) in the Twenty-Ninth Conference on Neural Information Processing Systems (NIPS) , Vol. 5 . 1\u20136. Seiya Tokui, Kenta Oono, Shohei Hido, and Justin Clayton. 2015. Chainer: a next-generation open source framework for deep learning. In Proceedings of Workshop on Machine Learning Systems (LearningSys) in the Twenty-Ninth Conference on Neural Information Processing Systems (NIPS), Vol. 5. 1\u20136."},{"key":"e_1_2_1_42_1","volume-title":"Introduction to Real Analysis","author":"Trench W.F.","unstructured":"W.F. Trench . 2003. Introduction to Real Analysis . Prentice Hall\/Pearson Education . W.F. Trench. 2003. Introduction to Real Analysis. Prentice Hall\/Pearson Education."},{"key":"e_1_2_1_43_1","volume-title":"Domains XIII Workshop.","author":"V\u00e1k\u00e1r M.","unstructured":"M. V\u00e1k\u00e1r , O. Kammar , and S. Staton . 2018. Diffeological spaces and semantics for differential programming . Presented at Domains XIII Workshop. M. V\u00e1k\u00e1r, O. Kammar, and S. Staton. 2018. Diffeological spaces and semantics for differential programming. Presented at Domains XIII Workshop."},{"key":"e_1_2_1_44_1","volume-title":"Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018","author":"van Merrienboer Bart","year":"2018","unstructured":"Bart van Merrienboer , Dan Moldovan , and Alexander B. Wiltschko . 2018. Tangent: automatic differentiation using sourcecode transformation for dynamically typed array programming . In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018 , NeurIPS 2018 , 3-8 December 2018, Montr\u00e9al, Canada., S. Bengio, H. M. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (Eds.). 6259\u20136268. Bart van Merrienboer, Dan Moldovan, and Alexander B. Wiltschko. 2018. Tangent: automatic differentiation using sourcecode transformation for dynamically typed array programming. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, 3-8 December 2018, Montr\u00e9al, Canada., S. Bengio, H. M. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (Eds.). 6259\u20136268."},{"key":"e_1_2_1_45_1","volume-title":"Demystifying differentiable programming: shift\/reset the penultimate backpropagator. CoRR abs\/1803.10228","author":"Wang Fei","year":"2018","unstructured":"Fei Wang , Xilun Wu , Gr\u00e9gory M. Essertel , James M. Decker , and Tiark Rompf . 2018. Demystifying differentiable programming: shift\/reset the penultimate backpropagator. CoRR abs\/1803.10228 ( 2018 ). arXiv: 1803.10228 Fei Wang, Xilun Wu, Gr\u00e9gory M. Essertel, James M. Decker, and Tiark Rompf. 2018. Demystifying differentiable programming: shift\/reset the penultimate backpropagator. CoRR abs\/1803.10228 (2018). arXiv: 1803.10228"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/3190508.3190551"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3371106","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3371106","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T15:05:43Z","timestamp":1750259143000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3371106"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,12,20]]},"references-count":45,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2020,1]]}},"alternative-id":["10.1145\/3371106"],"URL":"https:\/\/doi.org\/10.1145\/3371106","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2019,12,20]]},"assertion":[{"value":"2019-12-20","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}