techlist.io

OpenAI

274 posts

openai.com/news

Filter by tag

OpenAI2018-10-012 min readCurated summary

FFJORD: Free-form continuous dynamics for scalable reversible generative models

Invertible generative models map points from a simple distribution to a complex one, but likelihood-based training usually forces restrictive architectures so that Jacobian determinants stay cheap to compute. This paper, FFJORD, sidesteps that constraint by defining the transformation as an ordinary differential equation and using Hutchinson's trace estimator to get a scalable, unbiased estimate of the log-density. The result is a continuous-time invertible model that allows unrestricted neural network architectures, and it achieves state-of-the-art performance among exact likelihood methods that also sample efficiently. ## The Restriction on Architectures - Likelihood-based training of invertible generative models needs cheap Jacobian determinants. - Meeting that requirement typically limits which network architectures can be used. ## Continuous-Time Dynamics and the Trace - When the transformation is specified by an ODE, the relevant quantity is the Jacobian trace rather than the determinant. - The trace is cheaper to handle, which opens the door to free-form network designs. ## Hutchinson's Estimator for Scalable Density Estimation - Hutchinson's trace estimator provides a scalable, unbiased estimate of the log-density. - The approach yields unbiased density estimation and one-pass sampling in a continuous-time invertible generative model. ## Experimental Results - The method is evaluated on high-dimensional density estimation, image generation, and variational inference. - It reaches state-of-the-art results among exact likelihood methods that support efficient sampling.

OpenAI2018-08-222 min readCurated summary

The International 2018: Results

# OpenAI Five's Second Showing at The International 2018 OpenAI Five lost two games to top professional Dota 2 players at The International in Vancouver, but it held a real chance of winning for the first 20 to 35 minutes of both matches. The games were far more competitive than the Benchmark series 17 days earlier, which was one-sided. The results show that Five's self-taught playstyle can compete with the best players in the world, even if it has not yet beaten them. ## What Changed Since the Benchmark - The opponents were significantly stronger professional teams. - Hero lineups were supplied by a third party rather than drafted by Five against humans. - The last major restriction from "Real Dota" gameplay was removed. ## The Matches - **Game 1 (vs. paiN Gaming):** Lasted about 51 minutes, compared with a typical 45. The humans started strong, Five recovered ground in the mid-game, and then lost to a series of high-level strategic pushes. paiN's players average about $350,000 in career tournament earnings. - **Game 2 (vs. a team of Chinese superstar players):** Featured back-and-forth teamfights and lasted 45 minutes before Five lost. The players average about $1 million in tournament earnings each. ## The Courier Rule Change - The Benchmark gave each hero its own invulnerable courier, which let Five keep attacking by constantly delivering regeneration items. This produced its signature high-pressure style, but many observers felt it did not resemble "Real Dota." - Training switched to a single, mortal, scripted team courier six days before The International. The team expected this to temporarily reduce performance, but community feedback suggested the single-courier games would be more exciting. ## Next Steps - OpenAI does not believe the courier change caused the losses. It plans more training, bug fixes, and removal of the remaining scripted logic in the model. - Beyond Dota, the team sees the project as a safe sandbox for building AI systems that can later support more advanced applications.

OpenAI2018-08-122 min readCurated summary

Large-scale study of curiosity-driven learning

Curiosity-driven learning, where an agent is rewarded for its own prediction error instead of hand-designed environment rewards, is tested here at a large scale. Across 54 standard benchmarks, including the Atari suite, purely curiosity-driven agents perform surprisingly well and often align closely with the games' extrinsic rewards. The study also finds that random features are enough for many game benchmarks, but learned features generalize better. It notes that prediction-based rewards break down in stochastic environments. ## Curiosity as an Intrinsic Reward - Reinforcement learning usually depends on extrinsic rewards that engineers must hand-design and densely annotate for each environment, which does not scale. - Curiosity is an intrinsic reward that uses the agent's prediction error as its reward signal. - The study examines purely curiosity-driven learning, with no extrinsic rewards at all. ## Scale and Results Across Benchmarks - The authors ran the first large-scale study of this approach across 54 standard benchmark environments, including the Atari game suite. - Performance was surprisingly good, and the intrinsic curiosity objective aligned well with the hand-designed extrinsic rewards in many games. ## Feature Spaces for Computing Prediction Error - Random features are sufficient for many popular RL game benchmarks. - Learned features generalize better, for example to novel levels in Super Mario Bros. ## Limitations in Stochastic Settings - Prediction-based rewards have clear limitations when environments are stochastic, since unpredictable randomness can be mistaken for novelty worth exploring. ## Practical Takeaway If hand-designing rewards is impractical, curiosity is a viable intrinsic signal for many games. Choosing the feature space matters, and learned features are the safer choice when generalization is needed. Developers should be cautious about using it in highly stochastic environments.

