TL;DR
RPGBENCH is the first benchmark designed to evaluate Large Language Models (LLMs) not just as role-players, but as role-playing game engines. It introduces a structured framework for game creation and simulation, using an automated "BFS Validity Checker" to objectively measure whether an LLM can maintain logical game mechanics and state consistency over time.
What Problem Does This Paper Address?
While LLMs have become remarkably good at "persona-level" role-playing (mimicking a specific character's voice), they often fail at the "game-level." An RPG engine must do more than talk; it must build a coherent world, track numerical variables (like health or trust), and enforce rules consistently across multiple turns.
Traditional text-generation benchmarks rely on subjective "LLM-as-a-judge" metrics, which struggle to catch logical contradictions in game mechanics. If a model says a player needs 70 "Trust" to enter a room but then lets them in with 50, that’s a mechanical failure that subjective evaluation might miss. RPGBENCH addresses this by formalizing RPGs into structured, verifiable systems.
Methods
The researchers treat the LLM as a state machine. They define two core tasks:
- Game Creation (GC): The LLM is given a character (e.g., Batman) and must generate a full game world in a structured JSON format. This includes state variables, scenes, and events with specific "entering conditions" and "success/fail effects."
- Game Simulation (GS): The LLM runs the game for a player. Each round follows a three-stage loop: Event Planning (deciding what happens), Game Narration (writing the story and providing player choices), and Game State Updates (adjusting numerical variables based on the outcome).
To ensure these games are actually playable, the authors developed a BFS Validity Checker. This algorithm performs a Breadth-First Search through the game's state space to verify that all events are reachable and that both "win" and "loss" conditions can actually be triggered.
Datasets
- NPC Pool: 100 fictional characters sourced from Wikipedia to serve as the "Main NPC" for game generation.
- RPGBENCH GC Set: 100 character-based prompts used to test the Game Creation capabilities of models like GPT-4o, Claude 3.5 Sonnet, and DeepSeek V3.
- RPGBENCH GS Set: A curated collection of 125 "valid" games (those that passed the BFS checker) used to evaluate how well models can simulate a game without breaking its rules.
Key Insights and Ideas
- The Logic-Creativity Gap: State-of-the-art models are excellent at writing engaging narratives but struggle with the "boring" parts of game mastering—like math. They frequently hallucinate state updates or ignore the entry conditions they defined themselves.
- Deterministic vs. Creative Trade-offs: The study found that lower sampling temperatures (0.2) help models adhere to game mechanics (higher Mechanic Score), while higher temperatures (0.8) make the stories more "interesting" but prone to rule-breaking.
- The BFS Filter is Necessary: Many LLM-generated games are "broken" out of the box (e.g., impossible to win or containing unreachable content). Using an automated checker to verify the state-space graph is a novel way to provide a "ground truth" for creative tasks.
- Subjective Divergence: Human judges and LLM judges generally agree on how "interesting" a story is, but they diverge significantly when judging "personality consistency," suggesting that human perception of character is more nuanced (or biased) than current automated metrics can capture.
Key Results
The researchers evaluated several top-tier models, revealing a wide gap in "mechanical" intelligence:
- Game Creation: GPT-4o was the most reliable creator, with a 49% Validity-Check Pass Rate (VCR). In contrast, Gemini 1.5 Pro struggled significantly, passing only 4% of the time.
- Game Simulation: Even the best-performing model for simulation, Gemini 2.0 Flash Exp, only achieved a Mechanic Score (MEC) of 0.765, meaning it failed to follow the game's rules or update states correctly in nearly 24% of rounds.
- Narrative Quality: Claude 3.5 Sonnet was rated the most "interesting" (INT) by LLM judges, despite having a lower mechanic score, highlighting its strength in prose over logic.
Limitations and Future Work
- Context Decay: The simulations were limited to 10 rounds. The authors noted that as the conversation grows longer, the model's ability to maintain a coherent game state declines.
- Single-Agent Engine: The current framework uses one LLM as the entire engine. Future work could explore multi-agent architectures (e.g., one LLM for narration, one for state tracking).
- Static NPCs: The NPCs are currently based on existing Wikipedia facts; expanding this to entirely original, procedurally generated characters would be a significant next step.
Summary updated