Bidirectional Reactive Programming for Machine Learning
Abstract
Reactive languages are dedicated to the programming of systems which interact continuously and concurrently with their environment. Values take the form of unbounded streams modeling the (discrete) passing of time or the sequence of concurrent interactions. While conventional reactivity models recurrences forward in time, we introduce a symmetric reactive construct enabling backward recurrences. Constraints on the latter allow to make the implementation practical. Machine Learning (ML) systems provide numerous motivations for all of this: we demonstrate that reverse-mode automatic differentiation, backpropagation, batch normalization, bidirectional recurrent neural networks, training and reinforcement learning algorithms, are all naturally captured as bidirectional reactive programs.
- Publication:
-
arXiv e-prints
- Pub Date:
- November 2023
- DOI:
- 10.48550/arXiv.2311.16977
- arXiv:
- arXiv:2311.16977
- Bibcode:
- 2023arXiv231116977P
- Keywords:
-
- Computer Science - Programming Languages;
- Computer Science - Machine Learning;
- D.3;
- D.3.1;
- I.2;
- I.2.5