TextWorld: A Learning Environment for Text-based Games
Marc-Alexandre Côté Microsoft Research Ákos Kádár Tilburg University Xingdi Yuan Microsoft Research Ben Kybartas McGill University Tavian Barnes Microsoft Research Emery Fine Microsoft Research James Moore Microsoft Research Matthew Hausknecht Microsoft Research Ruo Yu Tao McGill University Layla El Asri Microsoft Research Mahmoud Adada Microsoft Research Wendy Tay Microsoft Research Adam Trischler Microsoft Research
Abstract
We introduce TextWorld, a sandbox learning environment for the training and evaluation of RL agents on text-based games. TextWorld is a Python library that handles interactive play-through of text games, as well as backend functions like state tracking and reward assignment. It comes with a curated list of games whose features and challenges we have analyzed. More significantly, it enables users to handcraft or automatically generate new games. Its generative mechanisms give precise control over the difficulty, scope, and language of constructed games, and can be used to relax challenges inherent to commercial text games like partial observability and sparse rewards. By generating sets of varied but similar games, TextWorld can also be used to study generalization and transfer learning. We cast text-based games in the Reinforcement Learning formalism, use our framework to develop a set of benchmark games, and evaluate several baseline agents on this set and the curated list.
原文 arXiv:1806.11532;中英对照 + 大白话阅读 https://aha.fim.ai/paper/1806.11532v2