Hierarchical, Symbolic, Language, and Multi-Agent Planning › Coordination, opponents, and nested beliefs

Michael BrenndoerferJuly 12, 20267 min read
World Models HandbookAll chapters
Part 7 of 12Planning and Agency
Chapter 42Hierarchical, Symbolic, Language, and Multi-Agent Planning › Coordination, opponents, and nested beliefs
Reading section 5 of 13 · Coordination, opponents, and nested beliefs · 7 minSection 5 of 13 · 7 min

Book contents

Section 5 of 13 · 7 min read

Hierarchical, Symbolic, Language, and Multi-Agent Planning › Coordination, opponents, and nested beliefsOne section · Sections in this chapter5 / 13 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Other agents introduce joint actions, private information, and strategic dependence. A Markov game's transition kernel can remain stationary when all policies are fixed. From one independent learner's perspective, however, the induced dynamics become nonstationary when teammates or opponents update their policies. Explicit opponent modeling is useful when adaptation to particular agents matters, but robust policies, self-play, population training, and centralized planning need not expose an opponent model as a named state variable.

Multi-agent as a game

A fully observed multi-agent decision problem can be written as a stochastic (Markov) game, introduced by Shapley (1953) and adopted as a multi-agent reinforcement-learning framework by Littman (1994):

G=⟨S,{Ai}i=1N,P,{ri}i=1N,γ⟩\mathcal{G} = \langle \mathcal{S}, \{\mathcal{A}_i\}_{i=1}^N, P, \{r_i\}_{i=1}^N, \gamma \rangle

