Training a teacher and student network iteratively, rather than jointly, yields teaching examples that humans can interpret. When both networks are trained together, the teacher's chosen examples work well for the student but are typically opaque to people. The authors test interpretability in two ways: by comparing the teacher's strategies to intuitive human strategies, and by running experiments in which people learn from the teacher's examples.
## Iterative Training for Interpretable Teaching
- Joint training of teacher and student produces effective but uninterpretable example selection.
- Alternating between training the student and the teacher produces strategies that people can understand.
## Evaluating Interpretability
- The teacher's emergent strategies are compared with intuitive strategies in each domain.
- Human experiments measure how well the teacher's examples teach people, which tests whether the strategies are useful as well as understandable.
## Domains of Concepts
- The teacher selects or generates pedagogical examples for rule-based concepts, probabilistic concepts, boolean concepts, and hierarchical concepts.
# Learning a Hierarchy with Meta-Learning Shared Hierarchies
Humans tackle complex problems by chaining together learned sub-skills, but standard reinforcement learning searches over low-level actions one step at a time, which becomes inefficient for long tasks. The post introduces Meta-Learning Shared Hierarchies (MLSH), a hierarchical reinforcement learning algorithm that discovers reusable high-level actions automatically. Applied to navigation tasks, it learns walking and crawling behaviors in different directions that let an agent master new tasks quickly.
## Why Flat Reinforcement Learning Struggles
- Current reinforcement learning methods rely on brute-force search over low-level actions, such as individual muscle contractions.
- Long tasks requiring thousands of timesteps demand an enormous number of attempts, making these methods very inefficient.
- Humans, by contrast, decompose tasks like making pancakes into reusable components and sequence them together.
## Hierarchical Reinforcement Learning
- The core idea is to represent complex behavior as a short sequence of high-level actions.
- In the authors' example, a solution requiring 2,000 low-level actions becomes 10 high-level actions, and searching a 10-step sequence is far cheaper than searching a 2,000-step one.
## Meta-Learning Shared Hierarchies (MLSH)
- A master policy chooses among a set of sub-policies and selects a new action every N timesteps (for example, N=200).
- A sub-policy executed for N timesteps forms one high-level action. In navigation tasks, sub-policies correspond to walking or crawling in particular directions.
- Unlike most prior work, which hand-engineers hierarchies, MLSH discovers the structure automatically through interaction with the environment.
- The method takes a meta-learning view: a good hierarchy is one that enables fast reward acquisition on unseen tasks.
- Training samples a distribution of tasks, shares the sub-policies across them, and learns a new master policy for each sampled task. Repeatedly training new master policies pushes the sub-policies toward structures that suit the master's learning dynamics.
## Experiments in AntMaze
- A Mujoco Ant robot must navigate from a start position to a goal across a distribution of nine different mazes.
- The algorithm finds a diverse set of sub-policies that can be sequenced to solve these mazes, learned purely from environment interaction.
- The learned sub-policies can then be reused to master a larger task than those used during training.
## Code Release
- The authors released the code for training MLSH agents, along with the MuJoCo environments built to evaluate them.
Robot controllers can now be trained entirely in simulation and deployed on physical robots, where they react to unplanned changes in the environment while solving simple tasks. The simulator doesn't need to match the real world in appearance or dynamics. Instead, relevant aspects such as friction, action delays, and sensor noise are randomized during training, and the policy needs only a small amount of real-world self-calibration. The authors argue that randomizing the simulator will be the most important route to general-purpose robots.
## Dynamics Randomization
- Training randomizes 95 properties that govern the environment's dynamics, including each link's mass, the friction and damping of the manipulated object, the height of the table, action latency, and observation noise.
- An LSTM-based policy trained this way can push a hockey puck around a table. Feed-forward networks fail at the task, while LSTMs use past observations to infer the world's dynamics and adjust their behavior.
## Vision-to-Action Control with Reinforcement Learning
- A robot was trained end-to-end in simulation with reinforcement learning, then deployed on hardware. The resulting system maps visual input directly to actions without special sensors and adapts to visual feedback.
- Conventional RL works well only when small changes in action produce incremental reward changes, which suits tasks like walking. Most manipulation tasks lack such rewards. A dense reward for block stacking would have to encode arm-to-block proximity, approach orientation, lift height, and distance to the target.
- After months of failed attempts at pick-and-place with conventional RL, the team developed Hindsight Experience Replay (HER). HER learns from a binary success/failure reward by treating a failed trajectory as if it had been the intended goal, so every attempt still produces useful learning signal.
- The implementation uses an actor-critic setup with asymmetric information. The critic sees the full simulator state and estimates future rewards, while the actor sees only RGB and depth images, which are available on the real robot. The critic's accurate feedback thus trains an actor that relies only on real-world sensor data.
- Domain randomization on visual shapes produces a vision system robust enough for the physical world.
## Computational Costs
- Dynamics randomization slows training by about 3x.
- Learning from images instead of state is about 5–10x slower.
Simulators give robot-learning agents abundant, safe training data, but policies trained in them often exploit simulator-specific quirks and fail on real hardware because of modeling error. This paper bridges that "reality gap" by randomizing the simulator's dynamics during training. The resulting policies adapt to a wide range of dynamics, including ones far from those they were trained on, so they transfer to the real world without any physical training. On a robotic-arm object-pushing task trained only in simulation, the policies performed comparably on a real robot, reliably moving an object to a target from random starting configurations.
## Dynamics Randomization as a Sim-to-Real Method
- The core idea is to vary the physical parameters of the simulator, such as mass and friction, across episodes during training rather than fixing them to one estimate.
- Exposure to this variety pushes the policy to infer the current dynamics from its experience and adjust its behavior, instead of memorizing one simulator's behavior.
- Because the real world's dynamics are one more instance within the randomized range, the policy can generalize to it without any real-robot training.
## Results on Object Pushing
- The method was evaluated on a robotic-arm task that requires pushing an object to a desired location.
- Policies trained exclusively in simulation maintained similar performance on the physical robot, reliably reaching goals from random initial configurations.
## Design Choices and Robustness
- The authors examined how various design decisions affect transfer performance.
- The resulting policies remain robust to significant calibration error in the simulator's parameters, which reduces the need for precise system identification before deployment.
This post presents an approach to image-based robot learning that uses the simulator's full state information during training without requiring it at deployment. The actor-critic method trains the critic on full states while the policy receives only rendered RGBD images. The authors report that this asymmetry significantly improves performance on simulated tasks, and that combined with domain randomization it transfers to a real robot, for picking, pushing, and moving a block, without any real-world training data.
## Why Simulation-Based Robot RL
- Reinforcement learning works well in many sequential decision-making domains, but training on physical robots is expensive and can be dangerous.
- This motivates learning control policies in a physics simulator.
- Prior sim-to-real work has transferred policies successfully, but the authors argue it often doesn't fully exploit what the simulator offers.
## Asymmetric Actor-Critic Training
- The simulator provides full state observability, which is unavailable on a real robot.
- The critic is trained on full states, so it can use this privileged information to evaluate actions.
- The actor (policy) takes only partial observations, specifically rendered RGBD images, matching what a real robot would have.
- Because only the actor is needed at deployment, the image-based policy runs without access to full state.
## Simulated Experiments
- The authors evaluate the method on a range of simulated tasks.
- Using asymmetric inputs significantly improves performance over the image-based policy trained without this asymmetry.
## Sim-to-Real Transfer
- The method is combined with domain randomization to bridge the gap between simulated and real visual inputs.
- Real robot experiments cover picking, pushing, and moving a block.
- The transfer succeeds without training on any real-world data.
## Takeaway
Privileged simulator information can be used to improve image-based policies when it is available only at training time, a way of getting more from simulation than simply copying the same inputs into the policy.
Deep learning-based robotic grasping models are often trained on only hundreds or thousands of object instances, which limits how well they generalize. This work addresses that by applying domain randomization to object synthesis: a network trained on millions of unrealistic, procedurally generated objects can grasp real and unseen objects in both simulation and the real world. The authors pair this data pipeline with an autoregressive grasp planner that handles the multimodal distribution of successful grasps.
### Procedurally Generated Training Data
- Millions of unique objects are generated procedurally, and they are deliberately unrealistic.
- The approach borrows the idea of domain randomization, varying the training data widely so that the model does not overfit to a narrow set of object appearances and shapes.
### Autoregressive Grasp Planning
- Successful grasps for a single object can fall into several distinct modes, so a single best-guess grasp is often insufficient.
- The model takes sensor inputs of a scene and outputs a probability distribution over possible grasps rather than a single grasp.
- Because the output is a distribution, grasps can be sampled efficiently at test time, or sampling can be avoided entirely.
### Results
- In simulation, the model achieves over 90% grasp success on previously unseen realistic objects, even though it was trained only on random objects.
- On real-world grasp attempts, it achieves about 80% success, again without any training on realistic objects or real-world data.
The main takeaway is that training on large volumes of randomized synthetic objects can transfer to realistic objects in simulation and to physical robots, which suggests that object diversity may matter more than object realism for grasping generalization.
This OpenAI post shows that meta-learning can help simulated robots adapt during a competition. A meta-learning agent defeated a stronger non-meta-learning opponent by adjusting its tactics between rounds, and it could also adjust to physical damage. The authors extended Model-Agnostic Meta-Learning (MAML) so that it optimizes across pairs of environments rather than single ones, which lets policies adapt to unseen environments that are not too different from the training ones.
### Extending MAML with Paired Environments
- MAML initializes an agent's policy so that a few gradient ascent steps on the reward from early episodes in a new environment produce better performance there.
- The authors changed the objective to optimize against pairs of environments instead of single ones, producing policies that adapt quickly to new environments as long as they do not diverge too wildly from the training set.
### Multi-Round Wrestling Experiments
- Three agent types were built: Ant (4 legs), Bug (6 legs), and Spider (8 legs).
- Agents played a multi-round game against the same opponent and updated their policy parameters between rounds to counter the opponent's strategy.
- Over a hundred agents were trained, some with fixed policies and others with the ability to adapt. Adaptive agents were much stronger competitors than fixed-policy agents.
### Adapting to Physical Malfunction
- The same on-the-fly learning let agents cope with changes to their own bodies, such as limbs losing function over time.
- The authors suggest this approach could handle both external environmental changes and internal changes to an agent's body or state.
The work is part of OpenAI's large-scale multi-agent research, and the authors released the MuJoCo environments and trained policies so others can experiment with these systems.
# Competitive Self-Play in Simulated 3D Environments
OpenAI researchers found that simulated robots trained purely through competition against copies of themselves can learn physical skills such as tackling, ducking, faking, kicking, catching, and diving, without the environment being explicitly designed for them. Because self-play continually matches each agent against opponents of appropriate difficulty, it creates a learning curriculum that human designers would otherwise have to craft by hand. Combined with their earlier Dota 2 results, the work suggests self-play will be a core component of powerful AI systems.
## Experimental Setup
- Simulated 3D robots compete in basic games such as sumo wrestling, pushing an opponent out of a ring, reaching the opposite side while blocking the other agent, and soccer-style goal scoring.
- Each agent is given only simple goals, and the strategies that emerge are analyzed afterward.
- Each agent's neural network policy is trained independently using Proximal Policy Optimization (PPO).
## Reward Shaping and Annealing
- Agents first receive dense rewards that encourage exploration, such as standing and moving forward.
- These dense rewards are gradually reduced to zero, leaving only the win/loss signal.
- In sumo, the team took a walking reward from earlier work, removed the velocity term, and added a negative L2 distance from the ring's center as the exploration reward.
- This shaping lets agents learn complex competitive behavior without hand-designed skill objectives.
## Emergent Skills and Transfer Learning
- Agents learned tackling, ducking, faking, kicking, catching, and diving through competition alone.
- Human-designed environments can only produce behaviors that designers anticipate, while self-play lets agents keep bootstrapping against successively stronger versions of themselves.
- A sumo-trained agent kept its balance under "wind" forces it had never encountered, while standard RL-trained walkers fell immediately, suggesting the learned skills generalize.
## Avoiding Overfitting to Specific Opponents
- Agents initially co-adapted to counter particular opponents and failed against new ones.
- The fix was to train each agent against a diverse pool of opponents, including policies from parallel training runs and earlier checkpoints.
- Diversity forces agents to learn general strategies rather than exploits tailored to a single opponent.
## Conclusion
The researchers released the MuJoCo environments and trained policies so others can build on this work. The results indicate that self-play, paired with reward annealing and opponent diversity, can produce robust, transferable skills without requiring humans to specify those skills in advance.
# Nonlinear Computation in Deep Linear Networks
The post argues that deep linear networks, when implemented with floating-point arithmetic, are not truly linear. Near zero, float32 rounding and underflow introduce genuine nonlinearities, and evolution strategies can exploit them to solve problems that a standard linear network trained by backpropagation handles poorly. On MNIST, this approach lifts a linear network's test accuracy from 92% to 96.7%.
## Why Floating-Point Arithmetic Is Nonlinear
- Neural networks normally alternate linear layers with nonlinear activations like tanh or ReLU. In exact math, stacked linear layers collapse into one linear layer.
- Computers approximate real numbers with finite bits. In IEEE float32, a number has 1 sign bit, 8 exponent bits, and 23 fraction bits.
- The smallest normal positive number is `min` = 1.0...0 × 2^-126. The gap between 0 and `min` is about 2^20 times larger than the gap between `min` and the next representable number, so values below `min` underflow to zero.
- Because of this underflow, arithmetic near zero stops obeying the usual algebraic laws. The post gives two examples:
- With a = 0.4×min, b = 0.5×min, c = 1/min, the expression (a+b)×c evaluates to 0, while (a×c)+(b×c) evaluates to 0.9.
- With a = 2.5×min, b = −1.6×min, c = 1×min, (a+b)+c gives min, but (b+c)+a gives 2.5×min.
- TensorFlow builds its primitives with denormals disabled (`ftz=true`), so any non-matrix-multiply operation near magnitude 1e-38 carries an implicit nonlinearity.
## Exploiting the Nonlinearity with Evolution Strategies
- Standard backpropagation relies on symbolic differentiation, which cannot see these tiny-scale nonlinearities, so it struggles to train networks that depend on them.
- Evolution strategies (ES) estimate gradients by sampling perturbations of the parameters instead of differentiating the computation, so they can exploit the behavior.
- The authors scale activations so they fall into float32's nonlinear near-zero range. The architecture is a 784→512→512→10 network with no nonlinear activations, using scaling factors of 2^125 to keep intermediate values in that range.
## Results
- A deep linear network trained with backpropagation reached about 94% training and 92% test accuracy on MNIST.
- The same linear architecture trained with ES reached over 99% training and 96.7% test accuracy.
- The authors attribute the gain to the float32 nonlinearities, which let each layer form nonlinear combinations of lower-level features.
## Future Directions
- The authors suggest extending the approach to recurrent neural networks.
- They also propose using these nonlinearities to improve harder tasks such as language modeling and machine translation.
# Learning with Opponent-Learning Awareness
OpenAI and the University of Oxford introduced LOLA, an algorithm that lets reinforcement learning agents account for the fact that other agents are learning at the same time. Instead of treating other learners as part of a static environment, a LOLA agent shapes how its opponents update their policies, which allows self-interested agents to discover cooperative strategies such as tit-for-tat in the iterated prisoner's dilemma. The authors present it as a small step toward agents that model other minds.
## Motivation: Learning Without a Theory of Mind
- Humans collaborate well because they reason about how their actions will change others' future behavior and often find win-win arrangements.
- Standard deep multi-agent RL lacks this capacity. A state-of-the-art agent treats another learning agent as no different from a tree in the environment.
- Methods such as Independent PPO tend to converge on selfish behavior that ignores other agents' objectives.
## How LOLA Works
- Each LOLA agent, "Alice," models how another agent's ("Bob's") parameter update depends on Alice's policy, and how Bob's update in turn affects Alice's expected future reward.
- Alice optimizes her return after one anticipated learning step of Bob, differentiating through that step to shape Bob's update in a direction that benefits her.
- The key term is a second-order correction. Its left-hand side captures how Alice's return depends on Bob's policy change, and its right-hand side captures how Bob's learning step depends on Alice's policy. Multiplying the two measures how Alice can steer Bob's learning toward higher rewards for herself.
- With access to the true gradients and Hessians, the terms can be computed exactly. In practice, the second-order term is estimated from samples using the policy gradient theorem, which makes LOLA applicable to general deep RL settings.
- LOLA requires access to the other agents' policies. LOLA-OM (opponent modeling) instead fits a model of the opponent from observed trajectories, predicting its parameters from its actions. The authors plan to extend this to infer opponents' architectures and rewards.
## Results
- **Iterated prisoner's dilemma and coin game:** LOLA agents discover reciprocal strategies, while Independent PPO learns selfish behavior.
- **Coin game:** Two agents, red and blue, collect coins. Any agent earns a point for collecting a coin, but collecting a coin of the other agent's color costs that agent 2 points. If both agents greedily collect every coin, both average zero. LOLA agents learn to mostly collect coins of their own color, earning high scores.
- Both LOLA and LOLA-OM collect more coins and score substantially higher than the baselines.
## Limitations
- LOLA performs best with large batch sizes and full roll-outs for variance reduction, which makes it memory- and compute-intensive.
- Under opponent modeling, LOLA can be unstable, which the authors plan to address in future work.
Learning with Opponent-Learning Awareness (LOLA) is a multi-agent reinforcement learning method in which each agent accounts for how its own policy will shape the other agents' anticipated learning updates. Unlike independent learners, LOLA agents that encounter each other learn to cooperate, even in social dilemmas where self-interest would otherwise lead to defection. The method is practical for model-free RL and scales to large parameter spaces and nonlinear function approximators.
## The Problem with Multi-Agent Learning
- When multiple agents learn at once, each agent's environment becomes non-stationary, which often causes unstable training or poor final outcomes.
- The post frames this as a general issue across deep multi-agent RL, hierarchical RL, generative adversarial networks, and decentralised optimisation.
## The LOLA Learning Rule
- Each agent anticipates the other agents' parameter updates and adds a term that measures how its own policy affects those updates.
- This lets an agent shape the learning of its opponents rather than treating them as fixed.
- The method can be computed efficiently with an extension of the policy gradient estimator, so it works without a model of the environment.
## Results on Benchmark Games
- **Iterated prisoners' dilemma:** Two LOLA agents converge to tit-for-tat and cooperate, while independent learners do not. LOLA agents also earn higher payouts than naive learners and resist exploitation by higher-order gradient methods.
- **Repeated matching pennies:** LOLA agents converge to the Nash equilibrium.
- **Round-robin tournament:** LOLA agents shape the learning of a range of multi-agent algorithms from the literature and achieve the highest average returns on the iterated prisoners' dilemma.
## Grid World with Embedded Social Dilemma
- The authors test LOLA on a grid world containing a social dilemma, using recurrent policies and opponent modelling.
- By explicitly modelling the other agent's learning, LOLA agents learn to cooperate out of self-interest.
## Practical Takeaway
For multi-agent settings where agents learn simultaneously, explicitly modelling how other agents will update can turn competitive dynamics into cooperative outcomes. The authors have released their code.
# OpenAI Baselines: ACKTR and A2C
OpenAI released two new reinforcement learning implementations in its Baselines library: ACKTR and A2C. A2C is a synchronous, deterministic version of Asynchronous Advantage Actor Critic (A3C) that matches A3C's performance, while ACKTR is more sample-efficient than both TRPO and A2C at only a slightly higher computational cost per update. The post presents both as practical, well-benchmarked options for researchers and practitioners.
## What ACKTR Is
- ACKTR (Actor Critic using Kronecker-factored Trust Region) was developed by researchers at the University of Toronto and New York University, with OpenAI collaborating on the Baselines release.
- It combines three techniques: actor-critic methods, trust region optimization for more consistent improvement, and distributed Kronecker factorization to improve sample efficiency and scalability.
- The authors applied it to simulated robots (pixel input, continuous actions) and Atari agents (pixel input, discrete actions).
## Sample and Computational Efficiency
- **Sample complexity** is the number of environment interaction timesteps needed, and **computational complexity** is the number of numerical operations required.
- ACKTR takes a step along the natural gradient rather than the plain gradient (or a rescaled version such as ADAM's). The natural gradient gives the parameter-space direction with the largest improvement in the objective per unit change in the network's output distribution, measured by KL divergence.
- Limiting the KL divergence keeps the new policy from changing radically from the old one, which could otherwise collapse performance.
- The KFAC update used by ACKTR costs only 10–25% more per step than a standard gradient update. TRPO, by contrast, relies on Hessian-free optimization with a more expensive conjugate-gradient computation.
- In a Q-Bert comparison across timesteps, ACKTR agents achieved higher scores than A2C agents.
## Benchmarks
- The release includes benchmarks comparing ACKTR against A2C, PPO, and ACER across a range of tasks.
- On 49 Atari games, ACKTR was compared with A2C, PPO, and ACER. Its hyperparameters were tuned by the algorithm's author on a single game, Breakout.
- ACKTR scales well with batch size because it uses each batch both to estimate the gradient and to approximate the local curvature of the parameter space. This makes it well suited to large-scale distributed training with large batches.
## A2C and A3C
A3C combined three ideas: updates over fixed-length experience segments (for example, 20 timesteps) used to estimate returns and the advantage function, policies and value functions sharing layers, and asynchronous updates. Researchers questioned whether the asynchrony actually improved performance or was just an implementation detail enabling faster CPU-based training.
- A2C answers this with a synchronous, deterministic design: it waits for every actor to finish its segment, then performs a single update averaging over all actors.
- This suits GPUs, which perform best with large batches.
- OpenAI found the synchronous A2C outperforms its asynchronous implementations, with no evidence that asynchrony's noise helps performance.
- A2C is more cost-effective than A3C on single-GPU machines and faster than CPU-only A3C when using larger policies.
- Baselines includes code for training feedforward convnets and LSTMs on the Atari benchmark with A2C.
# OpenAI Five Beats Dota 2 Pros: Self-Play, Scaling, and Open Challenges
OpenAI's Dota 2 bot shows that self-play can take a machine learning system from far below human skill to superhuman performance, given enough compute. In about a month, the 1v1 bot went from barely matching a high-ranked player to beating top professionals, including the world's best 1v1 player. Because the training data is generated by the agent itself, performance keeps improving rather than plateauing at the level of a fixed human-generated dataset.
## Progress Timeline
- Rating improvement was steady: the bot's TrueSkill rating, computed from simulated games between bot versions, rose roughly linearly over time, which means its strength grew exponentially.
- March 1: first classical reinforcement learning results, where a Drow Ranger learned to kite a scripted Earthshaker.
- May 8: a 1.5k MMR tester reported improving faster than the bot.
- Early June: the bot beat the 1.5k MMR tester.
- June 30: the bot won most games against a 3k MMR tester.
- July 8: the bot barely won its first game against a 7.5k MMR semi-pro.
- August 7: the bot beat a former pro (6.2k), a pro (8.5k), and another pro (8.9k), with a 3–0, 2–1, and 3–0 record.
- August 9: the bot beat Arteezy, a 10k top player, 10–0.
- August 10: the bot beat Sumail, a top 1v1 player, 6–0, who then called it unbeatable.
- August 11: the bot beat Dendi, a former world champion, 2–0.
## The 1v1 Task Setup
- The bot played under standard tournament rules with no AI-specific simplifications.
- Observations used the same Bot API features humans can see, covering heroes, creeps, courier, and nearby terrain. The game is partially observable.
- Actions were available through the Bot API at a frequency comparable to humans, including movement, attacks, and item use.
- Rewards were based on winning, plus basic signals such as health and last hits.
- Only a few dozen item builds were whitelisted for training, and one was chosen for evaluation.
- The initial creep block was trained separately with traditional RL, since it occurs before the opponent appears.
## Improving During The International
- Human "coaching" combined with self-play allowed major improvements between Monday and Thursday of The International.
- A Monday win by Pajkatt using an early magic wand led the team to add that build to the training whitelist.
- A Wednesday test revealed the bot losing health in the first wave. The team found that this behavior baited opponents into aggression, and further self-play taught the bot to counter the baiting. Meanwhile, they used Monday's bot for the first wave only.
- After the Arteezy matches, an updated creep block model added one TrueSkill point, and further training before the Sumail match added two more.
- Sumail noticed the bot casting razes outside enemy vision, exploiting a mechanic the team hadn't known about: abilities cast outside enemy vision prevent the enemy from gaining a wand charge.
## Known Exploits
Players at a LAN event played over 1,000 games trying to beat the bot by any means. The successful exploits fell into three types:
- **Creep pulling:** Players lured lane creeps right as they spawned, between tier 2 and tier 3 towers, so dozens of creeps chased them around the map and eventually wore down the tower.
- **Orb of venom with wind lace:** This gave a large level 1 movement speed advantage, enabling a quick first blood and a further kill.
- **Level 1 razes:** Several 6–7k MMR players killed the bot at level 1 by landing 3–5 razes in quick succession. This required a lot of skill.
The team notes that fixing these 1v1 issues would be similar to fixing the Pajkatt bug. In 5v5, such situations aren't really exploits, and the system must handle unfamiliar and unusual situations it has never seen.
## Infrastructure Challenges
- Running Dota 2 on cloud GPUs initially failed with an obscure error. The team found the game booted only with a monitor attached, so they configured cloud instances to simulate one.
- Because Dota lacked custom dedicated server support, scalable GPU-free runs depended on slow software rendering. The team wrote a shim that stubbed most OpenGL calls, except those needed for booting.
- A scripted baseline bot was built for comparison and to understand the Bot API. It reached 70 last hits in ten minutes on an empty lane. The current best 1v1 bot reaches about 97, and the theoretical maximum is 101.
## Next Step: 5v5
- The team plans to start 5v5 with behavioral cloning, using a dataset of 5.8 million expert-level replays collected since the previous November, roughly 45 minutes per game with 10 human players.
- Replays come from OpenDota, which the team supports with a $12k donation.
- The team is hiring engineers and researchers, and thanks Microsoft Azure and Valve for their support.
# 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.
# Summary of "Gathering Human Feedback" (RL-Teacher)
OpenAI released RL-Teacher, an open-source system for training AI agents with occasional human feedback instead of hand-crafted reward functions. The technique is aimed at safer AI systems and at reinforcement learning tasks where rewards are difficult to specify. The entire system is under 1,000 lines of Python, excluding the example agents.
## Core Components
- **Reward predictor:** A module that can be plugged into any agent. It learns to predict which actions a human would approve of.
- **Example agent:** An agent that learns from a reward function produced by the reward predictor. RL-Teacher includes three pre-integrated algorithms, including OpenAI Baselines PPO.
- **Web app:** An interface where humans give feedback. This feedback is the data used to train the reward predictor.
## Running an Experiment
- The web server must be set up first. An experiment is then launched with `rl_teacher/teach.py`, using the `human` feedback mode, 175 pretraining labels, the `Reacher-v1` environment, and a run name.
- Human raters give feedback through the web interface, which can run locally (not recommended) or on a separate machine.
- Full documentation is in the project's GitHub repository.
OpenAI invites researchers and engineers to experiment with the tool and share their results.