techlist.io
OpenAI2017-10-102 min read

Curated summary

Competitive self-play

Read original(opens in new tab)

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.

Continue with another curated summary.