Learners' Languages
Abstract
In "Backprop as functor", the authors show that the fundamental elements of deep learning -- gradient descent and backpropagation -- can be conceptualized as a strong monoidal functor Para(Euc)Learn from the category of parameterized Euclidean spaces to that of learners, a category developed explicitly to capture parameter update and backpropagation. It was soon realized that there is an isomorphism LearnPara(Slens), where Slens is the symmetric monoidal category of simple lenses as used in functional programming. In this note, we observe that Slens is a full subcategory of Poly, the category of polynomial functors in one variable, via the functor . Using the fact that (Poly,) is monoidal closed, we show that a map in Para(Slens) has a natural interpretation in terms of dynamical systems (more precisely, generalized Moore machines) whose interface is the internal-hom type . Finally, we review the fact that the category p-Coalg of dynamical systems on any Poly forms a topos, and consider the logical propositions that can be stated in its internal language. We give gradient descent as an example, and we conclude by discussing some directions for future work.
Cite
@article{arxiv.2103.01189,
title = {Learners' Languages},
author = {David I. Spivak},
journal= {arXiv preprint arXiv:2103.01189},
year = {2025}
}
Comments
In Proceedings ACT 2021, arXiv:2211.01102. [Edit 2025.06.06: the original version (v1) of this paper referred to the main object of interest as "Org", but later versions referred to the same object as "Sys". In the meantime, other articles have been referencing the object as "Org". The only purpose of this edit is to reinstate the name "Org".]