[Paper Review] Can Large Language Models Play Text Games Well? Current State-of-the-Art and Open Questions
The paper probes how well ChatGPT and other LLMs play text-based games like Zork, finding that ChatGPT lags behind specialized agents, lacks a learned world model and goal inference, and benefits from human-guided prompting but remains far from state-of-the-art.
Large language models (LLMs) such as ChatGPT and GPT-4 have recently demonstrated their remarkable abilities of communicating with human users. In this technical report, we take an initiative to investigate their capacities of playing text games, in which a player has to understand the environment and respond to situations by having dialogues with the game world. Our experiments show that ChatGPT performs competitively compared to all the existing systems but still exhibits a low level of intelligence. Precisely, ChatGPT can not construct the world model by playing the game or even reading the game manual; it may fail to leverage the world knowledge that it already has; it cannot infer the goal of each step as the game progresses. Our results open up new research questions at the intersection of artificial intelligence, machine learning, and natural language processing.
Motivation & Objective
- Motivate using games as a microcosm to evaluate AI capabilities such as world modeling and goal inference.
- Assess whether ChatGPT can learn a world model by reading game walkthroughs and interacting with a text game.
- Evaluate ChatGPT's navigation, SLAM-like reasoning, and goal-inference abilities in Zork.
- Benchmark ChatGPT against state-of-the-art text-game agents under various prompting protocols.
Proposed method
- Use Jericho-based Zork I implementation to run a human-in-the-loop ChatGPT playing the game.
- Feed ChatGPT the current game state and request legal actions, then feed back the chosen action to the game.
- Test learning of world models by presenting correct walkthroughs and querying location/destination outcomes.
- Assess SLAM-like navigation by asking ChatGPT to predict destinations from pairs of locations.
- Evaluate goal inference by asking for the next high-level goal given game progress and observations.
- Compare ChatGPT performance against SOTA text-game agents (DRRN, KG-A2C, RC-DQN) and a non-trained NAIL baseline.

Experimental results
Research questions
- RQ1Can an LLM like ChatGPT construct or infer a usable world model while playing a text game?
- RQ2Can ChatGPT infer high-level goals guiding actions, beyond proposing individual moves?
- RQ3How does ChatGPT perform on navigation and mapping tasks that require understanding environmental structure (SLAM-like reasoning) compared to trained agents?
- RQ4What is the relative performance of ChatGPT vs. state-of-the-art text-game agents when evaluated on Zork under standardized prompts?
Key findings
- ChatGPT achieves 55.4% overall accuracy on one-step destination questions, 75.0% seen and 29.1% unseen; two-step accuracy is 31.3% overall, 50.0% seen, 10.0% unseen; overall all is 42.5%.
- ChatGPT's SLAM questions yield 57.7% one-step accuracy, 22.8% two-step accuracy, overall 39.4%, with better performance on seen maps than unseen maps.
- ChatGPT tends to guess low-level actions as goals rather than high-level strategic goals, with only 17 of 70 steps yielding a meaningful goal inference.
- When evaluated on Zork without training, ChatGPT scores 10.0, and with prior action memory 15.0; with intervention and memory 40.0 in an extended protocol, still lagging behind SOTA agents.
- Compared to SOTA systems trained on Zork (DRRN, KG-A2C, RC-DQN), ChatGPT underperforms; best reported SOTA score in the table is 38.8 for KG-A2C, 34.0 for RC-DQN, and 32.6 for DRRN, with ChatGPT reaching up to 40.0 under a modified protocol.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.