SOM: Structured Opponent Modeling for LLM-based Agents via Structural Causal Model

Shiyue Cao, Pei Xu, Likun Yang, Lei Cui, Xiaotang Chen, Kaiqi HuangarXiv 2026 · DOI

TL;DR

Structured Opponent Modeling (SOM) is a new two-stage framework that helps LLM-based agents better predict opponent behavior in dynamic multi-agent games. By using Structural Causal Models (SCMs) to explicitly separate opponent model construction from action prediction, SOM enables agents to map out an opponent's hidden reasoning pathways, leading to more accurate, stable, and adaptable strategic decisions.

What Problem Does This Paper Address?

When large language models (LLMs) act as autonomous agents in multi-agent environments (like negotiations or strategic games), their success depends heavily on predicting what their opponents will do next.

Currently, most methods rely on implicit contextual reasoning—essentially throwing the game history into the prompt and asking the LLM to guess the opponent's next move. This approach entangles modeling (understanding how the opponent thinks) with prediction (anticipating their next action). Because there is no explicit reasoning path, the LLM often misses key intermediate steps (like inferring an opponent's hidden beliefs) and is highly prone to hallucinations. Furthermore, static reasoning structures like Chain-of-Thought (CoT) struggle to adapt to the non-stationary, constantly evolving strategies found in competitive games.

Methods

The authors introduce Structured Opponent Modeling (SOM), which distinctly splits opponent modeling into two explicit stages:

  1. Opponent Model Construction: Instead of guessing blindly, the agent builds an explicit Directed Acyclic Graph (DAG) based on Structural Causal Models (SCMs). After observing an opponent's action, the LLM reflects on the outcome, hypothesizes intermediate latent variables (e.g., the opponent's "urgency level" or "adjustment strategy"), and links observations to actions through these hidden nodes. To keep the graph clean, a pruning mechanism retains only the most frequently validated reasoning pathways.
  2. Opponent Prediction: During gameplay, the agent traverses this constructed causal graph in topological order. To calculate the value of each node, the LLM queries an opponent-specific Example Pool containing previously successful parent-to-child reasoning trajectories. This allows the model to perform stable, example-guided reasoning along clear pathways.
Figure 2: Illustration of the opponent modeling pipeline of SOM. SOM operates in two explicit stages. First, it constructs the SCM representation of the opponent by building a structured causal graph that captures key decision-relevant variables and their dependencies. Second, it populates the structural relationships of this SCM using personalized reasoning examples derived from past interactions. During inference, SOM traverses the graph to simulate the opponent’s reasoning process step by step, enabling explicit and adaptive opponent modeling.

Datasets

The framework was evaluated across three distinct multi-agent game environments:

  • G0.8A (Guessing 0.8 of the Average): A multi-round number-guessing game where players try to guess a number closest to 80% of the group's average. Success requires recursively anticipating everyone else's choices.
  • Survival Auction Game (SAG): A multi-round sealed-bid auction game where players bid their limited cash for water to maintain health points (HP).
  • Undercover Game (WITU): A social deduction game where players use linguistic clues to identify who among them has a different secret word.

Key Insights and Ideas

  • Latent Variables are the Secret Sauce: Standard LLMs struggle to map raw observations directly to actions. By forcing the LLM to extract intermediate latent variables—such as an opponent's "aggressiveness" in an auction or "estimation of the average" in a guessing game—SOM gives the model explicit logical stepping stones that mirror actual strategic thinking.
  • Dynamic Construction vs. Fixed Inference: Building the causal graph dynamically is computationally expensive. However, the authors discovered that once a stable SCM is established, the agent can switch to a "fixed SCM" mode. This mode drastically cuts token consumption (by over 60% in G0.8A) while maintaining high performance, making it highly practical for long-term deployment.
  • Zero-Shot Knowledge Transfer: One of the most exciting findings is that the structured opponent models built by a powerful model (like GPT-4o) can be directly loaded into weaker, open-source models (like LLaMA-3-8B or Mixtral-8B). This instantly boosts the weaker models' win rates against tough opponents without any fine-tuning.

Key Results

SOM consistently outperformed state-of-the-art LLM reasoning baselines (including CoT, Tree-of-Thoughts, and K-Level Reasoning):

  • Win Rates: In the G0.8A game against a mixed group of diverse opponent strategies, SOM achieved the highest average win rate of 0.53, compared to CoT (0.35) and Tree-of-Thoughts (0.22).
  • Longevity: In the Survival Auction Game, SOM achieved an average survival of 7.8 rounds, outlasting all other baselines.
  • Adaptability: Multi-round analysis showed that SOM's prediction error steadily decreased over continuous episodes, leading to a progressive climb in win rate as it locked down the opponent's strategy.
Win rate over continuous episodes in the G0.8A environment, demonstrating SOM's superior learning progress compared to Reflexion.

Limitations and Future Work

The authors note a key conceptual limitation: the "causal" structures discovered by SOM represent functional dependencies inferred from observational data, rather than verified, ground-truth cognitive mechanisms inside the opponent's mind. In other words, the agent creates a highly effective behavioral model, but it hasn't truly proven psychological causality.

Future work will focus on integrating more rigorous causal discovery techniques and exploring controlled interaction settings to bridge this gap.

Summary updated

BibTeX
@misc{cao2026som,
  author = {Shiyue Cao and Pei Xu and Likun Yang and Lei Cui and Xiaotang Chen and Kaiqi Huang},
  title = {{SOM: Structured Opponent Modeling for LLM-based Agents via Structural Causal Model}},
  year = {2026},
  eprint = {2605.07301},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.07301},
}
Figure