Boosting LLM Agents with Recursive Contemplation for Effective Deception Handling

Shenzhi Wang, Chang Liu, Zilong Zheng, Siyuan Qi, Shuo Chen, Qisen Yang, Andrew Zhao, Chaofei Wang, Shiji Song, Gao Huang

Abstract

Large Language Model (LLM) agents are typically designed for cooperative environments, often failing when faced with strategic deception. This paper presents Recursive Contemplation (ReCon), a framework that enables agents to "think twice" by incorporating first-order and second-order perspective-taking. ReCon allows agents to deduce the mental states of others and refine their own communication to avoid revealing sensitive information. Tested on the social deduction game Avalon and the BigTom benchmark, ReCon demonstrates substantial improvements in win rates and logical consistency over standard prompting techniques without requiring additional fine-tuning.

Introduction

Most research on Large Language Model (LLM) agents assumes a "world of honesty," where information is processed at face value. However, real-world human interaction is rife with misinformation, bargaining, and hidden agendas. When placed in deceptive environments like the social deduction game Avalon, standard LLMs struggle with being misled by malicious logic, accidentally exposing private roles, and failing to account for opponents' concealed intentions. To address these "cognitively straightforward" tendencies, we propose a framework that mimics human perspective-taking.

The Recursive Contemplation (ReCon) Framework

ReCon is a zero-shot framework consisting of two main stages that move beyond simple Chain-of-Thought (CoT) reasoning into a more complex "Theory of Mind" (ToM) approach.

The ReCon framework transitions from first-order perspective (deducing others' states) to second-order perspective (refining self-presentation).
  1. Formulation Contemplation (First-Order Perspective): The agent internally deduces the roles and mental states of other players based on game history. It creates an initial "thought" and a draft of its public statement.
  2. Refinement Contemplation (Second-Order Perspective): The agent speculates on how others will perceive its draft. If the statement is risky—for instance, if it inadvertently reveals a secret role—the agent refines it to be safer or more persuasive before communicating.

Experimental Evaluation

The framework was evaluated using two primary benchmarks: Avalon, a complex social deduction game, and BigTom, a social reasoning benchmark for Theory-of-Mind capabilities.

ReCon demonstrated a massive performance boost over standard prompting and CoT. In Avalon, when playing as the "Good" side using GPT-4, the success rate jumped from 15% (CoT) to 83.3% (ReCon). Similar gains were observed with Claude-2 (47.4% to 78.9%). On the BigTom benchmark, ReCon consistently outperformed both CoT and Tree-of-Thought (ToT) across various LLaMA model sizes.

An example of Hidden Thought Deception where ReCon helps an agent (Morgana) refine its public statement to maintain its cover while subtly favoring the evil side.

Key Insights and Discussion

The "Thinking Twice" advantage highlights that LLMs benefit from a drafting phase that separates internal strategy from public speech. This prevents the "honesty trap" where agents tell the truth to their own detriment. Furthermore, while RLHF makes models "safe" in content, it does not necessarily align their logic; GPT-4 can be prompted to use deceptive logic effectively within a game context.

Despite these gains, limitations remain. Open-source models like LLaMA-2-70b still struggle with strict instruction following. Additionally, LLM agents often speak with an "excessive formality" that can serve as a "tell" in social games. Future work should explore "logical alignment" and more human-like communication styles to further enhance agent performance in social deduction environments.

Summary updated

BibTeX
@inproceedings{wang2024boosting,
  author = {Shenzhi Wang and Chang Liu and Zilong Zheng and Siyuan Qi and Shuo Chen and Qisen Yang and Andrew Zhao and Chaofei Wang and Shiji Song and Gao Huang},
  title = {{Boosting LLM Agents with Recursive Contemplation for Effective Deception Handling}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.591},
}
Figure