techlist.io

Openai Five

7 posts

OpenAI2019-12-121 min readCurated summary

Dota 2 with large scale deep reinforcement learning

OpenAI Five became the first AI system to defeat world champions at an esports game when it beat Team OG, the Dota 2 world champion, on April 13, 2019. The work shows that self-play reinforcement learning, scaled up substantially, can reach superhuman performance on a task with long time horizons, imperfect information, and complex continuous action spaces. ## Why Dota 2 Is a Hard Problem - The game has long time horizons, so decisions made early can pay off only much later. - Players have imperfect information about the map and opponents. - The state and action spaces are complex and continuous, which makes them difficult for AI systems to handle. ## Training at Scale - OpenAI Five used existing reinforcement learning techniques but scaled them far beyond typical settings. - Training learned from batches of roughly 2 million frames every 2 seconds. - The team built a distributed training system and tools for continual training. - Training ran for 10 months in total. ## Results - OpenAI Five defeated the reigning Dota 2 world champion. - The result supports the claim that self-play alone, given enough scale, can produce superhuman play on a difficult, real-time strategy task.

OpenAI2019-10-143 min readCurated summary

Solving Rubik’s Cube with a robot hand

# Solving Rubik's Cube with a Robot Hand OpenAI trained a human-like robot hand to solve a Rubik's Cube using neural networks trained entirely in simulation. The approach pairs the reinforcement learning code behind OpenAI Five with a new technique called Automatic Domain Randomization (ADR), which generates progressively harder simulated environments without human tuning. The resulting system transfers to the physical world and handles perturbations it never saw during training, showing that reinforcement learning can solve dexterous physical manipulation problems, not just virtual ones. ## Why Dexterous Manipulation Is Hard - Robotics has long required custom robots for each task, while general-purpose hands have struggled because of their many degrees of freedom. - The team's hardware, a robot hand that has existed for about 15 years, was not new. The novelty was in the software approach. - Solving the cube one-handed is difficult even for children, who take several years to develop the necessary dexterity. ## Training in Simulation with Automatic Domain Randomization - The system uses reinforcement learning in simulation, with Kociemba's algorithm choosing the solution steps. The networks learn the required face rotations and cube flips. - Manually randomizing physics parameters such as friction, elasticity, and dynamics is hard. Too little randomization fails to transfer to the real robot, and too much makes learning difficult. - ADR begins with a single nonrandomized environment. When the network exceeds a performance threshold, the randomization range expands automatically, such as the cube's size, mass, finger friction, or surface materials. The cycle repeats, so training never converges and always stays challenging. - In a block-flipping comparison, ADR initially performed worse than manual randomization on the real robot but eventually roughly doubled the baseline's transfer performance without human tuning. ## Robustness and Emergent Meta-Learning - The ADR-trained system handled perturbations it was never trained on, performing most flips and face rotations under all tested conditions, though not at peak performance. - The authors hypothesize that a memory-augmented network trained on unboundedly varied environments develops meta-learning, learning to adapt its behavior at deployment time. - In simulation, averaged over 10,000 trials, perturbations such as resetting memory, changing dynamics, or breaking a joint caused time-to-success spikes that recovered as the network re-adapted. - Non-negative matrix factorization of the network's memory revealed groups with semantic meaning. For example, the dominant memory group could indicate whether the network was about to spin the cube or rotate the top face clockwise. ## Current Limitations - The system solves a maximally difficult 26-rotation scramble 20% of the time, and a 15-rotation scramble 60% of the time. - Most failures occur during the first few rotations and flips, as the network balances solving with adapting to the physical world. - A dropped cube counts as a failure, though the network can resume solving from any state if the cube is returned to the hand. ## Prototypes Used Along the Way - The team built custom cube prototypes with increasing sensing capabilities, ranging from a locked cube with no internal sensors to a cube with built-in sensors (the Giiker cube), to benchmark progress before tackling a regular cube. - The only modification to the regular cube was cutting a small piece of each center sticker to break rotational symmetry, which allows the vision system to determine orientation. The authors see human-level dexterity as a step toward general-purpose robots. ADR offers a way to train physical-world policies without an accurate model of the real environment, and it removes the need for domain-specific tuning when applying the method to new tasks.

