Curated 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.
Related reading
Continue with another curated summary.