OpenAI2018-08-053 min readCurated summary

OpenAI Five Benchmark: Results

# OpenAI Five Defeats Pro Dota Players in a Live Benchmark, With One Loss OpenAI Five won a best-of-three against a team of 99.95th percentile Dota players, four of whom had competed professionally, in front of a live audience and 100,000 concurrent livestream viewers. The human team took game three after the audience adversarially selected Five's heroes. The author presents the event as a step toward AI systems that can handle the complexity and uncertainty of the real world. ## Audience and Match Results - The day opened with a volunteer audience team playing the first public match, which Five won in under 14 minutes. An evenly matched game typically lasts about 45 minutes. - Five won game one in 21 minutes 37 seconds and game two in 24 minutes 53 seconds. - In game three, the audience drafted an adversarial lineup. Five started with a 2.9% predicted win probability, reached 17% at one point, and lost after 35 minutes 47 seconds. ## Drafting Through Win Probability - OpenAI Five gained a drafting capability, which is considered one of the hardest parts of Dota because heroes interact in complex ways. - The team added a win-probability output to the network in late June for introspection. They then used it to evaluate drafts: each draft is scored by the prediction on the first frame of a game with that lineup. - In about one week, the team built a fake frame for each of the 11 million possible team matchups and wrote a tree search to find the optimal draft. - After the game one draft, Five predicted a 95% win probability, even though human observers viewed the matchup as roughly even. After the game two draft, it predicted 76.2%. ## Training Approach - Instead of retraining from scratch for each major revision, this version carried parameters forward from June 9th across six revisions, with each revision initialized from the previous one. - The team built "surgery" tooling to map old parameters onto new network architectures. For example, when warding was introduced, a shared action head for movement and ward placement caused Five to drop wards while moving. The team split the head into two clones initialized with the same parameters. - Estimated training compute: - 1v1 model: 8 petaflop/s-days - June 6th model: 11 petaflop/s-days - Aug 5th model: 35 petaflop/s-days (figures revised after a more rigorous analysis in April 2019) - The team also released its latest network architecture. ## Inspecting the Model - An output predicting a hero's future position offers insight into the model's planning. In the example, the model predicted Sven's location six seconds ahead. - Additional outputs can be trained to predict quantities such as last hits and tower counts. - The author notes that making the model function required working through many bugs and unexpected behaviors. ## Next Steps The team plans to play a team of professionals at The International later that month, with game details to be announced. ## Conclusion The benchmark shows that OpenAI Five can handle a complex, uncertain competitive environment, including adversarial conditions, and the team's introspection tools make its reasoning partly visible to observers. The post frames the upcoming professional match as the next test of this approach.

OpenAI2018-07-294 min readCurated summary

Learning dexterity

# Learning Dexterity: Training a Robot Hand Entirely in Simulation OpenAI's Dactyl system trains a Shadow Dexterous Hand to reorient physical objects using a reinforcement learning policy learned entirely in simulation, with no fine-tuning on the real robot. The core idea is domain randomization: rather than trying to make the simulator physically accurate, the policy is trained across a wide distribution of randomized physical and visual parameters, so that the real world becomes just one more variation it has already seen. The result is a robot that rediscovers human-like grasps and manipulates blocks and other shapes on hardware, reaching up to 46 to 50 consecutive rotations with vision or motion-tracking feedback. ## The Problem - Dexterous manipulation has lagged behind locomotion in robotics, and the Shadow hand has 24 degrees of freedom compared to 7 for a typical arm. - The robot must handle noisy, delayed sensor readings, occluded fingertips, and unobservable properties such as friction and slippage. - Reinforcement learning works well in simulation but has produced limited results on physical robots. ## Why Not Simulate Realistically or Train on Hardware - Simulators can generate enough data to train complex policies, but manipulation physics (contact, deformable fingertips, tendon stretching, rolling resistance) is hard to model accurately. - Training directly on hardware would take years of real experience for a task like object reorientation. - Domain randomization sidesteps this tradeoff: the simulator prioritizes variety over realism, so policies generalize to the real world. ## Control and Vision Architecture - **Control policy:** An LSTM lets the network infer environment dynamics from its history. It achieved about twice as many rotations as a memoryless policy. Training used Rapid, the scaled PPO implementation from OpenAI Five, on 6,144 CPU cores and 8 GPUs, collecting about 100 years of experience in 50 hours. - **Vision network:** A convolutional network takes three RGB camera views and estimates the object's pose. It was trained only on simulated images rendered in Unity with randomized visual properties. Multiple cameras resolve occlusion and ambiguity. - The two networks are independent and combined at deployment, so the hand can manipulate an object by seeing it. ## Emergent Strategies - Dactyl discovered grasp types from the GRASP taxonomy (tip pinch, palmar pinch, tripod, quadpod, power grasp, and five-finger precision grasp) without being taught them explicitly. - For tip pinches, it favored the thumb and little finger, whereas humans typically use the index or middle finger. The robot's extra little-finger degree of freedom likely explains this choice. ## Results - Randomized policies achieved far more rotations than non-randomized ones. A non-randomized policy managed a median of 0 successes, while the fully randomized policy reached a median of 11.5 with vision and 13 with motion tracking, and a maximum of 46 and 50 respectively. - Vision-based pose estimation performed nearly as well as direct motion-tracking readings. - Without randomization, a policy needed about 3 years of simulated experience to rotate an object. Full randomization required about 100 years, and most of the training time went into robustness to dynamics. ## Surprises and Negative Results - **Tactile sensing was unnecessary.** The policy used only fingertip locations and object pose, ignoring the available touch sensors, because a limited sensor set was easier to model in simulation. - **Randomizations transferred across shapes.** Randomizations designed for a block worked on an octagonal prism without modification. A sphere performed poorly, likely because rolling behavior was not randomized. - **Systems engineering mattered as much as algorithms.** One engineer's faster laptop masked a timing bug that hurt performance for everyone else. - **Faster control did not help.** Reducing the action interval from 80 ms to 40 ms increased training time without improving real-world performance. - **Real data did not help vision.** Simulator-only training matched the accuracy of mixed sim-and-real training, and real tracking data suffered from latency, measurement error, and fragility to configuration changes. ## Conclusion Dactyl demonstrates that scaling domain randomization and recurrent reinforcement learning can solve dexterous manipulation tasks that were previously out of reach for robotics, using a simulation-first pipeline. The authors frame it as one step in a cycle of developing a learning algorithm, scaling it on hard simulated tasks, and transferring the result to the real world.