where:

  • S\mathcal{S}: the shared state space of the environment
  • Ai\mathcal{A}_i: the action space of agent ii, with NN the number of agents
  • P(s′∣s,a1,…,aN)P(s' \mid s, a_1, \dots, a_N): the transition kernel, which depends on the joint action of all agents
  • ri:S×A1×⋯×AN→Rr_i: \mathcal{S} \times \mathcal{A}_1 \times \cdots \times \mathcal{A}_N \to \mathbb{R}: the reward function for agent ii
  • γ∈[0,1)\gamma \in [0, 1): the discount factor shared by all agents

Each action may affect the shared transition and other agents' outcomes. When N=1N=1, the tuple reduces to an MDP. Under partial observability, agent ii receives observation oio_i and conditions its policy on a local history hit=(oi0,ai0,…,oit)h_i^t=(o_i^0,a_i^0,\ldots,o_i^t) rather than on the shared state. A decentralized planner must therefore reason about joint behavior without assuming that every actor sees the same information.

The value of one action can depend on what others do and on what they believe about the focal agent. Rock-paper-scissors provides a minimal warning: against an adaptive opponent, a deterministic policy is exploitable, while the equilibrium mixed strategy randomizes uniformly.

The standard tools for reasoning in these settings include:

  • Nash equilibrium, where no agent can improve by a unilateral deviation, for strategic interactions generally Nash (1951);
  • subgame-perfect equilibrium for extensive-form games, requiring a Nash equilibrium in every proper subgame;
  • level-kk or cognitive-hierarchy reasoning, where level 0 is a specified nonstrategic baseline and higher levels respond to lower levels Camerer, Ho, and Chong (2004);
  • Opponent modeling as a supervised learning problem: predict the opponent's action given the history.

These tools encode different assumptions. The Nash definition is mutual best response; using it as a behavioral prediction can additionally require strong rationality and information assumptions. Subgame perfection rules out non-credible behavior in proper subgames, while imperfect-information settings often need refinements defined at information sets. Level-kk models can fit bounded reasoning in some laboratory games, but their advantage is context dependent. Learned opponent models avoid an equilibrium requirement, yet still assume a policy class, stationarity window, and training distribution.

Theory of mind and nested beliefs

The recursive structure of “what I think you think” can be represented with interactive beliefs. For focal agent ii, let Θ−i(d−1)\Theta_{-i}^{(d-1)} denote a chosen class of depth-(d−1)(d-1) models of the other agents. A depth-dd belief has type

bi(d)∈Δ ⁣(S×Θ−i(d−1)),b_i^{(d)} \in \Delta\!\left(\mathcal{S}\times\Theta_{-i}^{(d-1)}\right),

where Δ(X)\Delta(X) denotes probability distributions over XX. A base type in Θ(0)\Theta^{(0)} is a specified behavioral model; it need not be uniform. At the next depth, a type may itself contain a belief about physical state and lower-depth models. This typed construction follows the interactive-state view of Gmytrasiewicz and Doshi (2005). It has no general NDN D dimension formula. A factorized implementation may store NN summaries with DD parameters each, but correlated types, histories, and deeper model classes can grow much faster.

Bounding depth is one approximation. Another shares parameters across agents or keeps only a small population of opponent types. The approximation must state what one node represents, which agents can appear next, and whether repeated identities are allowed.

The following count makes one deliberately uncompressed approximation concrete. In a toy tree where each modeled agent branches to every other agent identity, each additional depth multiplies the node count by N−1N-1. This is an illustration, not a general complexity law.

In[7]:
Code
## Illustrative count for one focal agent in a full tree of distinct-other models.
import numpy as np

N_AGENTS = 3
DEPTHS = np.arange(0, 7)
BRANCHING = N_AGENTS - 1
belief_terms = BRANCHING**DEPTHS
Out[8]:
Visualization
Semilog plot of a toy full binary opponent-model tree growing from one to sixty-four nodes over depths zero through six.
Illustrative node count at exact depth $d$ for one focal agent in a full tree where each model branches to the other $N-1=2$ agent identities. The count is $(N-1)^d$ only under this deliberately uncompressed representation; it is not a general dimension or complexity law for interactive beliefs.

A message such as “I will go left” is an observation, not automatically a commitment. In an aligned protocol with reliable semantics and incentives, it can reduce uncertainty about the sender's intended policy. Under deception, ambiguity, execution noise, or conflicting incentives, nested uncertainty remains. Communication is valuable when it is informative and credible, not because it universally collapses strategic reasoning.

The following two-action coordination problem makes that dependence concrete. Carrying yields value 4 only if the partner also carries; inspecting independently yields value 2. A message changes the focal agent's belief about the partner, and therefore its best response, but the computation treats the message as probabilistic evidence rather than a binding promise.

In[9]:
Code
prior_partner_carries = 0.40
p_message_given_carry = 0.90
p_message_given_inspect = 0.20

posterior_partner_carries = (
    p_message_given_carry
    * prior_partner_carries
    / (
        p_message_given_carry * prior_partner_carries
        + p_message_given_inspect * (1 - prior_partner_carries)
    )
)


def coordination_values(prob_partner_carries):
    return {"carry": 4.0 * prob_partner_carries, "inspect": 2.0}


before_message = coordination_values(prior_partner_carries)
after_message = coordination_values(posterior_partner_carries)

print(f"Prior P(partner carries): {prior_partner_carries:.2f}")
print(
    f"Best response before message: {max(before_message, key=before_message.get)}"
)
print(f"Posterior after message: {posterior_partner_carries:.2f}")
print(
    f"Best response after message: {max(after_message, key=after_message.get)}"
)
Out[9]:
Console
Prior P(partner carries): 0.40
Best response before message: inspect
Posterior after message: 0.75
Best response after message: carry

The switch occurs because the posterior exceeds the threshold q=0.5q=0.5, where 4q=24q=2. Different likelihoods or incentives can leave the best response unchanged. This tiny example does not solve decentralized planning; it shows how a communication observation enters a belief-dependent action choice.

Cooperative and adversarial settings

The dynamics of coordination depend sharply on whether other agents are cooperative, adversarial, or indifferent:

  • Fully cooperative. Agents share a reward, but decentralized execution remains difficult when observations differ. Centralized training with decentralized execution (CTDE) is one widely used research pattern when joint information is available during training.
  • Two-player zero-sum. Rewards satisfy r1+r2=0r_1+r_2=0; finite games have a minimax value. Constant-sum games can be normalized to this form.
  • Mixed-motive. Agents' interests partially overlap. Many real coordination and negotiation problems are mixed-motive: two companies negotiating a deal, two robots sharing a corridor, two nations managing a border. Nash equilibrium is a central solution concept, but there can be multiple equilibria with very different welfare properties, so which one gets selected becomes a first-order design question.

In mixed-motive settings, equilibria can have different welfare properties and equilibrium selection matters. Exact solution becomes intractable in many large or partially observable formulations, though complexity depends on the game class, representation, horizon, and solution concept. Practical methods exploit structure, self-play, approximation, or learned models rather than applying one universal recipe.

In CTDE, a centralized critic can condition on joint information during training while decentralized actors use local observations at execution. This can improve credit assignment and reduce apparent nonstationarity, as in Lowe et al. (2017). It does not guarantee equilibrium selection, communication, robustness, or coordination under distribution shift.

For world models, the requirement is to account for other agents' behavior. A model may represent policies, types, and beliefs explicitly, or encode them implicitly in a history-dependent latent state. Either way, evaluation should separate prediction under fixed co-player policies from adaptation after those policies change.