[Paper Review] Inverse reinforcement learning for video games
This paper proposes a novel adversarial inverse reinforcement learning (IRL) framework for high-dimensional video games, using a CNN-based generator and discriminator with reward normalization and a novel pixel-aware autoencoder to learn low-dimensional state representations. The method achieves near-expert performance on the Catcher game and scores points in Enduro, demonstrating that GAN-based IRL can be stabilized and scaled to Atari-like environments with proper architectural and training modifications.
Deep reinforcement learning achieves superhuman performance in a range of video game environments, but requires that a designer manually specify a reward function. It is often easier to provide demonstrations of a target behavior than to design a reward function describing that behavior. Inverse reinforcement learning (IRL) algorithms can infer a reward from demonstrations in low-dimensional continuous control environments, but there has been little work on applying IRL to high-dimensional video games. In our CNN-AIRL baseline, we modify the state-of-the-art adversarial IRL (AIRL) algorithm to use CNNs for the generator and discriminator. To stabilize training, we normalize the reward and increase the size of the discriminator training dataset. We additionally learn a low-dimensional state representation using a novel autoencoder architecture tuned for video game environments. This embedding is used as input to the reward network, improving the sample efficiency of expert demonstrations. Our method achieves high-level performance on the simple Catcher video game, substantially outperforming the CNN-AIRL baseline. We also score points on the Enduro Atari racing game, but do not match expert performance, highlighting the need for further work.
Motivation & Objective
- To close the gap between deep reinforcement learning's ability to optimize known rewards and its inability to learn rewards from expert demonstrations in high-dimensional video games.
- To address the instability of adversarial IRL in high-dimensional, discontinuous state spaces typical of Atari games.
- To improve sample efficiency of expert demonstrations by learning a low-dimensional, meaningful state representation from raw frames.
- To stabilize training through reward normalization and multi-iteration discriminator training on past generator versions.
- To enable IRL to achieve human-level performance in video games by overcoming challenges like multimodal demonstrations and sparse rewards.
Proposed method
- Adapted adversarial IRL (AIRL) to use convolutional neural networks (CNNs) for both generator (policy) and discriminator (reward network), enabling processing of high-dimensional image inputs.
- Introduced reward normalization to prevent reward drift during training, improving training stability in long-horizon games.
- Enhanced discriminator generalization by training on state-action pairs from multiple past generator iterations, reducing variance and overfitting.
- Designed a novel pixel-class autoencoder that prioritizes accurate reconstruction of small, dynamic objects (e.g., balls) in video game frames, improving state representation quality.
- Used the learned low-dimensional embedding as input to the reward network while keeping the policy network input as raw frames, improving sample efficiency.
- Trained the generator using Proximal Policy Optimization (PPO), with reward function updated iteratively via adversarial training to match expert behavior.
Experimental results
Research questions
- RQ1Can adversarial inverse reinforcement learning be stabilized and scaled to high-dimensional video game environments like Atari?
- RQ2How does using a low-dimensional state representation from a specialized autoencoder affect sample efficiency and performance in IRL for video games?
- RQ3To what extent does multi-iteration discriminator training reduce overfitting and improve policy performance in high-dimensional IRL?
- RQ4Can reward normalization prevent reward drift and improve training stability in long-horizon video game IRL?
- RQ5Why do standard autoencoders fail to represent key game elements (e.g., moving balls), and how can this be addressed in IRL?
Key findings
- The proposed method achieved near-expert-level performance on the Catcher game, significantly outperforming the CNN-AIRL baseline.
- The method scored points in the Enduro Atari racing game, demonstrating feasibility of IRL in complex video games, though performance remained below expert levels.
- Using a pixel-class autoencoder reduced the discriminator's false positive rate, even with smaller datasets, and produced sharper reconstructions of moving game objects than standard autoencoders.
- Reward normalization and multi-iteration discriminator training were critical for stabilizing training and preventing reward drift in high-dimensional environments.
- The low-dimensional state embedding from the autoencoder substantially improved sample efficiency, allowing better performance with fewer expert demonstrations.
- Despite improvements, performance on Enduro remained substantially below expert levels, indicating further challenges remain in scaling IRL to complex Atari games.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.