Playing Along: Learning a Double-Agent Defender for Belief Steering via Theory of Mind
Organizations: UNC Chapel Hill · University of Texas at Austin
Abstract
As large language models (LLMs) become the engine behind conversational systems, their ability to reason about the intentions and states of their dialogue partners (i.e., form and use a theory-of-mind, or ToM) becomes increasingly critical for safe interaction with potentially adversarial partners. We propose a novel privacy-themed ToM challenge, ToM for Steering Beliefs (ToM-SB), in which a defender must act as a Double Agent to steer the beliefs of an attacker with partial prior knowledge within a shared universe. To succeed on ToM-SB, the defender must engage with and form a ToM of the attacker, with a goal of fooling the attacker into believing they have succeeded in extracting sensitive information. We find that strong frontier models like Gemini3-Pro and GPT-5.4 struggle on ToM-SB, often failing to fool attackers in hard scenarios with partial attacker prior knowledge, even when prompted to reason about the attacker's beliefs (ToM prompting). To close this gap, we train models on ToM-SB to act as AI Double Agents using reinforcement learning, testing both fooling and ToM rewards. Notably, we find a bidirectionally emergent relationship between ToM and attacker-fooling: rewarding fooling success alone improves ToM, and rewarding ToM alone improves fooling. Across four attackers with different strengths, six defender methods, and both in-distribution and out-of-distribution (OOD) evaluation, we find that gains in ToM and attacker-fooling are well-correlated, highlighting belief modeling as a key driver of success on ToM-SB. AI Double Agents that combine both ToM and fooling rewards yield the strongest fooling and ToM performance, outperforming Gemini3-Pro and GPT-5.4 with ToM prompting on hard scenarios. We also show that ToM-SB and AI Double Agents can be extended to stronger attackers, demonstrating generalization to OOD settings and the upgradability of our task.
Figures & tables
| Method | Fooling % | ToM Acc % | Avg Turns | ||
|---|---|---|---|---|---|
| Hard | All | Traj | Step | ||
| Prompt-based | |||||
| Base Prompt (Gemini3-Pro) | |||||
| Base Prompt (GPT-5.4) | |||||
| Refuse Prompt | – | – | |||
| Mislead Prompt | – | – | |||
| Method | Base | Cross-Examiner | Deception-Aware | Bluffing | ||||
|---|---|---|---|---|---|---|---|---|
| Fooling | ToM | Fooling | ToM | Fooling | ToM | Fooling | ToM | |
| Prompt-based | ||||||||
| Base Prompt (Gemini3-Pro) | 35.4 | |||||||
| Mislead Prompt | – | – | – | – | ||||
| Base Prompt | ||||||||
| Training-based | ||||||||
| Method | Fooling % | ToM Acc % | Avg Turns | ||
|---|---|---|---|---|---|
| Hard | All | Traj | Step | ||
| Base Prompt ( Gemini3-Pro ) | |||||
| Base Prompt | |||||
| ADA (Fooling + ToM) | 34.4 | 34.7 | 25.3 | 62.4 | |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Fooling % | ToM Acc % | Avg Turns | ||
|---|---|---|---|---|---|
| Hard | All | Traj | Step | ||
| GPT-5.4 vs Base Attacker | |||||
| GPT-5.4 vs Cross-Examiner | |||||
| GPT-5.4 vs Deception-Aware | |||||
| GPT-5.4 vs Bluffing Attacker | |||||
| Method | Fooling % | ToM Acc % | Avg Turns | ||
|---|---|---|---|---|---|
| Hard | All | Traj | Step | ||
| Base Prompt | |||||
| ADA - Fooling | |||||
| ADA - ToM Only | |||||
| Method | Fooling % (Hard) | 95% CI for Improvement | Fooling % (All) | 95% CI for Improvement |
|---|---|---|---|---|
| Base Prompt | n/a | n/a | ||
| Base Prompt + Oracle ToM | to | to |
| Metric | Comparison (A B) | Improvement per seed | Mean improvement | One-sided paired t-test | 95% CI for improvement |
|---|---|---|---|---|---|
| Fooling (All) | Fooling+ToM Fooling only | , , | to | ||
| Fooling (All) | Fooling+ToM ToM only | , , | to | ||
| ToM (Traj) | Fooling+ToM Fooling only | , , | to | ||
| ToM (Traj) | Fooling+ToM ToM only | , , | to |
| Method | Fooling % (All) | ToM Acc % (Traj) |
|---|---|---|
| Base Prompt (no strategic hints) | ||
| ADA - ToM Only (no strategic hints) | ||
| ADA - Fooling (no strategic hints) |
| Attacker Base Model | Fooling % (All) | ToM Acc % (Traj) |
|---|---|---|
| Gemini3-Flash (base) | ||
| Gemini-3.5-Flash | ||
| Gemini-3.1-Pro | ||
| GPT-5.4 |
| Defender Model | Fooling % (No Shared Universe) |
|---|---|
| Gemini3-Pro | |
| Gemini-2.5-Flash | |
| Qwen3-32B |
| Method | Fooling % | ToM Acc % | Avg Turns | ||
|---|---|---|---|---|---|
| Hard | All | Traj | Step | ||
| Prompt-based | |||||
| Base Prompt ( Gemini3-Pro ) | |||||
| Mislead Prompt | – | – | |||
| Base Prompt | |||||
| Training-based | |||||
| Method | Fooling % | ToM Acc % | Avg Turns | ||
|---|---|---|---|---|---|
| Hard | All | Traj | Step | ||
| Prompt-based | |||||
| Base Prompt ( Gemini3-Pro ) | |||||
| Mislead Prompt | – | – | |||
| Base Prompt | |||||
| Training-based | |||||
| Method | Fooling % | ToM Acc % | Avg Turns | ||
|---|---|---|---|---|---|
| Hard | All | Traj | Step | ||
| Prompt-based | |||||
| Base Prompt ( Gemini3-Pro ) | |||||
| Mislead Prompt | – | – | |||
| Base Prompt | |||||
| Training-based | |||||
| Method | Fooling % | ToM Acc % | Avg Turns | ||
|---|---|---|---|---|---|
| Hard | All | Traj | Step | ||
| Prompt-based | |||||
| Base Prompt ( Gemini3-Pro ) | |||||
| Mislead Prompt | – | – | |||
| Base Prompt | |||||
| Training-based | |||||
Theory of Mind
Theory of Mind studies how people and AI infer others’ beliefs, goals, and knowledge to predict behavior and coordinate interaction.
See all 92 papers