TL;DR
The authors propose Asymmetric Self-Play, a simple yet powerful unsupervised reinforcement learning (RL) scheme where two "minds" of the same agent, Alice and Bob, compete. Alice sets tasks by moving to a state, and Bob must either reverse her actions or repeat them. This "arms race" automatically generates a curriculum of increasingly difficult exploration, significantly speeding up learning on downstream tasks with sparse rewards.
The Challenge of Sparse Rewards
Standard reinforcement learning is notoriously sample-inefficient. In environments with sparse rewards—where an agent only gets a "win" signal after a long, specific sequence of actions—the agent often spends millions of episodes wandering aimlessly.
The core challenge is exploration: how does an agent learn the "physics" and layout of its world before it even knows what the goal is? While "intrinsic motivation" (curiosity) is a popular solution, it often requires complex density modeling or manual reward shaping. This paper seeks a way for an agent to autonomously discover a curriculum of useful skills without any external supervision.
Methods: Asymmetric Self-Play
The authors introduce a game between two internal agents, Alice and Bob, who share the same physical body but have different objectives.
- Alice’s Turn: Alice starts at an initial state $s_0$ and performs a sequence of actions until she hits a "STOP" command at state $s_t$.
- Bob’s Turn:
- In reversible environments, Bob starts at $s_t$ and must return to $s_0$.
- In resettable environments, the world resets to $s_0$, and Bob must reach $s_t$.
- The Reward Loop:
- Bob is rewarded for completing the task as quickly as possible ($R_B = -\gamma t_B$).
- Alice is rewarded if Bob takes a long time to succeed, but she is penalized for her own time spent ($R_A = \gamma \max(0, t_B - t_A)$).
This creates an asymmetric competition. Alice has the "home-field advantage" because she knows the path she just took. To maximize her reward, she must find states that are easy for her to reach but difficult for Bob to figure out. As Bob improves, Alice is forced to explore further and find even more complex tasks, creating an automatic curriculum.
Environments Evaluated
The researchers evaluated the method across five diverse environments:
- Long Hallway: A 1D toy environment used for theoretical validation.
- MazeBase: A 2D grid world containing objects like keys, doors, and light switches.
- Mountain Car (RLLab): A classic continuous control task requiring momentum to climb a hill.
- SwimmerGather (RLLab/MuJoCo): A continuous "worm" agent that must swim to collect apples while avoiding bombs.
- StarCraft (TorchCraft): A complex micro-management sub-task involving mining minerals and building Marine units.
Key Insights and Results
The "Goldilocks" Curriculum
The reward structure prevents Alice from setting impossible tasks. If Bob fails completely, he hits a time limit ($t_{Max}$), and Alice's reward plateaus. Her optimal strategy is to find tasks that are just beyond Bob's current capability.
Universal Bob and Knowledge Transfer
In the tabular setting, the authors prove that if Alice and Bob reach an equilibrium, Bob effectively learns the shortest path between any two reachable states in the environment. Bob’s experience in self-play makes him a "specialist" in the environment. When a real target task is introduced (e.g., "find the flag"), Bob can leverage his internal map to solve it much faster than a "blank slate" agent.
Performance Gains
- Mountain Car: Asymmetric self-play outperformed state-of-the-art exploration methods like VIME and SimHash, reaching the goal significantly earlier in training.
- MazeBase: In a "Light Key" maze where the agent must toggle switches in the dark, self-play agents learned the task in roughly 1/10th the episodes required by a standard REINFORCE agent.
- StarCraft: The self-play agent learned to build Marines (a multi-step process involving mining, building a supply depot, and then a barracks) much faster than count-based exploration baselines.
- Qualitative Progress: In MazeBase, the authors observed Alice's behavior evolving: she first learned to move, then to toggle the light, then to use the key, and finally to combine these actions, effectively "teaching" Bob the mechanics of the world.
Limitations and Future Work
- Environment Constraints: The method currently requires the environment to be either nearly reversible or easily resettable. It might struggle in "one-way" environments where an action (like falling down a hole) cannot be undone.
- Alice's Meta-Exploration: Alice herself can get stuck. If she finds a "local" set of difficult tasks, she might stop exploring the rest of the state space. The authors suggest using multiple "Alices" to encourage broader coverage.
- Task Communication: Currently, the "task" is communicated simply by the state Bob is placed in or the state he is told to reach. Future work could involve using Alice to generate more abstract goals or linguistic instructions.
Summary updated