Curated summary
Retro Contest
OpenAI's Retro Contest: Testing RL Generalization on Unseen Game Levels
OpenAI launched the Retro Contest to measure whether reinforcement learning algorithms can generalize from prior experience rather than memorize a single environment. Contestants train on known Sonic the Hedgehog levels and are evaluated on custom levels they have never seen. Baseline results show that current RL algorithms fall well short of human performance, even with transfer learning, which nearly doubled PPO's score in the authors' experiments. The post also introduces Gym Retro, a platform for turning classic games into RL environments.
Why Conventional RL Evaluation Falls Short
- Typical RL research tests algorithms in the same environment used for training.
- This setup rewards memorization and favors algorithms with many hyperparameters that can be tuned to a specific task.
- The contest instead evaluates agents on previously unseen levels, which measures generalization.
Contest Design and Baseline Results
- The contest runs from April 5 to June 5, 2018.
- Contestants receive a training set of Sonic the Hedgehog levels, while the test set consists of custom levels created for the contest.
- At test time, agents get about 18 hours of gameplay (1 million timesteps) per never-before-seen level. Existing algorithms perform far below humans even with this budget.
- Baselines include Rainbow DQN, PPO, and JERK, a simple random-action search optimized for Sonic that replays its top-scoring action sequences.
- Pre-training PPO on the training levels and fine-tuning on the test levels nearly doubled its performance, making it stronger than the other baselines. The authors note this shows transfer learning can have a large and reliable effect.
- Humans still substantially outperform all algorithms. Humans trained for about two hours and played each test level for one hour, compared with 18 hours for the algorithms.
- The technical report "Gotta Learn Fast" describes the benchmark in detail, and the retro-baselines repository shows how to run the algorithms on the contest tasks.
Sonic Recordings Dataset
- The team released recordings of humans completing the contest's Sonic levels.
- These recordings can be used to start agents from random points along each level, which exposes them to areas they would rarely reach from the beginning.
- Researchers can also use the recordings to train agents from demonstrations.
Gym Retro
- Gym Retro wraps classic video games as RL environments. The beta includes 30 SEGA Genesis games and 62 Atari 2600 games from the Arcade Learning Environment.
- Genesis games suit transfer learning because levels share physics and object appearances while differing in layout and items. They are also more complex than Atari games, with over 500 times the RAM and a wider range of control inputs.
- Environments are defined through JSON files rather than C++ code, which makes adding new games easier than in the Retro Learning Environment.
- Compared with Universe, Gym Retro runs environments synchronously, can run faster than real time, and detects game state from memory rather than screen-based detection, which the authors found unreliable.
Related reading
Continue with another curated summary.