Exploring Large Language Models for Communication Games: An Empirical Study on Werewolf

Yuzhuang Xu, Shuo Wang, Peng Li, Fuwen Luo, Xiaolong Wang, Weidong Liu, Yang LiuarXiv 2023 · DOI

Abstract

Communication games like "Werewolf" present a significant challenge for artificial intelligence, requiring natural language negotiation, strategic deception, and "Theory of Mind." This study introduces a tuning-free framework that enables Large Language Models (LLMs) to participate in these complex social deduction games. By implementing a novel retrieval and reflection mechanism, the framework allows agents to learn from past experiences without parameter updates. Our empirical results demonstrate that LLM agents exhibit emergent strategic behaviors—such as camouflage and dynamic trust-building—and show improved performance metrics as their experience pool grows.

Introduction

While AI has achieved mastery in games with perfect information (like Go) or limited hidden information (like Poker), communication-heavy games remain a "final frontier." These games are difficult for LLMs due to three primary factors: finite context windows that struggle with long game histories, the complex reasoning required to detect lies and strategically withhold information, and the computational intensity of traditional reinforcement learning. This research investigates whether a frozen LLM can improve its gameplay simply by reflecting on its own history.

The Werewolf game environment featuring LLM-based agents communicating in natural language.

Methodology

The proposed framework utilizes a frozen gpt-3.5-turbo-0301 model and consists of several integrated modules designed to overcome context and reasoning limitations.

Information Management and Reflection

To manage long transcripts, the system selects messages based on Freshness (recent turns) and Informativeness (key events like deaths). It employs a "reflection-by-answering-questions" method to maintain a complete summary of the game state.

Experience-Driven Learning

A central component is the Experience Pool, a database of (response, reflection, score) tuples from prior games. During a turn, the agent uses Sentence-BERT to retrieve similar past situations. By comparing "bad" experiences (low scores) with "good" ones, the LLM generates natural language suggestions for its current move. This process is augmented by Chain-of-Thought (CoT) prompting, forcing the agent to reason step-by-step before acting.

Results and Analysis

The framework was evaluated in the Chatarena environment across varying levels of experience (10 to 40 rounds of gameplay).

Quantitative analysis of agent performance, showing winning rates, game duration, and camouflage metrics as experience increases.

Emergent Strategic Behavior

The study observed the spontaneous emergence of sophisticated strategies. Camouflage was frequently noted, such as Werewolves claiming to be Villagers or high-value roles like the Seer hiding their identity to survive the night. Agents also developed dynamic "Trust Relationship Tables," establishing or dissolving trust based on the consistency of other players' reasoning.

Performance Metrics

As shown in Figure 4, equipping the Villager side with an experience pool generally improved their winning rate, which peaked at the 20-round experience level. Furthermore, game duration increased from approximately 6.1 to 6.6 days as agents gained experience, suggesting more sophisticated defensive play and fewer tactical blunders.

Framework Robustness

Ablation studies highlighted the importance of the reflection and CoT components. The full framework produced "reasonable" outputs 95% of the time. Removing the reflection component dropped this to 80%, while removing CoT further reduced it to 70%, leading to increased hallucinations and tactical errors.

Conclusion

This research demonstrates that LLMs can effectively engage in complex social deduction games through a retrieval-reflection framework. While challenges like occasional rule hallucinations remain, the ability of these agents to learn from failure and adapt to their peers' capabilities marks a significant step forward in multi-agent communication AI. Future work will explore human-AI interaction in these deceptive environments and the generalization of this framework to other communication-heavy domains.

Summary updated

BibTeX
@misc{xu2023exploring,
  author = {Yuzhuang Xu and Shuo Wang and Peng Li and Fuwen Luo and Xiaolong Wang and Weidong Liu and Yang Liu},
  title = {{Exploring Large Language Models for Communication Games: An Empirical Study on Werewolf}},
  year = {2023},
  eprint = {2309.04658},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.04658},
}
Figure