In standard reinforcement learning, an agent treats the world as a static puzzle to be solved. But in multi-agent systems, the "world" includes other agents who are also learning, adapting, and pursuing their own goals. This creates the moving target problem: as Agent A learns to cooperate with Agent B, Agent B changes its behavior, rendering Agent A’s strategy obsolete.
To solve this, researchers have moved away from treating others as random noise in the environment. Instead, they use latent agent modeling—the idea that an agent can infer the hidden "type," "intent," or "strategy" of its peers by observing their actions. By encoding these observations into a compact latent representation, agents can anticipate others' moves, adapt to unknown teammates, and even proactively shape how their opponents learn.
Inferring the Hidden State of Others
In most real-world scenarios, you cannot see another agent's internal code or private observations. You only see what they do. The core mechanism of latent modeling is to treat these observed actions as a "noisy signal" of a hidden variable.
Georgios Papoudakis and Stefano V Albrecht demonstrated this in Variational Autoencoders for Opponent Modeling in Multi-Agent Systems. They used a Variational Autoencoder (VAE) to map an agent's local interaction history into a latent embedding. This embedding acts as a "profile" of the opponent. Because the VAE is trained to reconstruct the opponent's behavior, the latent space naturally organizes itself: similar strategies cluster together, allowing the agent to identify an opponent's style after just a few interactions.
This approach is particularly powerful under partial observability. In Agent Modelling under Partial Observability for Deep Reinforcement Learning, Papoudakis and Filippos Christianos showed that by forcing an encoder to predict the private observations of others, the resulting latent representation captures essential features of the global state that would otherwise be invisible.
Coordination Without Prior Agreement
One of the most difficult challenges in the field is Ad Hoc Teamwork: collaborating with teammates you have never met before. Without a shared protocol, how do you coordinate?
The solution lies in temporal behavioral modeling. In Towards Open Ad Hoc Teamwork Using Graph-based Policy Learning, Arrasy Rahman and colleagues used Recurrent Neural Networks (RNNs) to process the trajectories of unknown teammates. These RNNs generate latent embeddings that characterize the teammates' underlying policies. By feeding these embeddings into a Graph Neural Network, the agent can "plug and play" into teams of varying sizes and styles, effectively disentangling its own role from the collective behavior of the group.
Similarly, Caroline Wang and Peter Stone proposed POAM in N-agent Ad Hoc Teamwork. POAM uses an encoder-decoder to "profile" uncontrolled agents on the fly. This allows a subteam of controlled agents to adapt their coordination style to match the quirks of the broader, unpredictable population.
Shaping the Future of Other Agents
If you can model how an agent is behaving, can you also model how they will learn? This is the frontier of Learning Awareness.
In the seminal work Learning with Opponent-Learning Awareness (LOLA), Jakob Nicolaus Foerster and Pieter Abbeel introduced agents that differentiate through the anticipated learning steps of others. Instead of just reacting to an opponent, a LOLA agent "shapes" the opponent's learning process, incentivizing them to cooperate (e.g., by playing "tit-for-tat").
This concept was expanded by Dong-Ki Kim and Matthew Riemer in Influencing Long-Term Behavior in Multiagent Reinforcement Learning. Their algorithm, FURTHER, uses variational inference to estimate the hidden learning parameters of peers. By understanding the "learning rules" of its neighbors, a FURTHER agent can adopt a strategy that steers the entire system toward a more stable and high-performing equilibrium.
Why Latent Modeling Works
The intuition behind this entire research direction is that multi-agent complexity is often low-dimensional. While the space of all possible joint actions is astronomical, the number of sensible strategies or agent types is usually small.
By learning to map high-dimensional interaction histories into low-dimensional latent spaces—as seen in Woodrow Zhouyuan Wang's SILI or Jiahan Cao's LINDA—agents gain a "theory of mind." They stop seeing their peers as part of the environment's physics and start seeing them as intentional actors. This shift from "reacting to noise" to "reasoning about intent" is what allows these systems to achieve superhuman coordination in games like StarCraft II (Huang et al.) and robust performance in real-world robotics (Li et al.).