Digital Player: Evaluating Large Language Models based Human-like Agent in Games
Jiawei Wang, Kai Wang, Shaojie Lin, Runze Wu, Bihan Xu, Lingeng Jiang, Shiwei Zhao, Renyu Zhu, Haoyu Liu, Zhipeng Hu, Zhong Fan, Le Li, Tangjie Lyu, Changjie Fan
TL;DR
The paper presents CivSim, a testbed built on Unciv to evaluate LLM-based human-like agents as digital players. It introduces CivAgent, a memory- and RAG-enabled architecture augmented with a game simulator and two reflection mechanisms to support long-horizon reasoning and social interaction, facilitated by a Discord interface. Through multi-variant experiments across several LLMs and CivAgent configurations, the study shows that incorporating memory, reflection, and simulation improves strategic planning and diplomacy, while also highlighting strengths in negotiation and deception tasks for state-of-the-art models. The framework, inspired by citizen science, offers a low-cost data flywheel for collecting human feedback and scaling agent capabilities, with potential for broader applicability across domains. The work provides open-source resources for researchers to build and extend LLM-based human-like agents in interactive, multi-turn environments.
Abstract
With the rapid advancement of Large Language Models (LLMs), LLM-based autonomous agents have shown the potential to function as digital employees, such as digital analysts, teachers, and programmers. In this paper, we develop an application-level testbed based on the open-source strategy game "Unciv", which has millions of active players, to enable researchers to build a "data flywheel" for studying human-like agents in the "digital players" task. This "Civilization"-like game features expansive decision-making spaces along with rich linguistic interactions such as diplomatic negotiations and acts of deception, posing significant challenges for LLM-based agents in terms of numerical reasoning and long-term planning. Another challenge for "digital players" is to generate human-like responses for social interaction, collaboration, and negotiation with human players. The open-source project can be found at https:/github.com/fuxiAIlab/CivAgent.