OpenAI2018-07-252 min readCurated summary

Variational option discovery algorithms

This paper applies variational inference to option discovery in reinforcement learning and shows that these methods have a close connection to variational autoencoders (VAEs). The authors introduce VALOR, a new method built on that connection, and add a curriculum that increases the number of contexts the agent sees as its performance improves. The curriculum stabilizes training for VALOR and earlier variational option discovery methods, letting a single agent learn many more modes of behavior than a fixed context distribution allows. ## Connecting Option Discovery to Variational Autoencoders - The authors draw a tight link between variational option discovery methods and VAEs. - This connection leads to VALOR (Variational Autoencoding Learning of Options by Reinforcement). - In VALOR, the policy acts as the encoder, mapping contexts sampled from a noise distribution into trajectories. - A decoder then tries to recover the original context from the complete trajectory. ## Curriculum Over Contexts - The number of contexts the agent trains on grows over time. - The set expands only when the decoder shows the agent performs well enough on the current contexts. - The authors report that this simple schedule stabilizes training for VALOR and prior variational methods. - With the curriculum, a single agent can learn many more distinct behaviors than it can under a fixed context distribution. ## Limitations and Downstream Use - The authors also examine fundamental limitations of the general variational option discovery approach. - They investigate whether the learned options can be applied to downstream tasks.

OpenAI2018-07-084 min readCurated summary

Glow: Better reversible generative models

