mlsanityData to 7 Oct 2026

Pre-trained Language Models as Prior Knowledge for Playing Text-based Games

arXiv 2107.08408 ↗First posted 18 Jul 2021cs.CL cs.AI cs.MAcited by 21

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  4. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  5. 2019Language Models as Knowledge Bases?cited by 1,922
  6. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
  7. 2017Curiosity-driven Exploration by Self-supervised Predictioncited by 1,173
  8. 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
  9. 2018TextWorld: A Learning Environment for Text-based Gamescited by 304
  10. 2019Stabilizing Transformers for Reinforcement Learningcited by 262
  11. 2019Interactive Fiction Games: A Colossal Adventurecited by 165
  12. 2020Keep CALM and Explore: Language Models for Action Generation in Text-based Gamescited by 108
7 more
  1. 2015Deep Reinforcement Learning with a Natural Language Action Spacecited by 88
  2. 2020Graph Constrained Reinforcement Learning for Natural Language Action Spacescited by 80
  3. 2020How to Avoid Being Eaten by a Grue: Structured Exploration Strategies for Textual Worldscited by 38
  4. 2020Interactive Fiction Game Playing as Multi-Paragraph Reading Comprehension with Reinforcement Learningcited by 27
  5. 2020Deep Reinforcement Learning with Stacked Hierarchical Attention for Text-based Gamescited by 22
  6. 2021Reading and Acting while Blindfolded: The Need for Semantics in Text Game Agentscited by 20
  7. 2021The NLP Cookbook: Modern Recipes for Transformer based Deep Learning Architecturescited by 16

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 3; 2023: 11; 2024: 3; 2025: 3.

21 papers.

Sort:

By area:

  1. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
  2. 2023Do the Rewards Justify the Means? Measuring Trade-Offs Between Rewards and Ethical Behavior in the MACHIAVELLI Benchmarkcited by 174
  3. 2024A Survey on Large Language Model-Based Game Agentscited by 106
  4. 2023LMRL Gym: Benchmarks for Multi-Turn Reinforcement Learning with Language Modelscited by 84
  5. 2023Learning to Model the World with Languagecited by 66
  6. 2024IBSEN: Director-Actor Agent Collaboration for Controllable and Interactive Drama Script Generationcited by 35
  7. 2022Large Language Models can Implement Policy Iterationcited by 31
  8. 2022CAPE: Corrective Actions from Precondition Errors using Large Language Modelscited by 30
  9. 2023LARP: Language-Agent Role Play for Open-World Gamescited by 24
  10. 2022Perceiving the World: Question-guided Reinforcement Learning for Text-based Gamescited by 10
  11. 2021Case-based Reasoning for Better Generalization in Textual Reinforcement Learningcited by 8
  12. 2024In Context Learning and Reasoning for Symbolic Regression with Large Language Modelscited by 7
9 more
  1. 2025LLMER: Crafting Interactive Extended Reality Worlds with JSON Data Generated by Large Language Modelscited by 7
  2. 2025A Generalist Hanabi Agentcited by 5
  3. 2023Language Decision Transformers with Exponential Tilt for Interactive Text Environmentscited by 3
  4. 2023Language Model-In-The-Loop: Data Optimal Approach to Learn-To-Recommend Actions in Text Gamescited by 3
  5. 2025Learning to Play Like Humans: A Framework for LLM Adaptation in Interactive Fiction Gamescited by 3
  6. 2023Learn What Is Possible, Then Choose What Is Best: Disentangling One-To-Many Relations in Language Through Text-based Gamescited by 2
  7. 2023ScriptWorld: Text Based Environment For Learning Procedural Knowledgecited by 2
  8. 2023Self-Supervised Behavior Cloned Transformers are Path Crawlers for Text Gamescited by 1
  9. 2023Remember what you did so you know what to do nextcited by 0