SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.02222 · ICML · 2023

The Benefits of Model-Based Generalization in Reinforcement Learning

Louis Kirsch, J Ürgen Schmidhuber, Kenny Young, Aditya Ramesh

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 3 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
kenjyoung/model_generalization_code_supplement canonical 3 of 3
FunctionStatusWhere it lives
gaussian_cross_entropy Ran kenjyoung/model_generalization_code_supplement/train_latent_model_DQN.py
code served (permissive licence) · get_code("47284906bb54d2c7")
gaussian_entropy Ran kenjyoung/model_generalization_code_supplement/train_latent_model_DQN.py
code served (permissive licence) · get_code("671ceafbe524c6d7")
log_gaussian_probability Ran kenjyoung/model_generalization_code_supplement/train_latent_model_DQN.py
code served (permissive licence) · get_code("978a84b0d0031064")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Model-Based Reinforcement Learning (RL) is widely believed to have the potential to improve sample efficiency by allowing an agent to synthesize large amounts of imagined experience. Experience Replay (ER) can be considered a simple kind of model, which has proved effective at improving the stability and efficiency of deep RL. In principle, a learned parametric model could improve on ER by generalizing from real experience to augment the dataset with additional plausible experience. However, given that learned value functions can also generalize, it is not immediately obvious why model generalization should be better. Here, we provide theoretical and empirical insight into when, and how, we can expect data generated by a learned model to be useful. First, we provide a simple theorem motivating how learning a model as an intermediate step can narrow down the set of possible value functions more than learning a value function directly from data using the Bellman equation. Second, we provide an illustrative example showing empirically how a similar effect occurs in a more concrete setting with neural network function approximation. Finally, we provide extensive experiments showing the benefit of model-based learning for online RL in environments with combinatorial complexity, but factored structure that allows a learned model to generalize. In these experiments, we take care to control for other factors in order to isolate, insofar as possible, the benefit of using experience generated by a learned model relative to ER alone.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2211.02222")
get_code_for_paper("2211.02222")
have("2211.02222")

Connect an agent — have() is free.