# Glow: Reversible Generative Models with Invertible 1x1 Convolutions Glow is a reversible, flow-based generative model that simplifies the earlier RealNVP architecture by replacing fixed channel permutations with learned invertible 1x1 convolutions. The change yields significant log-likelihood gains on standard benchmarks while producing realistic high-resolution images and supporting efficient sampling. The authors argue that flow-based models, despite receiving far less attention than GANs and VAEs, offer exact inference, parallel synthesis, and a useful latent space for manipulating data. ## Why Flow-Based Models Are Worth Considering Generative models learn the structure of a dataset so they can produce outputs that resemble it, with applications in speech synthesis, text analysis, semi-supervised learning, and model-based control. Flow-based models, an extension of NICE and RealNVP, offer several advantages over alternatives: - **Exact inference and likelihood:** VAEs only approximate latent variables, and GANs have no encoder at all. Reversible models compute latents exactly and optimize the true log-likelihood rather than a lower bound. - **Efficient inference and synthesis:** Autoregressive models like PixelCNN are reversible but hard to parallelize for sampling. Flow-based models parallelize well for both directions. - **Useful latent spaces:** Reversible models and VAEs allow interpolation and meaningful edits of existing datapoints, which GANs and autoregressive models make difficult. - **Memory savings:** Gradients in reversible networks need memory constant in depth rather than linear, per the RevNet work. ## Benchmark Results Glow improves on RealNVP, the previous best flow-based result, on most benchmarks, measured in bits per dimension (lower is better): - CIFAR-10: 3.49 (RealNVP) vs. 3.55 (Glow), a slight regression - ImageNet 32x32: 4.28 vs. 4.09 - ImageNet 64x64: 3.98 vs. 3.81 - LSUN bedroom: 2.72 vs. 2.38 - LSUN tower: 2.81 vs. 2.46 - LSUN church outdoor: 3.08 vs. 2.67 Sampling a 256x256 image takes about 130ms on an NVIDIA 1080 Ti. Sampling from a reduced-temperature model (scaling latent standard deviation by 0.7) gives higher-quality samples. ## Latent Space Applications - **Interpolation:** Encoding two real face images and sampling intermediate points produces smooth transitions. Because the inputs are arbitrary faces rather than model samples, this suggests the model covers the full target distribution. - **Attribute manipulation:** The model trains without labels. Afterward, averaging latent encodings of inputs with and without an attribute (such as blonde hair) yields a direction vector that can shift new inputs toward that attribute. This needs only a small labeled set and no retraining, unlike GAN-based or Cycle-GAN approaches. ## Architectural Changes from RealNVP RealNVP alternates checkerboard-masked layers with channel-wise masked layers. Glow removes the checkerboard layers and changes the channel-wise layers in two ways: - **Learned 1x1 convolutions replace fixed permutations.** RealNVP's channel-wise coupling splits inputs into halves that update each other in a rigid bipartite pattern. Replacing the fixed reversal with a fixed shuffle improved performance, and learning the permutation improved it further. Since a permutation is a square linear transformation, it can be expressed as a 1x1 convolution and optimized with gradient descent. The weights start as a random rotation matrix and are efficiently computed via LU decomposition. - **Activation normalization replaces batch normalization.** This layer applies a learned per-channel shift and scale, initialized from a first minibatch. It allows a minibatch size of 1 for large images and lets the model scale up. ## Scaling Up Gradient checkpointing and other optimizations make training feasible at larger scale. The demo model was trained with Horovod across 5 machines of 8 GPUs each and has over 100 million parameters. ## Open Directions The authors identify two areas for future work: - **Likelihood competitiveness:** Autoregressive models and VAEs still score better on log-likelihood, but they sacrifice efficient sampling and exact inference, respectively. Combining these model families could capture the strengths of each. - **Efficiency:** The face model uses roughly 200M parameters and about 600 convolution layers, which is expensive to train. Shallower models learn long-range dependencies poorly, so self-attention or progressive training could reduce compute cost. Code and the paper are available on GitHub for anyone who wants to build on the work.

OpenAI2018-07-034 min readCurated summary

Learning Montezuma’s Revenge from a single demonstration

# Learning Montezuma's Revenge from a Single Demonstration OpenAI trained an agent to score 74,500 on Montezuma's Revenge from a single human demonstration, a result better than any previously published. The method starts each reinforcement learning episode from a state in the demonstration and gradually moves the starting point back to the beginning of the game, optimizing the game score directly with PPO. This turns one hard exploration problem into a curriculum of short, easier subtasks. ## Why Exploration Is the Bottleneck - Model-free methods like policy gradients and Q-learning explore by taking random actions, which only works when rewards are frequent enough. - Games like Montezuma's Revenge require long, precise action sequences before any reward appears. If each of N actions has a fixed probability, the expected time to the first reward grows exponentially in N. - Getting the first key, for example, requires a chain of steps (down ladders, down a rope, jump a skull, climb a ladder), so the overall probability is far smaller than any single step's. ## Curriculum Built from Demonstration States - Each episode starts from a recorded demonstration state. Early in training, the agent starts near the end of the demonstration, where the remaining task is short. - Once the agent matches or beats the demonstrator's score on the remaining segment in at least 20% of rollouts, the starting point moves earlier in time. - This continues until the agent plays from the true start of the game without using the demonstration. - Because each stage is only slightly harder than the last, the agent's chance of success stays high, and the required exploration scales linearly rather than exponentially with the length of the action sequence. - The authors note that earlier work had proposed resetting to demonstration states, but the gradual backward curriculum was essential to getting a benefit from the demonstration. ## Comparison with Imitation Approaches - Prior DeepMind work imitated demonstrations, either by reproducing states from a YouTube video or by combining Q-learning with a likelihood term on demonstrated actions. - Those methods need less environment control, but this approach requires resetting the environment to arbitrary states and access to full game states from the demonstration. - Optimizing the game score directly avoids overfitting to a possibly suboptimal demonstration and allows the agent to discover strategies the demonstrator did not use. The authors also suggest this could help in multiplayer settings where opponents differ from the demonstrator. ## Remaining Challenges - **Generalization:** The agent rarely reproduces the exact demonstrated states because of frameskip differences and action randomness, so it must generalize to near-identical states. This works well for Montezuma's Revenge but much less well for Gravitar and Pitfall, which likely need better vision. - **Exploration–exploitation balance:** The PPO entropy coefficient, learning rate, and reward scaling required careful tuning. Gravitar and Pitfall never found workable hyperparameters for the full curriculum, and some runs for Montezuma's Revenge failed to converge. - **Robustness:** The trained policy does not yet generalize as well as a human. With sticky actions (repeat probability 0.25) it averages 10,000 points, and with random actions (probability 0.01) it averages 8,400. Humans also degrade under such perturbations, but less so. These perturbed scores still exceed previously published results. - **Start-state variation:** Starting with 0 to 30 random no-ops did not significantly hurt performance, with most rollouts reaching the demonstration's final score. ## Takeaway Decomposing a long-horizon sparse-reward problem into a curriculum of subtasks, seeded by demonstration states and optimized for the true reward, can solve tasks that pure random exploration cannot. The authors hope future RL algorithms will be more robust to noise and hyperparameter choices.

