Bayesian Social Deduction with Graph-Informed Language Models

Shahab Rahimirad, Guven Gergerli, Lucia Romero, Angela Qian, Matthew Lyle Olson, Simon Stepputtis, Joseph Campbell

TL;DR

GRAIL introduces a hybrid framework that pairs lightweight Large Language Models (LLMs) with a structured probabilistic factor graph to master the complex social deduction game Avalon. By offloading belief tracking and constraint satisfaction to a graphical model, GRAIL achieves a 67% win rate against human players while generating over 10 times fewer output tokens than massive reasoning models like DeepSeek-R1.

What Problem Does This Paper Address?

Social reasoning—inferring the hidden roles, intentions, and beliefs of other agents from partial observations—is a major hurdle for LLMs. While state-of-the-art Large Reasoning Models (LRMs) excel at static logic puzzles, they struggle in dynamic, long-horizon multi-agent environments where deception is rampant.

Furthermore, pure token-level reasoning models require massive test-time compute (long chains of thought) to track permutations of hidden roles. This makes them computationally expensive, prone to logical inconsistencies, and too slow for real-time interactive play with humans. When these models are distilled into smaller, faster variants, their social reasoning performance degrades sharply. The authors address this efficiency-capability trade-off by decoupling language processing from mathematical deduction.

Methods

The authors introduce GRAIL (Graph Reasoning Agent Informed through Language), a hybrid architecture that splits the cognitive load between an LLM and a probabilistic graphical model:

  • Factor Graph for Belief Tracking: Instead of forcing the LLM to calculate probabilities, GRAIL maps the game state to a factor graph. The graph treats player roles as binary variables (Good vs. Evil) and applies hard constraints (e.g., exactly two players are Evil in a 6-player game) alongside soft constraints (e.g., quest failure history).
  • Max-Product Belief Propagation: GRAIL runs approximate maximum a posteriori (MAP) inference over the factor graph to calculate the most likely assignment of hidden roles.
  • Factor Function Approximation: Rather than using massive probability tables, a simple feedforward neural network approximates the conditional probabilities of player roles based on game events (votes, party compositions, and quest outcomes).
  • Language Priors: To incorporate conversational nuances, the LLM reviews the chat history and provides a qualitative assessment of each player (whether their likelihood of being evil should increase, decrease, or stay the same). This qualitative feedback is mathematically injected back into the factor graph as a prior.
  • Action Heuristic: A deterministic policy handles game actions (proposing teams and voting) based directly on the factor graph's clear-cut belief outputs.
Figure 1: Overview of GRAIL’s architecture and inter-module communication. A factor graph tracks beliefs over hidden player roles using belief propagation, informed by game-state observations and an LLM-generated language prior. Conditional probabilities are estimated by a neural network trained on historical games. Inferred beliefs guide both action selection and message generation.

Datasets

  • Factor Graph Training: The authors utilized a dataset of over 100,000 language-free game logs collected from AvalonLogs and ProAvalon.com to train the neural network responsible for approximating factor functions.
  • Evaluation Dataset: The framework was evaluated using simulated Agent-Agent matchups and a newly collected dataset of Human-Agent games, featuring full dialogue transcripts and step-by-step game states.

Key Insights and Ideas

  • The "Performance Floor": Offloading logic to a factor graph makes the system incredibly robust to LLM size. Even when powered by a lightweight 8B parameter model, GRAIL maintains a high win rate because the graphical model guarantees strict adherence to game rules and constraints, mitigating the performance drop-off typically seen in smaller models.
  • Qualitative Prompting Over Quantities: LLMs notoriously struggle with precise numerical reasoning. GRAIL bypasses this by asking the LLM for directional shifts ("higher", "lower", "same") rather than raw probabilities, translating linguistic intuition into stable mathematical priors.
  • Sycophancy Mitigation: Large reasoning models are easily sweet-talked by deceptive players who claim innocence in chat. Because GRAIL's core belief system is anchored to a mathematical factor graph, it remains grounded in hard behavioral data and resists conversational manipulation.

Key Results

  • Defeating Humans: In a controlled study with 44 human participants, GRAIL achieved a 67% win rate playing as a Good teammate, vastly outperforming the baseline reasoning model GPT-o4-mini (27%).
  • High Human Ratings: In post-game surveys, human participants rated GRAIL's contributions and helpfulness significantly higher than baseline reasoning models, and frequently higher than their actual human teammates.
  • Extreme Token Efficiency: GRAIL completes its reasoning in a single prompt rather than an extended chain-of-thought. As a result, it produces more than 10 times fewer output tokens per round compared to LRMs like DeepSeek-R1, drastically lowering compute costs and latency.
Figure 3: Average per-round token usage for GRAIL, reasoning agents, and ReCon in Agent-Agent games.

Limitations and Future Work

  • Good-Team Restriction: Currently, GRAIL is exclusively designed to play on the Good team, focusing on detecting deception rather than generating it. It relies on first-order Theory of Mind.
  • Persuasion Deficit: While GRAIL makes mathematically optimal choices, its underlying LLM sometimes struggles to argue its case persuasively in chat, occasionally leading to repetitive phrasing that humans can flag.
  • Future Directions: The authors plan to extend GRAIL to second-order Theory of Mind (modeling what other players believe about each other). This extension is a prerequisite for successfully playing deceptive Evil roles or special roles like Merlin.

Summary updated

BibTeX
@inproceedings{rahimirad2025bayesian,
  author = {Shahab Rahimirad and Guven Gergerli and Lucia Romero and Angela Qian and Matthew Lyle Olson and Simon Stepputtis and Joseph Campbell},
  title = {{Bayesian Social Deduction with Graph-Informed Language Models}},
  booktitle = {ER @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=D8qBPcH73N},
}
Figure