SandHouse
Pages and contents

World Models (Ha & Schmidhuber)

Problem

An architecture that supports unsupervised reinforcement learning of an environment. They divide the agent into a large world model and a small controller model. “We first train a large neural network to learn a model of the agent’s world in an unsupervised manner, and then train the smaller controller model to learn to perform a task using this world model”
Architecture
Three main components:

1. Vision component: a variational autoencoder (VAE)
2. A memory component: Mixture Density Network combined with a Recurrent Neural Network (MDN-RNN)
3. A decision-making component: A simple linear controller (C)

“In this experiment, the world model (V and M) has no knowledge about the actual reward signals from the environment. Its task is simply to compress and predict the sequence of image frames observed. Only the Controller (C) Model has access to the reward information from the environment.”

“To mimic natural selection, the cumulative reward can be defined to be the number of time steps the agent manages to stay alive during a rollout.”

Training Algorithm

1. Initialize M, C with random model parameters.
2. Rollout to actual environment N times. Save all actions and observations during rollouts to storage.
3. Train M to model P(xt+1,rt+1,at+1,dt+1 | xt,at,ht) and train C to optimize expected rewards inside of M.
4. Go back to (2) if task has not been completed.

Shortcomings

“The choice of using a VAE for the V model and training it as a standalone model also has its limitations, since it may encode parts of the observations that are not relevant to a task. After all, unsupervised learning cannot, by definition, know what will be useful for the task at hand. For instance, it reproduced unimportant detailed brick tile patterns on the side walls in the Doom environment, but failed to reproduce task-relevant tiles on the road in the Car Racing environment. By training together with a M model that predicts rewards, the VAE may learn to focus on task-relevant areas of the image, but the tradeoff here is that we may not be able to reuse the VAE effectively for new tasks without retraining” (12).

TAKESAWAY

• The image of the world around us, which we carry in our
head, is just a model. Nobody in his head imagines all
the world, government or country. He has only selected
concepts, and relationships between them, and uses those
to represent the real system. (Forrester, 1971)
• To handle the vast amount of information that flows through
our daily lives, our brain learns an abstract representation
of both spatial and temporal aspects of this information.
We are able to observe a scene and remember an abstract
description thereof (Cheang & Tsao, 2017; Quiroga et al.,
2005). Evidence also suggests that what we perceive at any
given moment is governed by our brain’s prediction of the
future based on our internal model (Nortmann et al., 2015;
Gerrit et al., 2013).
• They can quickly act on their predictions of
the future without the need to consciously roll out possible
future scenarios to form a plan