OpenAI2018-06-245 min readCurated summary

OpenAI Five

# OpenAI Five: Reaching Amateur-Level Dota 2 with Scaled Self-Play OpenAI's team of five neural networks, OpenAI Five, had begun beating amateur human teams at Dota 2 by June 2018, with a planned match against top professionals in August. The post argues that Dota 2, with its long time horizons, partial observability, and vast action and observation spaces, is a meaningful step beyond games like Chess and Go. It concludes that large-scale self-play with a modern policy-gradient algorithm can produce long-horizon planning without fundamentally new RL methods. ## Why Dota 2 Is Hard - **Long time horizons:** A typical game runs about 45 minutes at 30 frames per second, or roughly 80,000 ticks. The model observes every fourth frame, producing about 20,000 decisions per game, compared with fewer than 40 moves in a typical chess game and around 150 in Go. - **Partial observability:** Units see only their immediate surroundings, and the rest of the map is hidden by fog of war. Strong play requires inferring enemy positions and predicting opponent strategy. - **Large action space:** Each hero has dozens of actions, many of which target units or ground positions. The team discretized this into 170,000 possible actions per hero, with about 1,000 valid at any tick, compared with 35 in chess and 250 in Go. - **Large observation space:** The model receives about 20,000, mostly floating-point, values through Valve's Bot API, compared with roughly 70 enumeration values for a chess board and about 400 for Go. - **Complex, changing rules:** The game logic spans hundreds of thousands of lines of code, takes milliseconds per tick to execute, and receives updates about every two weeks. ## Training Approach - OpenAI Five uses a scaled-up version of Proximal Policy Optimization, trained on 256 GPUs and 128,000 CPU cores. Each hero has its own LSTM, and no human data is used. Training starts from random parameters. - The system plays about 180 years of games against itself each day. - The discount factor γ was annealed from 0.998, a half-life of about 46 seconds, to 0.9997, a half-life of about five minutes. For comparison, the longest horizons in the PPO, Rainbow, and Observe and Look Further papers had half-lives of 0.5 seconds, 4.4 seconds, and 46 seconds, respectively. - Each network has a single 1024-unit LSTM that outputs actions through several independent heads, such as action delay, action selection, and grid coordinates. - Although the model cannot see shrapnel zones, which are visible to human players, it learned to walk out of them by observing its health dropping. ## Exploration and Reward Design - Training is 80% self-play against current versions and 20% against past versions, which prevents strategy collapse. - Learned behavior progresses over time. Within hours, laning and farming emerge. Within days, the agents follow basic human strategies such as stealing runes and rotating across the map. With further training, they learn high-level tactics like five-hero pushes. - Domain randomization, which varies unit health, speed, and starting level during training only, forced the agent to explore strategy space. A "lane assignment" randomization penalizes straying from assigned lanes until a random point in the game. - The reward is based on metrics humans track, including net worth, kills, deaths, assists, and last hits. Each agent's reward has the opposing team's average subtracted to discourage positive-sum outcomes. - Item and skill builds are hardcoded and chosen randomly from a set. ## Coordination Without Communication - The heroes have no explicit communication channel. Instead, a "team spirit" hyperparameter, annealed from 0 to 1 during training, weights each hero's individual reward against the team average. ## Results - The system beat a team of OpenAI employees, Valve employees, and amateur and semi-pro teams with restricted hero pools. - The June 6 version decisively won against three teams and won two of three informal scrimmage games against two others. - Observed strategies included sacrificing the safe lane to control the enemy's safe lane, accelerating the early-to-mid transition through ganks and coordinated tower pushes, and giving support heroes early resources. - The team reports two surprising findings. A binary win/loss reward trained far more slowly and plateaued, and creep blocking emerged in a 2v2 model without any explicit reward. ## Caveats and Differences from Humans - The AI has advantages in reaction time (80ms on average) and perfect information access, since it reads exact values that humans must check manually. Its action rate is around 150 to 170 per minute, with a theoretical maximum of 450. - The restricted version used for testing excludes wards, Roshan, invisibility, summons, and several items, and it uses a fixed mirror matchup of five heroes. The team states these restrictions are temporary and planned for removal. - The team noted that the bot's objective prioritization resembled professional strategy, though its last-hitting was only around median. ## Conclusion The authors suggest that long-horizon planning can emerge from scaled reinforcement learning without new algorithmic breakthroughs. They plan to measure success by applying similar methods to real-world tasks.

