the role of prediction
Like many in machine learning, I entered this field based on a desire to understand intelligence. If we can create intelligent machines, I thought, we may be able to postively impact every other aspect of society, whether by caring for those in need, restoring our planet's ecosystems, or advancing scientific exploration. And in the short time that I have studied intelligence, I have adopted the following view:
I find this definition helpful, as it clarifies exactly what we mean when we say machine intelligence: we are creating machines to solve tasks. This is nothing new for us; we have been solving tasks through useful inventions for millenia. The difference here lies in the nature and variety of the tasks we are out to solve. These are tasks that involve complicated interactions with the surrounding environment, requiring perception, action, planning and reasoning. As the complexity of these tasks increases, hand designing an entire system, as we have done in the past, becomes no longer feasible, and the machine must, in part, learn how to perform the task from data. This capacity for a machine to learn how to perform a task is known as machine learning, driving recent successes in developing intelligent machines.
So is machine learning the answer to machine intelligence? Can learning alone solve complex tasks? The answer is "No." Learning is an enabling factor, but creating truly intelligent machines will require a certain degree of design, sometimes referred to as architectural priors. In other words, learning requires a scaffolding. There is no better example of this than the intricate evolutionary structures of the human brain. This is the type of system we are striving for: hard coded low-level functionalities with a specific, yet incredibly flexible, higher-level architecture, resulting in the potential to quickly learn a large variety of tasks, i.e. general intelligence. Such a system walks the line between nature and nurture, trading off between pre-specified design and learning.
My opinion is not shared by all, but I feel the shortest path to achieving intelligent machines is by modeling them after biological intelligence. And while the detailed mechanisms of biological intelligence remain largely unknown, there are computational theories and architectural constraints that should be given further consideration by the machine learning community. The most prominent of these, which I will discuss, is the role of prediction.
As we have developed improved tools to study and record from nervous systems, a growing body of evidence points toward the essential role that prediction plays in information processing within biological organisms. Predictive signals have been observed in visual processing , auditory processing [2, 3], hippocampus , motor cortex , and frontal cortex , and many other areas. Even the well-known phenomenon of spike-timing-dependent plasticity (STDP), which strengthens synapses that lead to post-synaptic firing, can by interpreted as a form of predictive learning. In our daily lives, a salient example of prediction is that split-second of shock when you go for that last step at the top of the stairs, only to find that it isn't there. While our understanding is still far from complete, the theme of prediction appearing across organisms and brain areas seems to suggest a common strategy by which intelligent biological entities operate within their environments.
These observations and others have prompted various incarnations of what has come to be called predictive coding. This line of thinking dates back to 1860 with the German physicist and physician Hermann von Helmholtz . After over a century and a half of inspired works (see  for a review), the core idea remains: intelligent biological systems construct probabilistic generative models of their surrounding environments. In other words, we do not passively observe the world (and ourselves). Rather, we maintain an internal model that actively predicts how events will unfold. When disagreement arises between the external environment and the internal model--the missed step at the top of the stairs--prediction errors act to update the internal model. The main implication of this theory is at once suprising and unsurpising: we each construct our own version of reality. This general scheme could underlie a range of coginitive functions, from perception to action and planning. The cartoon below, taken from , illustrates the perception component.
Predictive coding is also no longer purely a biological curiosity. The last two decades have seen continued progress by those within the neuroscience community in formulating mathematical models of predictive coding, with ties to Kalman filtering , variational inference , and reinforcement learning . Likewise, the machine learning community has developed models in this direction, from the Helmholtz machine  to the more recent variational auto-encoder (VAE) [13, 14]. Nearly unbeknownst to the separate constituents, the similarities between these fields are becoming more pronounced. As the lines between these communities intersect, the exchange of ideas will hopefully foster further progress. The predictive coding community offers new ideas on modeling dynamics and action, whereas the machine learning community offers the ability to actually learn these models from large-scale, real-world data sets. The result could be another step in the path toward machine general intelligence as well as a better understanding of the computational underpinnings of biological intelligence.
We are already starting to see examples where predictive approaches are yielding improvements in machine learning. A prime example is DeepMind's UNREAL agent , which navigates virtual 3D environments while predicting aspects of its sensorimotor input and reward signal (see figure below). Adding these prediction tasks to the baseline reinforcement learning model allows the agent to reach higher performance on tasks much more quickly. This gets at the beauty of prediction, and generative modeling more generally; predicting the input provides a free learning signal. The learned representations can then be transferred to relevant tasks. When we eventually reach the point where we have highly capable machines that must interact in complex real-world environments, this, I feel, is the only sustainable approach for learning.
Current work in machine learning is still heavily reliant on supervised learning and reinforcement learning. The success of these areas has been bolstered by their clearly defined objectives, either matching the label distribution or maximizing reward. This allows the community to get behind a particular task or set of tasks and chip away at improving performance. Unsupervised methods, such as generative models, on the other hand, lack this benefit. Predicting inputs, in and of itself, is not a real task. And, therefore, by the definition given above, a purely predictive black-box agent is not intelligent, or at least it cannot be determined to be intelligent. Rather, the strength of generative modeling is in supporting supervised and reinforcement learning, particularly in environments where labels are not clearly defined or the reward structure is sparse or difficult to define. If we hope to achieve machine general intelligence, it will be through combining internal generative models with these other forms of learning, ideally on top of a rich sensorimotor input stream, all in the hopes of solving more difficult tasks.
 Rao R, Ballard D. (1999). Predictive coding in the visual cortex: a functional interpretation of some extra- classical receptive-field effects.
 Smith E, Lewicki M. (2006). Efficient auditory coding.
 Wacongne C, Labyt E, van Wassenhove V, Bekinschtein T, Naccache L, Dehaene S. (2011). Evidence for a hierarchy of predictions and prediction errors in human cortex.
 Mehta M. (2001). Neuronal dynamics of predictive coding.
 Shipp S, Adams R, Friston K. (2013). Reflections on agranular architecture: predictive coding in the motor cortex.
 Summerfield C, Egner T, Greene M, Koechlin E, Mangels J, Hirsch J. (2006). Predictive codes for forthcoming per- ception in the frontal cortex.
 Helmholtz H. (1860). Handbuch der physiologischen optik.
 Clark A. (2013). Whatever next? Predictive brains, situated agents, and the future of cognitive science.
 Rao R, Ballard D. (1997). A Kalman Filter Model of the Visual Cortex.
 Friston K. (2005). A theory of cortical responses.
 Friston K, FitzGerald T, Rigoli F, Schwartenbeck P, Pezzulo G. (2017). Active Inference: A Process Theory.
 Dayan P, Hinton G, Neal R, Zemel R. (1995). The Helmholtz machine.
 Kingma D, Welling M. (2013). Auto-Encoding Variational Bayes.
 Rezende D, Mohamed S, Wierstra D. (2014). Stochastic Backpropagation and Approximate Inference in Deep Generative Models.
 Jaderberg M, Mnih V, Czarnecki W, Schaul T, Leibo J, Silver D, Kavukcuoglu K. (2016). Reinforcement learning with unsupervised auxiliary tasks.