Skip to main content
MahiDev — Learn. Build. Become AI-ready.

Lesson 75

MADDPG

Train each agent with a critic that sees every agent's action, then act using only local information. One example is on this page.

Intermediate12 min
MADDPG MahiDev

What You Will Learn

  • Idea
  • Example
  • When to use it

Idea

Multi-agent DDPG gives each agent an actor that sees only its own observation. The critic for training sees the actions of all agents, so the environment looks less random during the update. At execution time the critic is dropped and each actor runs on local information.

Example

python
own_action = 0.5
other_action = -0.2
central_q = 0.3 * own_action + 0.3 * other_action
print(f"central critic: {central_q:.2f}")

Output:

text
central critic: 0.09

When to use it

  • Use it when several agents take continuous actions and each one changes the other's outcome.
  • The critic score above depends on both actions. The actor that executes does not need the other action as input.
  • Centralized training with decentralized execution is the pattern to remember.

Loading playground…