OpenAI2019-04-143 min readCurated summary

OpenAI Five defeats Dota 2 world champions

# OpenAI Five Becomes the First AI to Beat Esports World Champions OpenAI Five defeated OG, the reigning Dota 2 world champions, in two consecutive games at the Finals, marking the first time an AI has beaten world champions in an esports game and the first time it has done so on livestream. The post argues that the key to this milestone was scale rather than new algorithms, and that the same system could be turned from a competitor into a cooperative teammate with relatively little effort. ## Why Dota Was a Hard Target - The team chose Dota because it seemed beyond existing deep reinforcement learning methods, expecting to need ideas like hierarchical RL. - The main missing ingredient turned out to be scale. Their system, Rapid, ran PPO at unprecedented size, and they reached world-class play without hitting fundamental performance limits. - RL's data appetite remains a limitation. Rapid also trained a robotic hand in simulation to reorient a block, but reducing the required experience is a major open challenge. ## Compute and Training Scale - The Finals version beat The International 2018 version with a 99.9% winrate, though this figure is measured on the current patch, which favors the newer agent. - Compute increased 8x. The model consumed 800 petaflop/s-days and about 45,000 years of self-play over 10 realtime months, up from roughly 10,000 years over 1.5 months. - Since most compute was already devoted to a single model, the team scaled by training for longer rather than adding resources. ## Continuous Training and Transfer - The model has trained continuously since June 2018 through changes in model size and game rules, including major patches and new features. - The team built "surgery" tooling to transfer trained parameters across substantial architecture changes, addressing an open problem in RL. ## Expanding the Hero Pool - Going from 5 to 18 heroes caused little slowdown in training. Pools of up to 25 heroes reached about 5k MMR but did not reach pro level in time. - Hypotheses for the slowdown include limited model capacity, matchmaking issues with a larger pool, and the difficulty new heroes face catching up to mastered ones. - The Finals version uses 17 heroes, with Lich removed due to significant ability changes in patch 7.20. ## Cooperative Play - Although trained only by playing against copies of itself, the model generalized zero-shot to controlling a subset of heroes alongside or against humans. - Testers reported feeling supported by their bot teammates and found the experience enjoyable. ## Public Arena and Next Steps - OpenAI Five Arena lets the public play against the bot in competitive and cooperative modes from April 18 to April 21, 2019, with results posted to a public leaderboard. This tests how exploitable the system is. - A more technical analysis will follow the Arena results, and the team plans to keep using Dota 2 as a research environment for learning from less data and for human-AI cooperation. **Conclusion:** The post presents OpenAI Five's win as evidence that scaling existing RL methods can reach expert performance in complex environments, while data efficiency and robust human-AI cooperation remain open problems.

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-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.

OpenAI2017-08-102 min readCurated summary

Dota 2

# OpenAI Five Beats a Top Dota 2 Professional in 1v1 Matches OpenAI announced a bot that defeated Dendi, a top professional, in a best-of-three 1v1 Dota 2 match under standard tournament rules, and it went undefeated against several other leading players, including the world's top 1v1 player. The bot learned the game entirely through self-play, without imitation learning or tree search. The authors present this as a step toward AI systems that can accomplish well-defined goals in messy, real-world situations involving humans. ## Why Dota 2 Is a Hard Problem - Dota 1v1 is a complex game with hidden information, so agents must plan, attack, feint, and deceive. - Player skill does not correlate strongly with actions per minute, and the bot's APM is comparable to an average human player's, so the result does not rely on superhuman mechanical speed. ## What the Bot Learned - Through self-play alone, the bot learned to predict where opponents will move. - It improvised in unfamiliar situations. - It learned to influence the opponent's allied units to help it win. ## Next Steps: Five-versus-Five - The full game is played by two teams of five, with a pool of about a hundred heroes and hundreds of items, which is far more complex than 1v1. - The next goal is a team of Dota 2 bots that can compete and collaborate with top human teams.