Jacobians and Gradients for Cartesian Differential Categories

被引:0
作者
Lemay, Jean-Simon Pacaud [1 ]
机构
[1] Mt Allison Univ, Math & Comp Sci Dept, Sackville, NB, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
D O I
10.4204/EPTCS.372.3
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Cartesian differential categories come equipped with a differential combinator that formalizes the directional derivative from multivariable calculus. Cartesian differential categories provide a categorical semantics of the differential 2,-calculus and have also found applications in causal computation, incremental computation, game theory, differentiable programming, and machine learning. There has recently been a desire to provide a (coordinate-free) characterization of Jacobians and gradients in Cartesian differential categories. One's first attempt might be to consider Cartesian differential categories which are Cartesian closed, such as models of the differential 2,-calculus, and then take the curry of the derivative. Unfortunately, this approach excludes numerous important examples of Cartesian differential categories such as the category of real smooth functions. In this paper, we introduce linearly closed Cartesian differential categories, which are Cartesian differential categories that have an internal hom of linear maps, a bilinear evaluation map, and the ability to curry maps which are linear in their second argument. As such, the Jacobian of a map is defined as the curry of its derivative. Many well-known examples of Cartesian differential categories are linearly closed, such as, in particular, the category of real smooth functions. We also explain how a Cartesian closed differential category is linearly closed if and only if a certain linear idempotent on the internal hom splits. To define the gradient of a map, one must be able to define the transpose of the Jacobian, which can be done in a Cartesian reverse differential category. Thus, we define the gradient of a map to be the curry of its reverse derivative and show this equals the transpose of its Jacobian. We also explain how a linearly closed Cartesian reverse differential category is precisely a linearly closed Cartesian differential category with an appropriate notion of transpose.
引用
收藏
页码:29 / 42
页数:14
相关论文
共 23 条
[1]  
Abadi M., 2019, P ACM PROGR LANG, V4, P1
[2]   Change Actions: Models of Generalised Differentiation [J].
Alvarez-Picallo, Mario ;
Ong, C-H Luke .
FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES, FOSSACS 2019, 2019, 11425 :45-61
[3]  
Blute R, 2015, THEOR APPL CATEG, V30, P620
[4]  
Blute R., 2012, CAHIERS DE TOPOLOGIE ET GEOMETRIE DIFFERENTIELLE CATEGORIQUES, VLIII-3, P211
[5]   Differential categories [J].
Blute, R. F. ;
Cockett, J. R. B. ;
Seely, R. A. G. .
MATHEMATICAL STRUCTURES IN COMPUTER SCIENCE, 2006, 16 (06) :1049-1083
[6]   Differential Categories Revisited [J].
Blute, R. F. ;
Cockett, J. R. B. ;
Lemay, J. -S. P. ;
Seely, R. A. G. .
APPLIED CATEGORICAL STRUCTURES, 2020, 28 (02) :171-235
[7]  
Blute RF, 2009, THEOR APPL CATEG, V22, P622
[8]   Categorical Models for Simply Typed Resource Calculi [J].
Bucciarelli, Antonio ;
Ehrhard, Thomas ;
Manzonetto, Giulio .
ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2010, 265 :213-230
[9]  
Cockett J., 2022, THEOR APPL CATEG, V38, P374
[10]  
Cockett J. R. B., 2020, LIPICS, p18:1, DOI [10.4230/LIPIcs.CSL.2020.18, DOI 10.4230/LIPICS.CSL.2020.18]