TL;DR
Current LLM agents generally assume interacting agents are honest, leaving them defenseless against deception and prone to leaking private information. To address this, the authors introduce Recursive Contemplation (ReCon), a prompt-based framework inspired by human recursive thinking and Theory of Mind that enables LLMs to infer others' intentions and "think twice" before acting. Tested in the social deduction game Avalon, ReCon drastically improves models' ability to detect misinformation and conceal sensitive roles without requiring any fine-tuning.
What Problem Does This Paper Address?
Most multi-agent LLM systems are built under the assumption that agents communicate cooperatively and truthfully. In real-world environments, however, agents encounter deceptive, adversarial, or manipulative interactions. When deployed in deceptive contexts without specialized safeguards, LLMs exhibit three major vulnerabilities:
- Misled by malicious content: Agents easily swallow deceptive logic (e.g., accepting an evil player's argument to sabotage a team).
- Exposing private information: Agents routinely leak critical, confidential secrets (e.g., a protected role disclosing their identity when provoked).
- Hidden thought deception: Agents acting deceptively often execute harmful strategies without giving external observers or human overseers visibility into their true internal rationale.
The authors use the hidden-role board game The Resistance: Avalon as a challenging benchmark to evaluate and enhance LLM reasoning under deceptive conditions.
Methods
ReCon structures an LLM’s reasoning into a two-stage recursive thinking and perspective-taking loop:
- Formulation Contemplation (First-Order Perspective Transition):
- Before generating any public message, the agent conducts internal, private reasoning.
- Under a first-order perspective transition, the agent attempts to deduce fellow players' hidden identities and mental states based on observed game history (e.g., past voting and quest outcomes).
- It produces an initial internal thought ($T_k$) and a preliminary draft of public speech ($S_k$).
- Refinement Contemplation (Second-Order Perspective Transition):
- Drawing on the adage "think twice before you act," the agent scrutinizes its own draft.
- Under a second-order perspective transition, the agent evaluates: "If I say $S_k$, how will other roles (both allies and adversaries) interpret my words?"
- It checks for accidental privacy leaks or counter-productive cues, then outputs a refined thought ($T'_k$) and a finalized public utterance ($S'_k$).
Importantly, ReCon is entirely prompt-driven and requires no parameter updates or domain-specific training data.
Game History ──> [First-Order Perspective] ──> Initial Thought & Speech (Draft)
│
▼
Public Speech <── [Refinement Contemplation] <── [Second-Order Perspective]
Datasets
- Avalon Game Environment: A 6-player setup consisting of 4 "Good" roles (Merlin, Percival, two Loyal Servants) and 2 "Evil" roles (Morgana, Assassin).
- Multi-Dimensional Dialogue Dataset: The authors generated over 2,300 paired agent responses across 20 full game runs using ChatGPT, evaluated across 6 strategic dimensions (Concealment, Logic, Contribution, Persuasiveness, Information, Creativity).
- Human Validation Sample: 216 dialogues randomly sampled from the game logs were manually evaluated by 12 human judges familiar with Avalon to assess the reliability of automated GPT-4 preferences.
Key Insights and Ideas
- Internal contemplation prevents privacy leaks: Providing a private scratchpad specifically designed for internal deduction keeps sensitive facts (like Merlin's identity) inside internal thoughts rather than spilling into public dialogue.
- Second-order perspective-taking catches subtle slips: Modeling how adversaries will interpret a message prevents subtle, indirect role disclosures that basic Chain-of-Thought (CoT) misses.
- RLHF aligns content, not logic (Jailbreaking via Roleplay): Direct instructions asking GPT-4 to deceive players are rejected due to safety filters. However, framed within the game context of Avalon, the model willingly generates manipulative and deceptive arguments. Safety alignment suppresses explicit keywords, but logical deception remains unaligned.
- Human-like casualness hurts performance: Forcing the LLM to adopt casual, conversational human speech and thought styles reduced win rates (from 83.3% down to 70.0%), showing that the model benefits from structured, formal reasoning steps.
Key Results
- Win Rate Surge:
- When playing the "Good" side against a CoT evil baseline, ReCon boosted ChatGPT's win rate from 15.0% to 83.3% and Claude-2's win rate from 45.0% to 73.7%.
- Even when comparing against pure GPT-4 using standard Chain-of-Thought (which achieved 40.0%), a hybrid ReCon implementation (GPT-3.5 formulation + GPT-4 refinement) won 83.3% of games.
- When playing the "Evil" side against a ReCon good team, evil ReCon achieved a 70.6% win rate (compared to 25.0% when refinement was ablated).
- Multi-Dimensional Preference: Across all six evaluation axes, GPT-4 significantly preferred ReCon over standard CoT. Human evaluation strongly confirmed GPT-4's ratings (73.15% consensus agreement, $p = 1.26 \times 10^{-6}$).
Limitations and Future Work
- Logical Gaps and Hallucinations: Even with ReCon, models occasionally made elementary logical errors (e.g., Percival suspecting impossible candidate sets for Merlin and Morgana).
- Open-Source Model Compliance: While commercial APIs (ChatGPT, Claude) followed structural requirements over 90% of the time, open-source models like LLaMA-2-70b-chat failed to reliably follow output formats (e.g., bracketed vote tags).
- Stylistic Divergence: Current agent outputs are excessively formal and detailed, immediately failing a human "Turing test" in casual gaming.
- Future Work: The authors plan to fine-tune open models on high-quality human gameplay logs, align speech patterns to be more natural without degrading reasoning, and extend ReCon to other social deduction domains like Werewolf and Mafia.
Summary updated