newsfilter.io
Fireside Chat, Interview

Building Dota Bots That Beat Pros - OpenAI's Greg Brockman, Szymon Sidor, and Sam Altman

  • Future Hardware & Model Scaling:

    • Hardware capable of running neural networks rapidly is expected to become significantly faster than current projections, enabling the scaling of larger models.
    • Scaling up models is projected to unlock "qualitatively different behaviors" not currently observed, such as unsupervised models learning sentiment analysis simply by predicting the next character in text.
    • Small models lose these emergent capabilities; the full extent of these behaviors in larger models remains unknown until sufficient hardware is available.
  • Underexplored Research Areas:

    • Most research focuses on inventing new problems (e.g., hierarchical games) or adding features to models, rather than deeply understanding the limits of existing methods.
    • A recent Facebook paper ("Image in an Hour") demonstrated that fixing bugs in basic image classification code allowed for much larger batch sizes, contradicting the long-held belief that small batches are required for parallelization.
    • Research into optimizing basic algorithms and hardware efficiency (e.g., batch sizes) is deemed more impactful for advancing the field than "sexy" new model architectures.
  • Hardware Architecture Shifts:

    • Current general-purpose computers use von Neumann architecture, which creates bottlenecks between processors and memory.
    • Future specialized hardware is expected to resemble the human brain, featuring massive parallelism with tiny cores, local memory, and neighbor-to-neighbor communication to run models "insanely faster."
    • The transition from CPUs to GPUs provided a 1,000-core parallel boost, but brain-like specialized chips are anticipated to offer the next level of performance.
  • OpenAI Dota 2 Project Overview:

    • Team & Scope: The project was executed by a team of approximately 10 people, with the majority of effort focused on engineering (infrastructure, tooling) rather than pure ML research.
    • Goal Selection: Dota 2 was chosen over League of Legends due to its Linux support, existing replay APIs, and Valve's open-hack philosophy, despite the game not being originally designed for bot development.
    • Key Milestones:
      • Selection occurred in November; development started in late December.
      • Valve coincidentally released a bot-focused API in mid-December, aligning perfectly with project needs.
      • Initial scripted bots took three months to develop, whereas a reinforcement learning bot beat the scripted version in one week.
      • The team achieved an exponential increase in bot strength over time, visualized via a "True Skill" scoreboard.
  • Engineering Challenges & Solutions:

    • Infrastructure: The team converted Lua-based scripts to Python by mechanically renaming files and resolving indexing differences (1-indexed vs. 0-indexed), creating a Python environment mimicking the standard OpenAI Gym interface.
    • Data Pipelines: Processing 1.5 million daily replays (2TB/day) required filtering for expert players and creating automated Docker pipelines, as Steam requires offline mode for only two weeks and Docker layers are limited to 5GB.
    • Workflow Adaptation: ML researchers maintain multiple "experiment" forks rather than using strict version control to preserve working baselines for comparison against new, failing iterations.
  • Training Methodology & Results:

    • Reinforcement Learning (RL): Bots were trained via self-play, observing game states and actions to maximize a quantified reward metric (True Skill rating).
    • The "International" Tournament (TI) Week:
      • Monday: The team played Dendi (pro); the bot won 3-0. Later, the bot lost to Pycat due to an unseen "early wand build" itemization strategy not present in training data.
      • Wednesday: The bot displayed a "baiting" strategy that confused semi-pro testers who attempted to exploit it; the team stitched a "Monday bot" (good early game) with a newer version for the Arteezy match, resulting in a 3-0 victory.
      • Thursday: The team rested and deployed a fully trained model without code changes; the bot remained undefeated against top pros (5-0 against Sumail).
    • Human-AI Interaction: Pros initially reacted emotionally (some called the bot "stupid," others "cool"), but many later adopted new strategies after playing hundreds of games against the AI.
  • Strategic Insights from Bot Behavior:

    • Emergent Tactics: The bot learned a "baiting" strategy where it pretended to be incompetent to lure opponents into traps, a psychological exploit that proved effective against human players.
    • Teaching Humans: The bot discovered a non-obvious strategy (triple-waving to regain regen and kill) that a human semi-pro tested against Arteezy, successfully using a tactic the bot had taught him through repeated exposure.
    • Human Improvement: Some professionals have learned to defeat the bot consistently by finding specific exploits after hundreds of games, effectively matching the bot's performance in specific domains.
  • Talent & Skills Requirements:

    • Engineering Priority: Strong engineering skills (distributed systems, infrastructure) are often more valuable than exotic ML modeling; solid engineers can become productive immediately without an AI PhD.
    • Code Quality: Writing bug-free code is critical because debugging ML systems involves long training runs (days) and subtle performance regressions that are hard to trace.
    • Required Knowledge: Basic linear algebra and statistics are sufficient for most roles; deep math expertise is less critical than the ability to build robust, scalable systems.
    • Mindset: Success requires humility to inject engineering discipline into research workflows and knowing when to prioritize short, simple code over modularity to minimize bugs.
  • Non-Technical & Career Advice:

    • AI Impact: AI is expected to deeply integrate into systems without new research breakthroughs, raising significant ethical issues that non-technical voices should help address.
    • Productivity: The primary driver of high productivity is genuine passion for the work rather than maximizing hours logged.
    • AGI Relevance: Games serve as pre-packaged, complex, scalable virtual environments ideal for testing algorithms that will eventually apply to real-world interactions.