Skip to main content
QUICK REVIEW

[Paper Review] Reinforcement Learning Generalization with Surprise Minimization

Jerry Zikun Chen|arXiv (Cornell University)|Apr 26, 2020
Reinforcement Learning in RoboticsComputer Science28 references8 citations
TL;DR

This paper proposes a surprise minimization reward derived from a variational autoencoder (VAE) to improve generalization in deep reinforcement learning (RL) on procedurally generated environments. By training the VAE on state trajectories to predict future states and minimizing prediction surprise, the agent learns robust, stable policies that generalize better to unseen test levels in the ProcGen benchmark, outperforming standard PPO in training speed and test performance on BossFight, though overfitting occurs in CoinRun due to high representational capacity.

ABSTRACT

Generalization remains a challenging problem for deep reinforcement learning algorithms, which are often trained and tested on the same set of deterministic game environments. When test environments are unseen and perturbed but the nature of the task remains the same, generalization gaps can arise. In this work, we propose and evaluate a surprise minimizing agent on a generalization benchmark to show an additional reward learned from a simple density model can show robustness in procedurally generated game environments that provide constant source of entropy and stochasticity.

Motivation & Objective

  • To address the generalization gap in deep RL agents when tested on unseen, procedurally generated environments.
  • To investigate whether minimizing future surprises through a learned density model can improve robustness in entropic, stochastic environments.
  • To evaluate the effectiveness of surprise minimization as an intrinsic reward signal in enhancing generalization beyond standard RL algorithms.
  • To explore the impact of different density models and reward scaling hyperparameters on generalization performance.

Proposed method

  • A variational autoencoder (VAE) is trained online on state observations from the agent's experience to model the marginal state distribution under the current policy.
  • The VAE outputs a latent distribution (mean and variance) for each state, enabling the estimation of state reconstruction probability and thus surprise.
  • Surprise is computed as the negative log-likelihood of the reconstructed state, serving as an intrinsic reward signal to minimize future prediction errors.
  • The surprise reward is combined with the task reward using a hyperparameter α to balance intrinsic and extrinsic learning objectives.
  • The VAE and policy are jointly trained in a batched, online manner, with both updated per training step using the same experience batch.
  • The method is evaluated on two games from the ProcGen benchmark: CoinRun and BossFight, under standard PPO training.

Experimental results

Research questions

  • RQ1Can surprise minimization through a learned density model improve generalization in deep RL on procedurally generated environments?
  • RQ2How does the surprise minimization reward compare to standard PPO in terms of test performance on unseen levels?
  • RQ3Does the choice of density model (e.g., VAE vs. Gaussian) affect generalization performance and robustness?
  • RQ4How does the hyperparameter α, controlling the surprise reward magnitude, influence the balance between task learning and generalization?
  • RQ5In what ways does the intrinsic surprise signal help the agent adapt to environmental entropy during training and testing?

Key findings

  • The surprise minimization reward significantly accelerated learning speed in CoinRun, with PPO + VAE achieving higher task rewards earlier than baseline PPO.
  • On the BossFight environment, the PPO + VAE agent matched the performance of standard PPO on test sets after initial overfitting, indicating eventual generalization improvement.
  • In CoinRun, the PPO + VAE agent overfit to training levels due to the high representational capacity of the VAE, resulting in worse test performance despite faster training.
  • The surprise reward was most effective when balanced with the task reward, as overly dominant surprise signals degraded performance.
  • The method demonstrated that intrinsic surprise minimization can enhance robustness in entropic environments by encouraging stable, predictable behavior.
  • The results suggest that surprise minimization is more effective in tasks requiring sustained survival (e.g., BossFight) than in goal-seeking tasks (e.g., CoinRun), where memorization is more likely.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.