Marginal

Multi-Agent Systems

Many interacting learners and decision-makers: agents and environments, stochastic (Markov) games, no-regret learning and multiplicative weights, multi-agent reinforcement learning, consensus and distributed averaging, task allocation by auction, coalition formation, communication and signaling, social dilemmas among agents, and mean-field games.

17 lessons in 2 units

Start your free trial14 days free. No card needed.
What you'll learn

17 lessons, one small step at a time

Each lesson states its goal, then works up to it in short steps with practice after each. A placement test at the start skips what you already know.

Agents & Games

6 lessons
  1. Agents & environmentsClassify environments along the standard dimensions, describe an agent by its percepts, actions and policy, and say what other agents change.
  2. Mixing in zero-sum gamesCompute equilibrium mixes in 2×2 zero-sum games, explain why mixing protects a player, and set up the linear program for larger games.
  3. Stochastic gamesCompute the values of zero-sum stage games and of Shapley backups, and explain why general-sum stochastic games are harder.
  4. RegretCompute an agent's regret against the best fixed action in hindsight, and state what no-regret learning can guarantee.
  5. Multiplicative weightsApply the multiplicative-weights update, use its regret guarantee, and explain where no-regret learners end up.
  6. Multi-agent RLCount the joint actions multi-agent learners face, describe the practical methods and emergent behaviors of multi-agent RL, and show where independent learners settle in a coordination game.

Coordination & Cooperation

11 lessons
  1. Averaging with neighborsUpdate values by averaging with neighbors, track the gap between two agents, and write a round of averaging with the graph Laplacian.
  2. ConsensusCompute the consensus value when agents weigh each other unequally, and how fast consensus is reached.
  3. Contract-net auctionsFind the winner, payment and profit in a second-price contract net, and explain why second-price payment makes truthful bids sensible.
  4. Optimal task assignmentFind the minimum-cost assignment of agents to tasks, show where the greedy approach fails, and count the possible assignments.
  5. Stable team payoffsCheck whether a split of a team's value is in the core, and find when the core is empty.
  6. Coalition formationCompute the Shapley value of a three-agent game, show how fairness and stability can conflict, and count coalition structures.
  7. Communication & signalingCompute success rates in Lewis signaling games, and explain when communication between agents is credible.
  8. The tragedy of the commonsCompute equilibrium harvests from a shared resource and how far they exceed the cooperative optimum, and explain why learning agents overexploit.
  9. Social dilemmas among agentsCompute how much of the possible payoff a social dilemma loses, describe how communities and agents escape it, and classify the three kinds of dilemma.
  10. Mean-field gamesFind the equilibrium of a congestion example with many small agents, and describe where mean-field games are used.
  11. The price of anarchyCompute the price of anarchy in Pigou's example, and explain Braess's paradox.
Sample lesson

Agents & environments

Goal: Classify environments along the standard dimensions, describe an agent by its percepts, actions and policy, and say what other agents change.

Trading algorithms, self-driving cars, warehouse robots and language-model assistants increasingly share their environments with other automated agents. Multi-agent systems studies what happens when many decision-makers, each pursuing its own goals, act in the same world.

We will classify environments, describe percepts, actions and policies, and finish with other agents.

Step 1: Kinds of environments

An agent perceives its environment and acts on it to achieve goals. Environments differ along several lines: fully or partially observable, depending on whether the agent sees the whole state; deterministic or stochastic; episodic, where each decision stands alone, or sequential, where actions affect what comes later; static or dynamic; and single- or multi-agent, with the other agents cooperative, competitive or mixed.

Examples: classifying each image independently is episodic. Chess against a fixed program is fully observable and competitive. Poker is partially observable, since players cannot see each other's cards. A self-driving car on a busy road faces the hard case on every line: partially observable, stochastic, sequential, dynamic and full of other agents.

Step 2: Percepts, actions and policies

Formally, an agent receives percepts, takes actions, and chooses actions by a policy: a rule mapping what it has perceived so far to what it does next. The environment has states that change by its dynamics, which depend on the actions taken, and it produces the percepts the agent receives. In a fully observable environment the percept is the state itself.

Step 3: Other agents

With several agents, each one's environment includes the others, who are also adapting. In a Markov decision process the transition probabilities stay fixed; here, from one agent's point of view, they shift whenever the others change their behavior, so the environment is nonstationary.

Because each agent's best action depends on what the others do, game theory enters, along with communication and the question of what counts as rational. Interests can be aligned, as for warehouse robots sharing aisles, opposed, as for two chess programs, or mixed, as for trading algorithms. For AI safety, multi-agent settings matter because agents may collude, deceive or exploit others in ways no single agent was designed to.

In the app, each step ends with practice questions, new ones every time, and the lesson comes back later in spaced reviews.

Start Multi-Agent Systems

Lessons that need something you haven't learned yet bring it in first, from any course.

Start your free trial14 days free. No card needed.