Curated summary
Universe
Universe: A Platform for Training AI on General Computer Tasks
OpenAI's Universe is a software platform for measuring and training AI agents across the full range of tasks a human can perform on a computer. Instead of relying on special APIs or access to program internals, Universe lets an agent view screen pixels and operate a virtual keyboard and mouse, the same way a person does. The release includes roughly a thousand environments, from Flash games and browser tasks to commercial games, with the goal of building a single agent that can quickly master unfamiliar tasks, a step toward general intelligence.
Motivation: Narrow AI and the Lack of Transferable Experience
- Existing systems such as AlphaGo achieve superhuman performance in one domain but cannot apply that knowledge elsewhere.
- Standard RL training starts agents from scratch and relies on tens of millions of random trials, so experience does not carry over between tasks.
- Progress toward general intelligence requires agents to train on a wide variety of tasks so they can build reusable world knowledge and problem-solving strategies.
Universe Infrastructure
- Each environment runs inside a Docker container that exposes a VNC server for pixels and keyboard/mouse input, plus a WebSocket server that sends rewards and auxiliary information and accepts control messages.
- The
universePython library acts as a VNC client and wraps each environment as a standard Gym environment, so any program can be turned into one without access to its source code. - Performance target: a single Python process drives 20 environments in parallel at 60 frames per second. A batch-oriented VNC client written in Go and loaded as a shared library keeps frame transfer efficient, reaching about 100ms latency, mostly from server-side encoding.
- Debugging and demonstrations are simple: an observer can attach a VNC client to watch training, and human demonstrations can be recorded by saving VNC traffic. These demonstrations can seed agents through behavioral cloning before RL fine-tuning.
Environment Types
- Atari games: Run asynchronously over the network, so agents must handle realistic lag (about 20ms observation and 10ms action lag on a cloud LAN, higher over the public internet).
- Flash games: About 1,000 are included (100 with reward functions), distributed with rightsholder consent. Selenium launches Chrome and clicks through menus automatically.
- Reward extraction: Since game memory formats vary widely, rewards are read from on-screen scores using a convolutional neural network OCR model. Off-the-shelf OCR like Tesseract struggled with game fonts and animated backgrounds.
- Browser tasks: Mini World of Bits is an 80-environment benchmark, analogous to MNIST, ranging from clicking a button to replying to an email. Realistic flight-booking tasks use cached site recordings to avoid live bookings.
Validation Experiments
- Pong: The agent learned to reach a score of +17 (out of 21) in about an hour, while humans on the same version averaged -11, showing that the variable latency still allows precise, fast reactions.
- Racing Flash games: RL worked after standard techniques such as reward normalization.
- Browser tasks: Some tasks with hard exploration problems were solved through behavioral cloning from human demonstrations.
- slither.io: Agents controlled 32 environments at 5 frames per second. Average reaction time was about 150ms over the public internet, compared with roughly 250ms for humans.
Running Universe
- Install Docker and the
universelibrary, then start a runtime such asuniverse.flashgames, which exposes VNC on port 5900 and WebSocket on port 15900. - The Gym interface is used the same way as in other Gym environments, with
env.reset(),env.step(), andenv.render(). - For large-scale use, an allocator service provisions runtimes on a Kubernetes cluster on demand.
Future Plans and Community Involvement
- A transfer learning benchmark was planned, to measure whether agents actually improve at general problem solving.
- The authors compared the project to ImageNet, whose error rate fell from 28% in 2010 to 3% in 2016. They hope Universe can follow a similar path of rapid progress.
- Planned contributions include granting permission for games and apps, training agents on Universe tasks, integrating new environments with forthcoming tools, and contributing human demonstrations.
- Partners include EA, Valve, Microsoft, NVIDIA, and many independent game studios. Microsoft's Project Malmo team was also planning an integration.
Practical Takeaway
Universe makes it possible to train and evaluate one agent across a broad set of real computer programs using only pixels and input events. Researchers who want to test general problem-solving ability, rather than narrow game performance, can start with the Docker runtimes and the Gym interface.
Related reading
Continue with another curated summary.