OpenAI2018-06-213 min readCurated summary

Retro Contest: Results

# OpenAI Retro Contest Results: Fast Learning and Generalization in Sonic The first OpenAI Retro Contest, which challenged participants to build reinforcement learning agents that generalize from prior experience, concluded with top results coming from tuned or extended versions of existing algorithms like PPO and Rainbow rather than contest-specific tricks. The best score reached 4,692 against a theoretical maximum of 10,000, which the author takes as evidence that the Sonic benchmark is a meaningful problem for the community to keep working on. The results also show that the winning approaches are general machine learning methods, so the benchmark cannot easily be gamed. ## Contest Scale and Evaluation Design - 923 teams registered over two months, and 229 submitted solutions to the leaderboard. - Automated systems ran 4,448 evaluations, about 20 submissions per team. - The public leaderboard used five low-quality levels built with a level editor. Because contestants saw scores and videos, they could overfit to it. - To prevent this, the final evaluation used 11 custom levels made by skilled level designers. The latest submission from each of the top 10 entrants was tested, with each agent run three times per level using different random seeds to reduce noise. - The ranking shifted only modestly in the final evaluation. ## Winning Approaches **Dharmaraja (1st, score 4,692)** - A variant of joint PPO with three main changes: RGB images instead of grayscale, a slightly larger action space with more common button combinations, and an augmented reward that favors visiting new states, judged by a perceptual hash of the screen. - Attempts that did not help included DeepMimic, YOLO-based object detection, and Sonic-specific heuristics. **Mistake (2nd, score 4,446)** - Built on the Rainbow baseline, with a tuned n-step value for n-step Q-learning, an extra CNN layer that slowed training but improved results, and a lower DQN target update interval. - Joint training with Rainbow reduced performance. The agent trained from scratch and timed out at 12 hours, which is why its learning curves end early. **Aborg (3rd, score 4,430)** - A solo effort building on joint PPO, adding more training levels from the Game Boy Advance and Master System Sonic games, a different network architecture, and hyperparameters tuned for fast fine-tuning. - The first 150K fine-tuning timesteps were unstable, so a learning rate adjustment fixed the performance drops. - Optimizers, MobileNetV2, and color images did not help. Dharmaraja and Aborg fine-tuned from a pre-trained network with PPO, while Mistake trained from scratch with Rainbow DQN. ## Awards for Write-ups and Community Support - **Best Write-up Prize** went to Dylan Djian, Oleg Mürk, and Felix Yu for essays describing the approaches they tried. - **Best Supporting Material** went to Tristan Sokol for tutorials, scripts, and a trajectory visualization tool that helped other contestants. ## Lessons and Next Steps - Several top solutions used transfer learning by fine-tuning from training levels, which the authors had expected. - Some top entries were simply well-tuned baseline algorithms, which underscores how much hyperparameters matter in RL, especially for Rainbow DQN. - Contests can challenge prevailing assumptions because many approaches get tried, but this one mostly confirmed what OpenAI already knew worked. - A second round is planned for a few months later, with the authors hoping more unconventional approaches will succeed.

OpenAI2018-06-161 min readCurated summary

Learning policy representations in multiagent systems

Modeling agent behavior is central to understanding complex phenomena in multiagent systems, but prior work has mostly been task-specific and reliant on hand-engineered, domain-specific knowledge. The authors propose a general framework that models agent behavior from only a handful of interaction data by treating the problem as representation learning. They show that it works across a high-dimensional competitive continuous-control environment and a cooperative communication environment. ## A General Framework for Agent Modeling - The approach applies to any multiagent system rather than a single task or domain. - It needs only a small amount of interaction data. - Agent modeling is cast as a representation learning problem, in which each agent's policy is encoded as a learned representation. ## A Novel Objective and Unsupervised Learning Algorithm - The objective combines ideas from imitation learning and agent identification. - An algorithm learns representations of agent policies without labeled supervision. ## Empirical Evaluation - **Competitive environment:** a high-dimensional continuous-control setting. - **Cooperative environment:** a setting where agents communicate. - **Tasks:** the learned representations are tested on supervised predictive tasks, unsupervised clustering, and policy optimization with deep reinforcement learning.

