Paper record
W2770981215Backprop as Functor: A compositional perspective on supervised learning
Brendan Fong, David I. Spivak, Rémy Tuyéras
- Year
- 2019
- Venue
- ACM/IEEE Symposium on Logic in Computer Science (LICS)
- References
- 18
- Cited by
- 188
Details and counts from OpenAlex.
Abstract
A supervised learning algorithm searches over a set of functionsparametrised by a spaceto find the best approximation to some ideal function. It does this by taking examples, and updating the parameter according to some rule. We define a category where these update rules may be composed, and show that gradient descent-with respect to a fixed step size and an error function satisfying a certain property-defines a monoidal functor from a category of parametrised functions to this category of update rules. A key contribution is the notion of request function. This provides a structural perspective on backpropagation, giving a broad generalisation of neural networks and linking it with structures from bidirectional programming and open games.