Agent Modelling

Definition

Agent modelling

An agent explicitly models the policies of the other agents, so that it can condition its own action selection on their predicted behaviour and adapt when that behaviour changes. In deep MARL, agent ‘s model of agent is a network :

  • input: agent ‘s own observation history
  • output: a probability distribution over agent ‘s actions

It is trained on the actions agent has observed take.

Opponent shaping goes one step further: since the other agents are learning, an agent can shape their learning to its own advantage. The well-known method is LOLA (Learning with Opponent-Learning Awareness).

Intuition

Predicting the others instead of absorbing them

An independent learner experiences the other agents only as noise in its rewards and transitions, averaged over whatever they did in the past. An agent with models asks directly “what is agent likely to do now, given what I see?” and picks the action that is best against that prediction. Opponent shaping asks a further question: “how will my move change what learns next?”

Mathematical Formulation

Model loss (negative log-likelihood of the observed action):

Deep joint-action learning. Agent learns a value over joint actions and averages it over the models’ predictions:

  • action selection: ε-greedy on
  • target: ( at terminal states)
  • critic loss: on the observed joint action
  • with many agents the sum over can be approximated by sampling the others’ actions from the models

LOLA (two agents , ; , their expected returns as functions of both parameter vectors):

A naive learner uses . LOLA differentiates through the opponent’s anticipated update, adding a shaping term: how moves the opponent’s learning step, times what that move is worth to agent .

Key Properties / Variants

  • Counts as decentralised training (agents learn from their own observations), but each agent must observe the others’ actions, and needs one model per other agent: extra networks per agent.
  • Models predict behaviour; they do not copy the other agent’s true parameters.
  • LOLA needs the opponent’s parameters and learning rule, or an estimate of them. (Outside the AGAI lecture: in the iterated Prisoner’s Dilemma, LOLA agents learn reciprocal, tit-for-tat-like cooperation where naive learners defect.)
  • Contrast with CTDE methods (centralised critics, value decomposition), which infer the others’ behaviour implicitly from training data.

Connections

Appears In