Pre-trained Language Models as Prior Knowledge for Playing Text-based Games
Not on the map. Why?
Abstract (arXiv)
Recently, text world games have been proposed to enable artificial agents to understand and reason about real-world scenarios. These text-based games are challenging for artificial agents, as it requires an understanding of and interaction using natural language in a partially observable environment. Agents observe the environment via textual descriptions designed to be challenging enough for even human players. Past approaches have not paid enough attention to the language understanding capability of the proposed agents. Typically, these approaches train from scratch, an agent that learns both textual representations and the gameplay online during training using a temporal loss function. Given the sample-inefficiency of RL approaches, it is inefficient to learn rich enough textual representations to be able to understand and reason using the textual observation in such a complicated game environment setting. In this paper, we improve the semantic understanding of the agent by proposing a simple RL with LM framework where we use transformer-based language models with Deep RL models. We perform a detailed study of our framework to demonstrate how our model outperforms all existing agents on the popular game, Zork1, to achieve a score of 44.7, which is 1.6 higher than the state-of-the-art model. Overall, our proposed approach outperforms 4 games out of the 14 text-based games, while performing comparable to the state-of-the-art models on the remaining games.
Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Builds on 19 of its 28 references that are in the map. First posted on arXiv 18 Jul 2021.
Builds on
19 of 28 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2017Curiosity-driven Exploration by Self-supervised Predictioncited by 1,173
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
- 2018TextWorld: A Learning Environment for Text-based Gamescited by 304
- 2019Stabilizing Transformers for Reinforcement Learningcited by 262
- 2019Interactive Fiction Games: A Colossal Adventurecited by 165
- 2020Keep CALM and Explore: Language Models for Action Generation in Text-based Gamescited by 108
7 more
- 2015Deep Reinforcement Learning with a Natural Language Action Spacecited by 88
- 2020Graph Constrained Reinforcement Learning for Natural Language Action Spacescited by 80
- 2020How to Avoid Being Eaten by a Grue: Structured Exploration Strategies for Textual Worldscited by 38
- 2020Interactive Fiction Game Playing as Multi-Paragraph Reading Comprehension with Reinforcement Learningcited by 27
- 2020Deep Reinforcement Learning with Stacked Hierarchical Attention for Text-based Gamescited by 22
- 2021Reading and Acting while Blindfolded: The Need for Semantics in Text Game Agentscited by 20
- 2021The NLP Cookbook: Modern Recipes for Transformer based Deep Learning Architecturescited by 16
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 11; 2024: 3; 2025: 3.
21 papers.
Sort:
By area:
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
- 2023Do the Rewards Justify the Means? Measuring Trade-Offs Between Rewards and Ethical Behavior in the MACHIAVELLI Benchmarkcited by 174
- 2024A Survey on Large Language Model-Based Game Agentscited by 106
- 2023LMRL Gym: Benchmarks for Multi-Turn Reinforcement Learning with Language Modelscited by 84
- 2023Learning to Model the World with Languagecited by 66
- 2024IBSEN: Director-Actor Agent Collaboration for Controllable and Interactive Drama Script Generationcited by 35
- 2022Large Language Models can Implement Policy Iterationcited by 31
- 2022CAPE: Corrective Actions from Precondition Errors using Large Language Modelscited by 30
- 2023LARP: Language-Agent Role Play for Open-World Gamescited by 24
- 2022Perceiving the World: Question-guided Reinforcement Learning for Text-based Gamescited by 10
- 2021Case-based Reasoning for Better Generalization in Textual Reinforcement Learningcited by 8
- 2024In Context Learning and Reasoning for Symbolic Regression with Large Language Modelscited by 7
9 more
- 2025LLMER: Crafting Interactive Extended Reality Worlds with JSON Data Generated by Large Language Modelscited by 7
- 2025A Generalist Hanabi Agentcited by 5
- 2023Language Decision Transformers with Exponential Tilt for Interactive Text Environmentscited by 3
- 2023Language Model-In-The-Loop: Data Optimal Approach to Learn-To-Recommend Actions in Text Gamescited by 3
- 2025Learning to Play Like Humans: A Framework for LLM Adaptation in Interactive Fiction Gamescited by 3
- 2023Learn What Is Possible, Then Choose What Is Best: Disentangling One-To-Many Relations in Language Through Text-based Gamescited by 2
- 2023ScriptWorld: Text Based Environment For Learning Procedural Knowledgecited by 2
- 2023Self-Supervised Behavior Cloned Transformers are Path Crawlers for Text Gamescited by 1
- 2023Remember what you did so you know what to do nextcited by 0
- 2025Learning to Play Like Humans: A Framework for LLM Adaptation in Interactive Fiction Games18 May 2025
- 2025A Generalist Hanabi Agent17 Mar 2025
- 2025LLMER: Crafting Interactive Extended Reality Worlds with JSON Data Generated by Large Language Models4 Feb 2025
- 2024In Context Learning and Reasoning for Symbolic Regression with Large Language Models22 Oct 2024
- 2024IBSEN: Director-Actor Agent Collaboration for Controllable and Interactive Drama Script Generation1 Jul 2024
- 2024A Survey on Large Language Model-Based Game Agents2 Apr 2024
- 2023LARP: Language-Agent Role Play for Open-World Games24 Dec 2023
- 2023Self-Supervised Behavior Cloned Transformers are Path Crawlers for Text Games7 Dec 2023
- 2023LMRL Gym: Benchmarks for Multi-Turn Reinforcement Learning with Language Models30 Nov 2023
- 2023Language Model-In-The-Loop: Data Optimal Approach to Learn-To-Recommend Actions in Text Games13 Nov 2023
- 2023Remember what you did so you know what to do next30 Oct 2023
- 2023The Rise and Potential of Large Language Model Based Agents: A Survey14 Sep 2023
9 more
- 2023Learning to Model the World with Language31 Jul 2023
- 2023ScriptWorld: Text Based Environment For Learning Procedural Knowledge8 Jul 2023
- 2023Learn What Is Possible, Then Choose What Is Best: Disentangling One-To-Many Relations in Language Through Text-based Games14 Apr 2023
- 2023Do the Rewards Justify the Means? Measuring Trade-Offs Between Rewards and Ethical Behavior in the MACHIAVELLI Benchmark6 Apr 2023
- 2023Language Decision Transformers with Exponential Tilt for Interactive Text Environments10 Feb 2023
- 2022CAPE: Corrective Actions from Precondition Errors using Large Language Models17 Nov 2022
- 2022Large Language Models can Implement Policy Iteration7 Oct 2022
- 2022Perceiving the World: Question-guided Reinforcement Learning for Text-based Games20 Mar 2022
- 2021Case-based Reasoning for Better Generalization in Textual Reinforcement Learning16 Oct 2021
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
- 2024A Survey on Large Language Model-Based Game Agentscited by 106
- 2024IBSEN: Director-Actor Agent Collaboration for Controllable and Interactive Drama Script Generationcited by 35
- 2023LARP: Language-Agent Role Play for Open-World Gamescited by 24
- 2024IBSEN: Director-Actor Agent Collaboration for Controllable and Interactive Drama Script Generation1 Jul 2024
- 2024A Survey on Large Language Model-Based Game Agents2 Apr 2024
- 2023LARP: Language-Agent Role Play for Open-World Games24 Dec 2023
- 2023The Rise and Potential of Large Language Model Based Agents: A Survey14 Sep 2023
- 2023Do the Rewards Justify the Means? Measuring Trade-Offs Between Rewards and Ethical Behavior in the MACHIAVELLI Benchmarkcited by 174
- 2023LMRL Gym: Benchmarks for Multi-Turn Reinforcement Learning with Language Modelscited by 84
- 2023Learning to Model the World with Languagecited by 66
- 2022Large Language Models can Implement Policy Iterationcited by 31
- 2022CAPE: Corrective Actions from Precondition Errors using Large Language Modelscited by 30
- 2022Perceiving the World: Question-guided Reinforcement Learning for Text-based Gamescited by 10
- 2021Case-based Reasoning for Better Generalization in Textual Reinforcement Learningcited by 8
- 2025LLMER: Crafting Interactive Extended Reality Worlds with JSON Data Generated by Large Language Modelscited by 7
- 2025A Generalist Hanabi Agentcited by 5
- 2023Language Model-In-The-Loop: Data Optimal Approach to Learn-To-Recommend Actions in Text Gamescited by 3
- 2025Learning to Play Like Humans: A Framework for LLM Adaptation in Interactive Fiction Gamescited by 3
- 2023Learn What Is Possible, Then Choose What Is Best: Disentangling One-To-Many Relations in Language Through Text-based Gamescited by 2
12 most cited of 15 All 15 (JSON)
- 2025Learning to Play Like Humans: A Framework for LLM Adaptation in Interactive Fiction Games18 May 2025
- 2025A Generalist Hanabi Agent17 Mar 2025
- 2025LLMER: Crafting Interactive Extended Reality Worlds with JSON Data Generated by Large Language Models4 Feb 2025
- 2023Self-Supervised Behavior Cloned Transformers are Path Crawlers for Text Games7 Dec 2023
- 2023LMRL Gym: Benchmarks for Multi-Turn Reinforcement Learning with Language Models30 Nov 2023
- 2023Language Model-In-The-Loop: Data Optimal Approach to Learn-To-Recommend Actions in Text Games13 Nov 2023
- 2023Remember what you did so you know what to do next30 Oct 2023
- 2023Learning to Model the World with Language31 Jul 2023
- 2023ScriptWorld: Text Based Environment For Learning Procedural Knowledge8 Jul 2023
- 2023Learn What Is Possible, Then Choose What Is Best: Disentangling One-To-Many Relations in Language Through Text-based Games14 Apr 2023
- 2023Do the Rewards Justify the Means? Measuring Trade-Offs Between Rewards and Ethical Behavior in the MACHIAVELLI Benchmark6 Apr 2023
- 2022CAPE: Corrective Actions from Precondition Errors using Large Language Models17 Nov 2022
12 newest of 15 All 15 (JSON)