Sequences
Data often arrive as streams. A weather station reports sensor readings indexed by time, an exchange reports a stream of trades, and a reader takes in a text one word after another. To fit a model to sequential data you need a hypothesis set that is rich enough for tasks that require some form of memory. In what follows, is the index of a sequence element. It does not have to mean time. A dynamical system is one such rich model. Its state evolves by a recurrence: Here is the evolving state, is an external action or control, and is a set of parameters that specify the state evolution model . This short equation can capture a lot of complexity, because three things are allowed to change with :- The state space, the set of possible states.
- The action space, the set of possible actions.
- The function that maps the previous state and the action to a new state.
RNN architecture
A recurrent neural network (RNN) is a constrained version of this dynamical system: The RNN applies the same function, with the same parameters , at every step of the sequence . The state is latent, and it is written to match the notation for hidden layers in feed-forward networks. Because does not depend on , the network shares its parameters across the sequence. CNNs share parameters too, but only over the small span of a filter. The larger difference between the two is the recurrence itself.


PyTorch reference
Key references: (Lipton et al., 2015; Schmidhuber, 2015; Graves et al., n.d.; Li et al., 2015; Chung et al., 2015)
References
- Chung, J., Kastner, K., Dinh, L., Goel, K., Courville, A., et al. (2015). A Recurrent Latent Variable Model for Sequential Data. arXiv [cs.LG]. Link
- Graves, A., Wayne, G., Danihelka, I. (n.d.). Neural Turing Machines. Link
- Li, X., Li, L., Gao, J., He, X., Chen, J., et al. (2015). Recurrent Reinforcement Learning: A Hybrid Approach. arXiv [cs.LG]. Link
- Lipton, Z., Berkowitz, J., Elkan, C. (2015). A Critical Review of Recurrent Neural Networks for Sequence Learning. arXiv [cs.LG]. Link
- Schmidhuber, J. (2015). On Learning to Think: Algorithmic Information Theory for Novel Combinations of Reinforcement Learning Controllers and Recurrent Neural World Models. arXiv [cs.AI]. Link
Found an error on this page? Report an issue.

