techlist.io

Maddpg

1 posts

OpenAI2017-06-073 min readCurated summary

Learning to cooperate, compete, and communicate

# Multi-Agent Reinforcement Learning with MADDPG OpenAI's MADDPG (Multi-Agent Deep Deterministic Policy Gradient) is a reinforcement learning algorithm for training multiple agents that must cooperate or compete in shared environments. The authors argue that multiagent environments are important stepping stones toward AGI because they generate a natural curriculum and never settle into a stable equilibrium. Their approach, centralized training with decentralized execution, lets agents learn coordinated and adversarial behaviors that traditional decentralized methods fail to learn. ## Why Multiagent Environments Matter - The difficulty of the environment scales with the skill of competitors, so agents face a natural curriculum. Competing against clones of oneself produces an environment matched exactly to one's own skill level. - No stable equilibrium exists, so there is constant pressure to improve regardless of how capable an agent already is. ## How MADDPG Works - MADDPG extends DDPG and draws on actor-critic reinforcement learning. - Each agent is an "actor" that selects actions, while a "critic" evaluates those actions by predicting expected future reward, which is more stable than using raw rewards directly. - Each critic can access the observations and actions of all agents during training, enabling globally coordinated behavior. - At test time, agents act only on their own observations plus predictions of others' behavior, so the central critic is not needed during execution. - Because each agent's critic is learned independently, the method also handles arbitrary reward structures, including fully adversarial ones. ## Experimental Results - MADDPG outperformed DDPG on every task tested. - Demonstrated behaviors include two agents learning to split up to hide their intended destination from an opponent, one agent communicating a landmark's name to another, and three agents coordinating to reach landmarks without colliding. - In a predator-prey setup, four red agents learned to team up to chase a single green agent, while green agents learned to split up and use the water to evade them. ## Limitations of Traditional Decentralized RL - Each agent must simultaneously predict others' actions while learning its own, which makes the environment non-stationary and hard to learn, especially in competitive settings. - Policy gradient methods show high variance when rewards are inconsistent. Adding a critic improved stability but still failed on tasks like cooperative communication, suggesting that modeling other agents' actions during training is essential for cooperation. - In early experiments, listener agents learned to ignore speakers that sent inconsistent messages, setting the speaker's weights to zero. Once this happened, the speaker received no feedback and could not recover. Forcing listeners to attend to the speaker did not help, because the speaker still had no signal about which messages were relevant. The centralized critic addresses this by letting speakers learn which utterances matter to other agents' actions. ## Future Directions - Agent modeling has a long history in AI, but earlier work mostly considered games with few time steps and small state spaces. - Deep learning handles complex visual inputs, and RL handles long-horizon behavior. Combined, they allow training multiple agents without requiring knowledge of environment dynamics. - The authors suggest this opens the door to problems involving communication and language learned from high-dimensional environment data.