Playing Along: Learning a Double-Agent Defender for Belief Steering via Theory of Mind

Hanqi Xiao, Vaidehi Patil, Zaid Khan, Hyunji Lee, Elias Stengel-Eskin, Mohit Bansal

TL;DR

This paper introduces TOM-SB (Theory of Mind for Steering Beliefs), a challenge where AI defenders must act as "double agents" to protect sensitive information by actively misleading attackers. The researchers demonstrate that successful deception requires a robust Theory of Mind (ToM); by training models with reinforcement learning, they discovered a "bidirectional emergence" where rewarding a model for successfully fooling an attacker naturally improves its ability to model the attacker's mind, and vice versa.

What Problem Does This Paper Address?

Current Large Language Model (LLM) privacy defenses are largely reactive. They typically rely on "refusal" (e.g., "I cannot answer that") or simple output filtering. These methods are brittle: they signal to an attacker that they are being blocked, encouraging them to pivot to more sophisticated jailbreaking or social engineering tactics.

A more robust defense is proactive deception—steering the attacker toward a plausible but incorrect belief so they think they have succeeded. However, this is incredibly difficult because attackers often have prior knowledge. If a defender provides a lie that contradicts something the attacker already knows (e.g., claiming an employee is in "Sales" when the attacker knows they are in "Engineering"), the defender is immediately exposed. To succeed, a defender needs a "Theory of Mind"—the ability to infer what the attacker knows and use that model to craft consistent, deceptive narratives.

Methods

The authors propose the AI Double Agent (ADA), a defender trained to balance information protection with trust maintenance.

  • TOM-SB Environment: A multi-turn dialogue setup where agents interact within a "shared hierarchical universe" (e.g., a corporate structure of Company $\rightarrow$ Division $\rightarrow$ Team).
  • Reinforcement Learning (RL): The authors used Dr. GRPO (a variant of Group Relative Policy Optimization) to train a Qwen3-14B model.
  • Dual Reward System:
    • Fooling Reward ($R_{fool}$): Awarded if the attacker ends the chat believing they've extracted the target info, but the info is actually false.
  • ToM Reward ($R_{ToM}$): Awarded if the defender’s internal "reflection" correctly identifies what prior knowledge the attacker started with.
  • Internal Reflection: Before responding, the defender is prompted to verbalize its estimate of the attacker's beliefs and trust level in a JSON format, forcing the model to explicitly reason about the other agent's mental state.

Datasets

  • TOM-SB Dataset: A new benchmark consisting of 300 structured scenarios. Each scenario includes a shared hierarchical tree, the defender's private ground truth (a specific path in the tree), and the attacker's partial prior knowledge.
  • Evaluation Split: 225 scenarios for training and 75 for evaluation.
  • Attacker Variants: The authors developed four distinct attacker prompts to test the defender: Base, Cross-Examiner (asks questions from multiple angles), Deception-Aware (looks for specific defender tactics), and Bluffing (pretends to know things it doesn't).

Key Insights and Ideas

  • Bidirectional Emergence: This is the paper's most striking finding. Training a model only to fool attackers caused its ToM scores to rise. Conversely, training a model only to have a better ToM caused its fooling success rate to jump from 13% to 41%. This suggests that for complex social tasks, deception and empathy (in the cognitive sense) are functionally inseparable.
  • The "Hard Scenario" Gap: Frontier models like GPT-5.4 and Gemini3-Pro are surprisingly bad at this. While they can fool a naive attacker, their performance craters (dropping to 27-34%) when the attacker has prior knowledge. They often fail to "probe" the attacker to see what they already know before committing to a lie.
  • Consistency is King: The shared universe constraint makes the task a logic puzzle. A defender cannot just hallucinate; they must navigate a tree of possibilities that remains logically consistent with the attacker's known facts.

Key Results

  • Superior Performance: The RL-trained AI Double Agent (ADA) outperformed both GPT-5.4 and Gemini3-Pro on "hard" scenarios, achieving a 42.4% fooling rate compared to Gemini's 34.4% and GPT's 26.7%.
  • High Correlation: The researchers found a tight correlation (Pearson $r = 0.92$) between a model's ToM accuracy and its ability to fool an attacker, validating that belief modeling is the primary driver of successful strategic dialogue.
  • Generalization: A defender trained against a "Base" attacker still performed well against out-of-distribution (OOD) attackers like the "Bluffing" variant, though the task became significantly harder for all models.

Limitations and Future Work

  • Shared Universe Assumption: The current task assumes both agents know the "map" of the world (the hierarchy). In reality, attackers might not know the structure of the information they are seeking.
  • Universally Adversarial: The defender currently treats every user as an attacker. A real-world system would need a "gatekeeper" to decide when to activate "Double Agent" mode versus being helpful to benign users.
  • Fixed Attackers: The defenders were trained against static (prompt-based) attackers. The authors suggest that co-training (having the attacker and defender evolve together via self-play) is a necessary next step to reach human-level strategic deception.
  • Ethical Risks: The authors acknowledge that training models to be better liars carries risks, though they argue this capability is already latent in LLMs via hallucinations and that studying it is essential for building better defenses.

Summary updated

BibTeX
@inproceedings{xiao2026playing,
  author = {Hanqi Xiao and Vaidehi Patil and Zaid Khan and Hyunji Lee and Elias Stengel-Eskin and Mohit Bansal},
  title = {{Playing Along: Learning a Double-Agent Defender for Belief Steering via Theory of Mind}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=zZU5EsxZ3S},
}
Figure