OpenAI2018-06-011 min readCurated summary

GamePad: A learning environment for theorem proving

GamePad is a learning environment for applying machine learning to theorem proving in the Coq proof assistant. Interactive provers like Coq let users build machine-checkable proofs one step at a time, which makes it possible to explore automated proving with human supervision. The authors use GamePad to synthesize proofs for a simple algebraic rewrite problem and train baseline models on a formalization of the Feit-Thompson theorem. ### The GamePad Environment - GamePad connects machine learning methods to the Coq proof assistant. - Coq's step-by-step proof construction gives a natural structure for learning, since each proof move is explicit and checkable. ### Baseline Tasks for Tactic-Based Proving - **Position evaluation:** Predicting the number of proof steps remaining from a given proof state. - **Tactic prediction:** Predicting the next proof step (tactic) to apply. - Both tasks arise naturally in tactic-based theorem proving, which is how Coq proofs are built. ### Experiments - **Simple algebraic rewriting:** GamePad is used to synthesize proofs for this problem. - **Feit-Thompson theorem:** Baseline models are trained on a formalization of this large result, which is the paper's more demanding test case.

OpenAI2018-05-243 min readCurated summary

Gym Retro

# Gym Retro: A Platform for Generalization Research Across Games OpenAI is releasing the full version of Gym Retro, a reinforcement learning research platform that expands its public game library from roughly 100 titles to over 1,000 across several emulators. The release also includes the integration tool used to add new games. The authors argue that most RL research has focused on solving single tasks, and that a large, varied game collection makes it possible to study generalization between games that share concepts but differ in appearance. The post also shows that simple score-based rewards can lead agents to exploit games rather than complete them, and that current algorithms struggle with sparse rewards and long-horizon planning. ## Scope of the Release - The library grows from about 70 Atari and 30 Sega games to more than 1,000 titles. - Supported consoles include the Sega Genesis, Sega Master System, NES, SNES, and Game Boy, with preliminary support for the Game Gear, Game Boy Color, Game Boy Advance, and NEC TurboGrafx. - Some integrations in the `data/experimental` folder are in beta, and the authors ask for bug reports. - The new code lives on a branch and will not be merged until the ongoing Retro Contest ends, so contestants' code does not break. ## Motivation: From Single Tasks to Generalization - The Retro Contest and its technical report focus on generalizing across levels of one game (Sonic the Hedgehog). - The full dataset extends this to generalization across different games, which is a substantially harder problem. - The authors hope solutions developed by Retro Contest participants can scale to the full dataset. ## Integration Tool - Given a game's ROM, the tool creates save states, locates memory addresses, and defines scenarios that RL agents can solve. - It records and plays back movie files that store only the starting state and button inputs, not every frame. This keeps files small. - Movie files help visualize agent behavior and can store human demonstrations as training data. - An integrator's guide accompanies the tool for developers adding new games. ## Reward Farming - Agents often learn to maximize in-game score instead of completing the intended objective. In Cheese Cat-Astrophe and Blades of Vengeance, agents became trapped in loops that rapidly accumulated points. - Simple reward functions, such as maximizing score, can produce unintended behavior, a phenomenon the authors have discussed before. - Algorithms like PPO perform well on games with dense rewards, where points come frequently and difficulty lies mainly in reaction time. Gradius is an example, since points come from each enemy shot and dodging is handled frame by frame. - Existing algorithms struggle with sparse rewards or tasks that require planning several seconds ahead. Many games in the dataset fall into this category, so tackling the full dataset will likely require new techniques.

OpenAI2018-05-153 min readCurated summary

AI and compute

