Elon Musk's 'Dota 2' Experiment: How OpenAI Five Disrupted Esports
For years, artificial intelligence has steadily pushed the boundaries of strategy games, from Deep Blue's monumental triumph in chess to AlphaGo's elegant mastery of Go. Yet, these classic games, for all their strategic depth, operate on a predictable board with full, transparent information. The real world, however, is a far messier and more unpredictable arena, defined by incomplete information, continuous action, and intricate, often chaotic interactions.
This is precisely where OpenAI stepped in with OpenAI Five, an ambitious project that challenged professional human players in the highly complex and chaotic universe of Dota 2. Its remarkable journey, from a rudimentary bot to a formidable team, offered profound insights into AI’s burgeoning capability to tackle genuine real-world challenges.
Quick Summary of OpenAI Five
- Project Goal: To develop AI bots capable of playing the complex real-time strategy game Dota 2, mirroring real-world unpredictability.
- Learning Method: Primarily reinforcement learning through extensive self-play, without human data.
- Key Milestones:
- August 2017: Single bot defeated professional player Dendi in a 1v1 match.
- June 2018: Five-bot team consistently beat amateur and semi-professional players.
- April 2019: Defeated The International 2018 champions, OG, in a best-of-three series.
- Technical Prowess: Utilized 256 GPUs and 128,000 CPU cores, accumulating 180 years of training experience daily.
- Impact: Demonstrated AI's potential in complex multi-agent environments, informing robotics and logistics.
Evolution of OpenAI Five Bots
OpenAI began crafting the algorithms that would power their Dota 2 bots in November 2016. Their core objective was to construct general problem-solving systems by immersing them in a game like Dota 2, which mirrored the real world’s inherent unpredictability and continuous flow. The game proved to be an ideal choice, not just for its massive popularity on Twitch, but also for its built-in bot support and accessible API.
The very first public glimpse of an OpenAI bot surfaced in August 2017 at The International, Dota 2’s premier tournament. Here, the renowned Ukrainian professional player Dendi found himself outmaneuvered in a one-on-one match against a single OpenAI bot.

Source: transfermarkt.co.uk
At The International 2017, professional player Dendi lost a one-on-one match against a single OpenAI bot.
OpenAI’s CTO later revealed that this lone bot had mastered its skills through merely two weeks of relentless self-play, powerfully demonstrating the potential of such learning software for intricate tasks, even as complex as surgery.
By June 2018, the bots had evolved significantly, not only capable of operating as a cohesive five-player team but also consistently beating both amateur and semi-professional human players. They entered The International 2018, squaring off against formidable opponents like paiN Gaming and a team composed of former Chinese professional players. Although OpenAI Five ultimately lost both matches, the organization considered these defeats a success, as they yielded invaluable data for algorithm analysis and refinement.
The bots’ final public showcase in April 2019 marked an extraordinary achievement: they convincingly defeated OG, the reigning champions of The International 2018, in a best-of-three series showdown.

Source: clipground.com
In their final public demonstration, the bots defeated OG, the reigning champions of The International 2018.
During a thrilling four-day online event that very same month, the public was invited to play against the bots. In a staggering 42,729 public games, OpenAI Five achieved an astounding 99.4% win rate.
How OpenAI Five Learned and Played
OpenAI Five harnessed a sophisticated technique called reinforcement learning. In this method, the bots learned by playing hundreds of games every single day, over several months, ceaselessly refining their strategies. They received predetermined rewards for successful actions, such as eliminating opponents or demolishing towers. Each bot was essentially a neural network, equipped with a single layer and 4096 units, observing the game state directly through the Dota developer API. This meant processing the game world as a comprehensive list containing 20,000 numbers, then executing actions via eight enumerated values, complete with distinct action heads for elements like delay, action type, and coordinates.
The entire system ran on OpenAI’s "Rapid" infrastructure, a cutting-edge, general reinforcement learning training platform comprising thousands of machines that communicated simultaneously. By 2018, OpenAI Five was accumulating an astonishing 180 years of training experience daily, leveraging the raw power of 256 GPUs and 128,000 CPU cores.

