Categorical Foundations of Gradient-Based Learning
Preprint
Abstract
We propose a categorical semantics of gradient-based machine learning algorithms in terms of lenses, parametrised maps, and reverse derivative categories. This foundation provides a powerful explanatory and unifying framework: it encompasses a variety of gradient descent algorithms such as ADAM, AdaGrad, and Nesterov momentum, as well as a variety of loss functions such as as MSE and Softmax cross-entropy, shedding new light on their similarities and differences. Our approach to gradient-based learning has examples generalising beyond the familiar continuous domains (modelled in categories of smooth maps) and can be realized in the discrete setting of boolean circuits. Finally, we demonstrate the practical significance of our framework with an implementation in Python.Keywords
All Related Versions
This publication has 23 references indexed in Scilit:
- Picturing Quantum Processes2017
- The Calculus of Signal Flow Diagrams I: Linear relations on streamsInformation and Computation, 2017
- Deep neural networks are easily fooled: High confidence predictions for unrecognizable images2015
- Cartesian differential categories revisitedMathematical Structures in Computer Science, 2015
- Functorial data migrationInformation and Computation, 2012
- Lenses, fibrations and universal translationsMathematical Structures in Computer Science, 2011
- A Survey of Graphical Languages for Monoidal Categories2010
- Control categories and duality: on the categorical semantics of the lambda-mu calculusMathematical Structures in Computer Science, 2001
- Gradient-based learning applied to document recognitionProceedings of the IEEE, 1998
- Some methods of speeding up the convergence of iteration methodsUSSR Computational Mathematics and Mathematical Physics, 1964