# AI Compute Has Grown 300,000x Since 2012, and the Trend Shows No Sign of Stopping OpenAI's analysis finds that the compute used to train the largest AI models has doubled roughly every 3.4 months since 2012, far outpacing Moore's Law's two-year doubling period. The authors argue that compute is the most measurable driver of AI progress, that the trend is likely to continue for several more years given hardware innovation and economic incentives, and that policymakers and researchers should prepare now for systems far beyond current capabilities. An addendum extends the data back to 1959, revealing a second, slower era. ## How Compute Is Measured - The analysis counts actual neural net operations (adds and multiplies) used to train a single model, not peak hardware FLOPS or total datacenter capacity. - The unit is the petaflop/s-day (about 10²⁰ operations), a convenience similar to kW-hr for energy. - Per-model compute differs from total bulk compute because parallelism limits constrain how large a single training run can be. ## Four Eras of Training Compute - **Before 2012:** GPUs were rarely used for machine learning, so many results were hard to achieve at all. - **2012 to 2014:** Training across many GPUs was uncommon. Most results used 1 to 8 GPUs rated at 1 to 2 TFLOPS, totaling 0.001 to 0.1 pfs-days. - **2014 to 2016:** Large-scale runs used 10 to 100 GPUs rated at 5 to 10 TFLOPS, reaching 0.1 to 10 pfs-days. Data parallelism showed diminishing returns, limiting the value of bigger runs. - **2016 to 2017:** Techniques such as huge batch sizes, architecture search, and expert iteration, combined with TPUs and faster interconnects, raised those parallelism limits. AlphaGo Zero is the most visible example. ## Drivers of the Trend - The growth is roughly a 10x increase per year. - Custom hardware (GPUs and TPUs) delivers more operations per second per dollar. - Most of the growth came from researchers finding ways to use more chips in parallel and being willing to pay for them. ## Outlook and Limits - **Reasons to expect continuation:** AI-specific chip startups promise large gains in FLOPS per watt over one to two years. Recent algorithmic advances, such as architecture search and massively parallel SGD, could combine multiplicatively. - **Eventual constraints:** Cost will limit parallelism, and physics will limit chip efficiency. The largest training runs today use hardware costing single-digit millions of dollars, though amortized costs are lower. - **Room to grow:** Most neural net compute is spent on inference rather than training, so companies could repurpose large chip fleets for training. The world's total hardware budget is about $1 trillion per year, so absolute limits remain distant. - **Caveat:** The authors acknowledge that past trends cannot reliably predict how long growth will last or what will happen along the way. ## Addendum: Compute Across 1959 to 2012 - Extending the data back to the 1959 perceptron reveals two eras. From 1959 to 2012, compute roughly followed Moore's Law, with a doubling time of about two years. From 2012 onward, the 3.4-month doubling time dominates. - AI winters and booms had little visible effect on training compute over the past half-century. - Pre-2012 estimates are less precise, aiming for an order-of-magnitude accuracy rather than within a factor of 2 to 3. ## Implications The authors conclude that safety and malicious-use concerns need attention now, since capabilities could advance quickly. They also recommend that policymakers consider funding academic AI research, because some research is becoming too computationally expensive for universities to pursue without support.

OpenAI2018-04-173 min readCurated summary

Evolved Policy Gradients

# Evolved Policy Gradients: Learning the Loss Function Instead of the Policy OpenAI's Evolved Policy Gradients (EPG) is an experimental metalearning method that evolves the loss function used by learning agents rather than a policy or a reward function. Once evolved, the learned loss lets agents learn quickly on novel tasks and generalize beyond their training distribution, such as walking to a target on the opposite side of an arena from anything seen in training. EPG can also train agents faster than PPO, though the learned losses are currently narrow and do not transfer to very different kinds of tasks. ## Encoding Prior Knowledge as a Loss - Most RL agents start from a blank slate and depend entirely on external rewards, which is why they learn simple skills far more slowly than humans. - EPG instead encodes prior knowledge as a learned loss function, parameterized as a temporal-convolutional neural network, that tells the agent what counts as making progress. - The method is related to earlier work on evolving reward functions, but it goes further by evolving a complete loss, so the loss must effectively encode an RL algorithm internally. ## Two-Loop Optimization - **Inner loop:** An agent learns a task from scratch using stochastic gradient descent, optimizing its policy against the loss proposed by the outer loop. Tasks come from a family, such as "move gripper to target location [x, y]." - **Outer loop:** Evolution Strategies (ES) evaluate the returns achieved after inner-loop learning and adjust the loss parameters to produce higher returns. - Because ES optimizes final trained-policy performance rather than short-term returns, and the loss can adapt to the environment and the agent's history, the approach offers advantages over standard RL losses. ## Why Learn a Loss Instead of a Policy - Recurrent meta-learned policies tend to overfit the tasks they were trained on, and learned policy initializations offer limited help with exploration. - Loss functions are expected to generalize better across substantially different tasks, as hand-designed losses like PPO's already do across Atari and robotics. ## Generalization Experiment - Researchers evolved an EPG loss so that simulated "ants" learned to walk to random targets on the right half of an arena. - With the loss frozen, the ants were given targets on the left half. They learned to walk left, a case outside the training distribution. - RL², a baseline metalearning method that directly learns an adaptive policy, succeeded on the right-side targets but kept walking right when given left-side targets, which suggests it overfit to its training tasks. ## Limitations - An EPG loss is currently effective only for one small family of tasks at a time. It is unlikely to work on a very different task, such as Space Invaders. - Standard RL losses are general enough to learn a wide range of skills, so EPG trades generality for performance. - Metalearning methods that both outperform standard RL and retain its generality remain a long-term goal.