Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

OpenAI Gym

Gym standardizes reinforcement learning environments behind one shared interface

  • Problem Reinforcement learning results are hard to compare across papers, because there are no shared benchmarks with fixed tasks. Existing suites are scattered and checking generalization is costly.
  • Method OpenAI Gym packages tasks as environments that all expose the same reset and step calls. Agents stay ordinary user code, and each environment is versioned so results stay comparable.
  • Results The paper presents the toolkit and its design decisions, and reports no measured agent performance. Users share results and code on public scoreboards.

Why RL results are hard to compare

Deep reinforcement learning has made general methods such as policy gradients and Q-learning look promising on hard problems. Progress like this depends on shared benchmarks against which algorithms can be checked. Several benchmarks already exist, among them the Arcade Learning Environment for Atari 2600 games and the RLLab suite for continuous control.

OpenAI Gym aims to merge the strongest features of these earlier collections into one convenient package.

A benchmark score only means something if the task behind it stays fixed. In supervised learning a hidden test set guards against overfitting, but RL has no equally simple check. Measuring generalization in RL would mean running user code on many unseen environments, which is computationally expensive. So the Gym authors lean on shared code and written reports instead of a hidden test set.

A website hosts scoreboards for every environment, showing results that users submit. Users are encouraged to link their source code and give instructions for reproducing their results.

The episode loop behind the interface

The key idea is to standardize only the environment side, so every task exposes the same reset and step calls while the agent stays ordinary user code. Gym focuses on episodic reinforcement learning, in which the start state of each episode is drawn from a distribution and the episode ends at a terminal state. The goal in this setting is to maximize expected total reward per episode, and to do so in as few episodes as possible.

The code example runs one episode of 100 timesteps. Calling env.reset() samples a state and returns the first observation, and each env.step(action) returns the next observation, a reward, a done flag and an info object. The loop ends when done is True, which marks the terminal state, as in the final call where done99 is True.

Gym defines no agent class and prescribes no agent interface, so the agent object in the snippet is only for demonstration. This leaves room for two styles: an online learner that updates from the observation, reward and done flag at each step, and a batch learner that receives only observations while rewards are collected separately. Because only the environment is abstracted, the environment side stays the same whichever style the user picks.

Measuring learning on two axes

Sample complexity can be measured by counting the episodes needed before average performance exceeds a threshold. That threshold is set per environment, for example at 90% of the maximum performance of a very heavily trained agent.

Final performance on its own is a weak signal, because arbitrary amounts of computation can raise it. So a final score can say more about the computation spent than about the quality of the algorithm. Reporting sample complexity next to it separates how well an algorithm learns from how much it was allowed to spend.

Keeping results comparable over time

Environments are versioned, so any change to an environment comes with a higher version number. Results obtained before and after a change would otherwise be incomparable, and the version number keeps them apart. For example, the initial CartPole task is named Cartpole-v0, and a changed version would be named Cartpole-v1.

Without a hidden test set, one can't tell whether a method overfit to the tasks it was tested on, for instance through parameter tuning. Gym asks users to publish a Writeup describing the algorithm and its parameters, with a link to the code. With the source available, a reader can judge whether a result reflects the method or the particular tasks.

The scoreboards were inspired by Kaggle, but their aim is to share code and ideas rather than to run a contest. The authors treat the scoreboards as a benchmark for comparing methods, which is why they favour peer review over competition.

Monitoring and the shipped tasks

By default each environment is instrumented with a Monitor. The Monitor records every time step and every reset, and it can record video periodically. The data it collects is enough to produce learning curves, and the videos and curve data can be posted to the Gym website.

At the initial beta release the catalogue covered classic control and toy text, algorithmic tasks, Atari games, board games and 2D and 3D robots. The Atari tasks use the Arcade Learning Environment and can take screen images or RAM as input. The Go tasks are played on 9x9 and 19x19 boards, with the Pachi engine as the opponent. The robot tasks run on the MuJoCo physics engine, and some are adapted from RLLab.

Later additions include environments built on the Box2D physics engine and on the Doom game engine through VizDoom.

Open directions and limits

The authors name three planned extensions: a multi-agent setting, curriculum and transfer learning, and real-world operation. Curriculum and transfer tasks would be ordered sequences of increasingly difficult problems, solved one after another. Real-world operation would connect the Gym API to robotic hardware.

Gym leaves the agent side open, so each user has to build the agent interface. This whitepaper describes design choices and reports no measured agent performance on the tasks.

Paper info

Authors
Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, Wojciech Zaremba
Venue
arXiv · Preprint
First published
2016-6-5
Added
2026-11-11
Updated
2016-6-5
Version
v1
arXiv
1606.01540
Category
cs.LG · cs.AI
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, Wojciech Zaremba (2016). OpenAI Gym. arXiv:1606.01540v1. https://arxiv.org/abs/1606.01540v1

BibTeX
@misc{brockman2016openai,
  title = {{OpenAI Gym}},
  author = {Greg Brockman and Vicki Cheung and Ludwig Pettersson and Jonas Schneider and John Schulman and Jie Tang and Wojciech Zaremba},
  year = {2016},
  eprint = {1606.01540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.01540v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up