Reinforcement Learning for Dynamic Agent Populations

300 concepts248 papers4 proposals

In standard Multi-Agent Reinforcement Learning (MARL), environments are typically treated as closed systems with a static, predefined set of participants. Neural network architectures are hardcoded to expect an input vector of a fixed size (such as $N$ agents with $D$ features each) and output a joint action space of a fixed dimension.

However, when an agent unexpectedly leaves—due to a hardware failure, a character death in a game, or a seller exiting an e-commerce marketplace—or when a new agent joins, this rigid structure breaks down. The tensor dimensions mismatch, the joint action space shifts, and centralized value functions collapse. As noted by Chongjie Zhang et al. in Fairness in Multi-Agent Sequential Decision-Making and Stefano V Albrecht et al. in Autonomous agents modelling other agents: A comprehensive survey and open problems, this closed-system assumption prevents traditional MARL from scaling to real-world open multi-agent systems where population turnover is continuous.

To build systems that survive fluctuating team compositions without requiring costly retraining, researchers have shifted away from fixed-position representations toward architectures that treat agent populations as fluid sets, sequences, or dynamic hierarchies.

Breaking the Fixed-Input Constraint via Set and Sequence Modeling

To handle a variable number of agents at test time, an architecture must treat the population not as a rigid, ordered vector, but as an unordered set or a flexible sequence.

By framing multi-agent coordination as a sequence modeling problem, Muning Wen et al. developed the Multi-Agent Transformer (MAT) in Multi-Agent Reinforcement Learning is a Sequence Modeling Problem. Instead of feeding a fixed matrix into a multi-layer perceptron, the authors leverage self-attention mechanisms to process agents as variable-length sequences of tokens. Because the attention mechanism computes relations pairwise and is invariant to the sequence length, the model can seamlessly generalize to larger or smaller team sizes during execution.

Fixed Architecture (Fails on population change):
[Agent 1, Agent 2, Agent 3] ---> [ Fixed MLP Layer ] ---> Fixed Joint Actions

Set/Sequence Architecture (Handles population change):
[Agent 1, Agent 2, ..., Agent N] ---> [ Self-Attention / Graph Layer ] ---> Scalable Actions

Graph-based representations offer a similar mathematical advantage. Arrasy Rahman in Towards Open Ad Hoc Teamwork Using Graph-based Policy Learning proposes Graph-based Policy Learning (GPL), which models agents as nodes in a dynamic graph. When agents join or leave the environment, nodes are simply added or removed from the graph adjacency matrix. The underlying Graph Neural Network (GNN) computes joint-action values over fluid team compositions by aggregating local neighborhoods, decoupling the network's structural integrity from the absolute number of participants.

Dynamic Value Factorization and Subgrouping

In cooperative MARL, Centralized Training with Decentralized Execution (CTDE) often relies on value function factorization to decompose a global team reward into individual agent utilities. Traditional mixing networks require a fixed number of inputs to compute this global value. If the team size changes mid-episode, the credit assignment mechanism fails.

The solution is to factorize over subgroups or entities rather than the entire global population. Shariq Iqbal et al. introduced this concept with REFIL in Randomized Entity-wise Factorization for Multi-Agent Reinforcement Learning. Instead of learning a single global mixing function, REFIL trains agents to estimate their utility within randomly sampled subgroups of entities. By learning to reason about localized interactions rather than a fixed global state, the value function generalizes to arbitrary population sizes.

Taking a structural approach, Thomy Phan et al. developed VAST in VAST: Value Function Factorization with Variable Agent Sub-Teams. VAST dynamically assigns agents to sub-teams based on spatial proximity or tactical needs. Instead of factorizing the global $Q$-value across all agents simultaneously, it factorizes within these flexible, local sub-teams:

$$\sum_{m \in \text{Sub-teams}} Q_m(s_m, \mathbf{a}_m)$$

This allows the organizational structure to expand or contract dynamically as environmental conditions shift, bypassing the curse of dimensionality inherent to large-scale populations.

Preventing Over-Coadaptation

When agents train together in a fixed group, they tend to over-coadapt, developing highly specialized policies that rely on the exact behavioral quirks of their specific teammates. If a teammate is replaced or removed, the remaining agents experience coordination failure because their expectations of teammate behavior are violated.

To mitigate this, Jiangxing Wang et al. proposed Mutual-Information Regularized Multi-Agent Policy Iteration (MIPI) in Mutual-Information Regularized Multi-Agent Policy Iteration. By applying a mutual information regularizer during training, the authors penalize agents for over-relying on the fine-grained actions of specific teammates. This constraint forces the agents to learn robust, independent policies that achieve zero-shot generalization when the team composition changes.

Another strategy decouples global coordination from individual execution via hierarchical control. Bo Liu et al. developed the Coach-Player framework (COPA) in Coach-Player Multi-agent Reinforcement Learning for Dynamic Team Composition. In COPA, a high-level "coach" network observes the entire environment and periodically broadcasts abstract strategic guidance, while individual "player" networks execute local actions based on this guidance.

Because individual players only need to align their policies with the coach's high-level intent—rather than coordinating directly with every other player—the team can absorb new members or lose existing ones without catastrophic failure or the need for costly retraining.

History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_dynamic_team_composition_5fb4f13d,
  title = {dynamic team composition},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/dynamic-team-composition/rdr_5fb4f13da2334b88bef4b8992b7a774e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_dynamic_team_composition_5fb4f13d_v1,
  title = {dynamic team composition},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/dynamic-team-composition/rdr_5fb4f13da2334b88bef4b8992b7a774e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake