Jacobians and Gradients for Cartesian Differential Categories

11/03/2022
by   Jean-Simon Pacaud Lemay, et al.
0

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 lambda-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 lambda-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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/13/2023

Cartesian Differential Kleisli Categories

Cartesian differential categories come equipped with a differential comb...
research
10/15/2019

Reverse derivative categories

The reverse derivative is a fundamental operation in machine learning an...
research
03/23/2022

Monoidal Reverse Differential Categories

Cartesian reverse differential categories (CRDCs) are a recently defined...
research
06/29/2021

LNL polycategories and doctrines of linear logic

We define and study LNL polycategories, which abstract the judgmental st...
research
11/15/2018

Jets and differential linear logic

We prove that the category of vector bundles over a fixed smooth manifol...
research
01/11/2021

Deductive Systems and Coherence for Skew Prounital Closed Categories

In this paper, we develop the proof theory of skew prounital closed cate...
research
11/18/2021

On the Existence of Coproducts in Categories of q-Matroids

q-Matroids form the q-analogue of classical matroids. In this paper we i...

Please sign up or login with your details

Forgot password? Click here to reset