OpenAI Five was a system of five cooperating neural network agents that learned to play the multiplayer strategy game Dota 2 through large-scale self-play reinforcement learning. In April 2019 it defeated OG, the reigning world champion team, two games to zero, becoming the first AI system to beat a world champion team in a major esports title.
In AI history, OpenAI Five stands beside Deep Blue, AlphaGo and AlphaStar as a landmark of game-playing AI. Its significance lies less in the game itself than in the demonstration that relatively simple algorithms scaled to enormous compute could master a task with long time horizons, hidden information and team coordination, properties far closer to real-world problems than chess or Go.
Why Dota 2 was a hard benchmark
Dota 2 was a demanding target because it combines several difficulties that earlier game benchmarks lacked. Two teams of five heroes compete on a large map for roughly 45 minutes, and each team sees only part of the map at any moment.
The table below compares Dota 2 with the board games that earlier landmark systems mastered.
| Property | Classic board games | Dota 2 |
|---|---|---|
| Game length | About 40 to 150 moves | About 20,000 decisions per game |
| Information | Fully observable board | Partially observable map with fog of war |
| Action space | Hundreds of legal moves | Thousands of actions per step after discretization |
| Observation size | A board of up to 361 points | About 16,000 values per observation |
| Players | One against one | Five against five with team coordination |
These properties made credit assignment especially difficult: a decision in minute five can determine victory in minute forty, so the learning algorithm must connect distant actions with eventual outcomes.
How OpenAI Five learned to play
OpenAI Five learned entirely through self-play, starting from random behavior and without any human game recordings. The core algorithm was Proximal Policy Optimization (PPO), a standard policy gradient method, run on a distributed training system that generated games at massive scale.
Each hero was controlled by a copy of the same network built around a single-layer long short-term memory (LSTM) with 4,096 units, giving a model of roughly 159 million parameters. The agents did not exchange messages; coordination emerged because all five shared the same weights and a team spirit hyperparameter that gradually shifted rewards from individual to team outcomes.
The main technical elements are summarized below.
| Element | Design choice | Purpose |
|---|---|---|
| Algorithm | Proximal Policy Optimization | Stable policy updates at large scale |
| Network core | Single-layer LSTM with 4,096 units | Memory across long, partially observed games |
| Training data | Self-play, with about 20% of games against past versions | Avoid strategy collapse and forgetting |
| Reward shaping | Rewards for kills, resources and objectives | Denser learning signal than win or loss alone |
| Team spirit | Annealed from 0 to 1 during training | Shift from selfish to cooperative play |
| Model surgery | Transfer of weights when architecture changed | Continue training without restarting |
Training ran for about ten months on thousands of GPUs and well over 100,000 CPU cores. At peak, the system played the equivalent of roughly 180 years of games per day, and the final agent had accumulated about 45,000 years of gameplay experience.
Milestones and public matches
OpenAI Five progressed through a series of public tests between 2017 and 2019, each with fewer restrictions and stronger opponents.
| Date | Event | Outcome |
|---|---|---|
| August 2017 | One-versus-one bot at The International | Defeated professional players in a single mid-lane matchup |
| August 2018 | OpenAI Five Benchmark against former professionals | Won the series against a high-ranked team |
| August 2018 | Exhibition matches at The International 2018 | Lost both games to professional teams |
| April 2019 | OpenAI Five Finals against OG | Won two games to zero |
| April 2019 | OpenAI Five Arena open to the public | Won about 99.4% of over 7,000 games |
The 2018 losses showed weaknesses in long-term strategy, while the 2019 victory followed months of additional training rather than a new algorithm, reinforcing the argument that scale itself was the decisive factor.
Restrictions and limitations
OpenAI Five did not play the full game of Dota 2. The matches used a restricted hero pool of 17 heroes out of more than 115, and several mechanics, such as summoned units and certain items, were disabled to simplify control.
- Restricted game rules: a smaller hero pool reduced the strategic space human teams normally master.
- Programmatic observation: the agents read game state through an interface, not from pixels on a screen.
- Reaction and precision advantages: the agents acted with an average reaction time of about 200 milliseconds and perfect consistency.
- Exploitable strategies: Arena players found repeatable tactics that confused the agents.
- Enormous cost: the compute budget was beyond the reach of most research groups.
Critics also noted that sample efficiency was extremely poor: tens of thousands of years of play were needed to reach a level that human professionals achieve in a few thousand hours.
Influence on later AI research
OpenAI Five strengthened a scaling-oriented research philosophy that later shaped large language model development. Its main lesson was that existing methods, given sufficient compute and engineering, could solve problems previously considered out of reach.
It also popularized continual training with model surgery, showing that a long-running model could absorb architectural and game-version changes without starting over. Together with AlphaStar in StarCraft II, it marked the high point of complex video games as the leading benchmark for reinforcement learning before attention shifted to language models.
A plain-language summary
OpenAI Five was a computer program that learned a complex team video game by playing against itself. Nobody taught it the rules of good play. It began by pressing buttons at random. Over months, it played millions of games and slowly kept what worked.
In 2019 it beat the best human team in the world. The key idea is simple: ordinary learning methods can achieve surprising results when they get enormous practice and computing power.
An example from practice
A university course on reinforcement learning uses OpenAI Five as a case study when students design reward functions for a simulated warehouse robot team. Students first train five robots with only a final reward for completed orders and observe that learning barely progresses, because the signal arrives too rarely.
Following the OpenAI Five approach, they add shaped rewards for intermediate steps such as picking an item or reaching a shelf, and they introduce a team spirit coefficient that starts at 0.2 and rises to 1.0 during training. Early on, each robot learns basic movement for its own benefit; later, the robots learn to avoid blocking one another.
After the change, order completion rises markedly in the simulation. Students also see a familiar weakness: a poorly weighted reward lets the robots collect intermediate points without finishing orders, which illustrates why reward design requires careful auditing.