Source: builtin.com
OpenAI’s "Rapid" infrastructure comprised thousands of machines, accumulating 180 years of training experience daily.
It specifically employed Proximal Policy Optimization (PPO) as its critical reinforcement learning algorithm.
The Complexity of Dota 2 for AI
Dota 2 presented an environment far more intricate than traditional strategy games like chess or Go. Unlike these, Dota 2 boasts several unique challenges for AI:
- Continuous Action Space: Actions are not discrete moves but occur in real-time.
- Partial Observability: The "fog of war" means players (and bots) do not have full information about the map.
- High Dimensionality: Both the action and observation spaces are vast. A single hero can have 170,000 possible actions.
- Complex, Evolving Rule Sets: The game frequently updates, introducing new heroes, items, and mechanics.
To put this into perspective:
| Game | Average Valid Actions per Tick | Average Game Duration |
|---|---|---|
| Chess | 35 | ~60 moves |
| Go | 250 | ~200 moves |
| Dota 2 | ~1,000 | 45 minutes (~80,000 ticks) |
OpenAI Five observed every fourth frame, processing an impressive 20,000 moves per game.
Self-Play and Strategic Development
A truly distinctive feature of OpenAI Five's learning journey was its unwavering reliance on self-play. Starting with completely random parameters, and notably without any human-generated data or search algorithms, the bots organically generated their own unique strategies. To encourage extensive exploration, agents were programmed to play 80% of their games against themselves and 20% against slightly older versions. This ingenious process rapidly led to the spontaneous development of fundamental concepts like laning and farming, which then gracefully evolved into sophisticated strategies such as the "5-hero push" within a mere few days.
Challenges and Criticisms
Despite its undeniably impressive achievements, OpenAI Five faced its share of scrutiny, particularly regarding the fairness of its approach. The bots accessed game state data directly through APIs, rather than laboriously processing visual information like human players. This fundamental difference led some critics to label its victories as "cheating," especially considering the bots’ restricted hero pool and this direct API access. Critics also pointed out that OpenAI Five struggled with long-term strategic planning, often lacking foresight beyond a roughly 14-minute horizon. At The International 2018, the bots notably demonstrated a marked lack of adaptability when confronted with unforeseen strategies or sudden shifts in the game state.
Ethical debates naturally arose concerning these inherent advantages. While humans had to manually check positions, health, and inventory, OpenAI Five enjoyed immediate, direct access to all this information. Its average reaction time of 80 milliseconds was also significantly faster than any human capability. Elon Musk, a co-founder of OpenAI, even personally secured discounted computing power for the project, hailing the bot's victory as the very first time AI had ever defeated professionals in a competitive esports game. OpenAI Five’s groundbreaking project undoubtedly laid significant groundwork for future cooperative AI gaming applications.
❝ first time AI defeated professionals in a competitive esports game ❞
Co-founder of OpenAI
Frequently Asked Questions
What is OpenAI Five?
OpenAI Five was a project by OpenAI that developed machine-learning bots to play the complex video game Dota 2. Its goal was to create general problem-solving AI systems by training them in an environment that mimicked the unpredictability of the real world.
How did OpenAI Five learn to play Dota 2?
The bots learned through a process called reinforcement learning, where they played hundreds of games against themselves daily. They received rewards for successful actions, such as killing opponents or destroying towers, and refined their strategies over months of self-play.
Did OpenAI Five have any advantages over human players?
Yes, the bots had direct access to game state data via APIs, unlike humans who process visual information. They also had a significantly faster reaction time (around 80 ms) and could execute more actions per minute than humans.
What were the main criticisms of OpenAI Five?
Critics argued that the bots' direct API access constituted "cheating." They also noted the bots' struggles with long-term strategic planning (beyond a 14-minute horizon) and their lack of adaptability to unforeseen human strategies or sudden game state changes.
Conclusion
The OpenAI Five project stood as a monumental experiment in the realm of artificial intelligence, boldly pushing the boundaries of what machine learning could accomplish within complex, real-time, and multi-agent environments. Its remarkable successes vividly highlighted the sheer power of reinforcement learning and massive computational scale to develop highly sophisticated strategies through relentless self-play. Even its acknowledged shortcomings offered incredibly valuable lessons, clearly demonstrating areas where AI in gaming, and broader AI applications, still require further development in terms of adaptability and profound long-term strategic depth. The project’s enduring legacy extends far beyond the confines of Dota 2, actively informing the development of robotics, advanced logistical systems, and collaborative human-AI interfaces, thereby setting a crucial precedent for how AI can confront the challenging unpredictability of the real world.
Source: YouTube
Source: YouTube