Model-based is an approach in reinforcement learning where agents are able to simulate scenarios and take actions on their own model of the environment, which is essentially a copy of it where the agent is free to try out strategies without interacting with the real environment.

This approach also enables the agents to think strategically, taking into consideration not only the best action to take next, but computing the reward of taking a sequence of consecutive actions. Model-based agents would outperform policy-based ones in a game of chess, for example, where there is an optimal sequence of actions to take on each state, not just one isolated action. The other approaches aren’t blind to the future — a Q-value is already a cumulative reward — but they have to learn it from transitions they already experienced, while a model-based agent can simulate the sequence on demand. In summary, they excel in environments where having a strategy is rewarded.

Because of this control over their own “copy” of the environment, which enables these models to simulate scenarios and plan future actions, they are usually very sample-efficient agents to train: they don’t need much sample data upfront, since their learnings come from interacting with this sandbox environment itself, and they need less interactions with the real one. This method of changing the model of the environment based on the agent’s learnings is known as dynamic model learning.

This characteristic also makes them very reliant on the quality of that model of the environment in order to achieve an optimal performance. If the copy of the environment is not compatible or maybe outdated, the agent won’t be able to converge — it will find the strategy that wins in the copy, not the one that wins in the real environment. They are usually very capable of generalizing, since the same model can be reused for a new task in the same environment.

This dependency on the quality of the model also means that some environments are just not suited for it. The best environments for this kind of approach are the ones where you are able to predict future actions or states, like in a game of Go (AlphaGo is model-based), but environments that are more chaotic are not easy to model, since a small error in the copy compounds into a useless simulation a few steps later.