Before revision:  Most importantly, it predicts a teaching signal that is remarkably similar to known properties of the cholinergic system .
After revision:  We illustrate the idea on recurrent neural networks trained to model image and video datasets. This framework for learning brings variational inference closer to neuroscience and yields multiple testable hypotheses .