Skip to main content
QUICK REVIEW

[Paper Review] Playing Text-Based Games with Common Sense

Sahith N. Dambekodi, Spencer Frazier|arXiv (Cornell University)|Dec 4, 2020
Topic ModelingComputer Science16 references17 citations
TL;DR

This paper proposes enhancing text-based game agents with commonsense knowledge to improve robustness in partially observable, real-world-like environments. By inferring missing world state elements via COMET or BERT and integrating them into the knowledge graph, agents achieve significantly better performance on the challenging 9:05 'slice of life' game, especially when observations are incomplete or noisy.

ABSTRACT

Text based games are simulations in which an agent interacts with the world purely through natural language. They typically consist of a number of puzzles interspersed with interactions with common everyday objects and locations. Deep reinforcement learning agents can learn to solve these puzzles. However, the everyday interactions with the environment, while trivial for human players, present as additional puzzles to agents. We explore two techniques for incorporating commonsense knowledge into agents. Inferring possibly hidden aspects of the world state with either a commonsense inference model COMET, or a language model BERT. Biasing an agents exploration according to common patterns recognized by a language model. We test our technique in the 9to05 game, which is an extreme version of a text based game that requires numerous interactions with common, everyday objects in common, everyday scenarios. We conclude that agents that augment their beliefs about the world state with commonsense inferences are more robust to observational errors and omissions of common elements from text descriptions.

Motivation & Objective

  • To address the challenge of partial observability in text-based games, where agents miss key objects due to incomplete or noisy descriptions.
  • To investigate whether commonsense knowledge can improve agent performance in realistic, everyday scenarios common in 'slice of life' games.
  • To evaluate whether augmenting the agent's world state beliefs with inferred entities (via COMET or BERT) is more effective than biasing exploration via language model patterns.
  • To test the robustness of agents under observational failures, particularly in the 9:05 game, which simulates mundane real-world routines.

Proposed method

  • Augment the KG-A2C agent framework by integrating commonsense inferences into the knowledge graph using COMET, a neural model that generates plausible world state relations (e.g., HasA) from natural language.
  • Use BERT’s next-sentence prediction capability to guide action exploration by identifying common action sequences in natural language, biasing the agent toward plausible command sequences.
  • Apply Q*BERT, a question-answering approach using BERT, to infer diverse commonsense attributes and relations beyond simple HasA, improving coverage of implicit world state elements.
  • Train and evaluate agents in the 9:05 game under two conditions: full observations and modified observations with missing object references to simulate real-world omissions.
  • Compare performance across three variants: baseline KG-A2C, KG-A2C-BERT (exploration bias), and COMET-A2C/Q*BERT (knowledge graph augmentation).
  • Use sparse dense reward shaping (reward = 2 for entering bathroom, 6 for shower) to measure progress and convergence speed in complex, multi-step tasks.

Experimental results

Research questions

  • RQ1Can commonsense knowledge improve agent performance in text-based games with realistic, everyday scenarios, especially when observations are incomplete?
  • RQ2Is augmenting the agent’s world state beliefs with inferred entities more effective than biasing exploration using language model patterns?
  • RQ3How do different sources of commonsense knowledge (COMET vs. BERT vs. Q*BERT) compare in improving robustness to observational failures?
  • RQ4Does the use of diverse commonsense inferences (beyond simple HasA relations) lead to faster convergence and better task completion in complex, real-world-like environments?

Key findings

  • COMET-A2C and Q*BERT significantly outperform KG-A2C and KG-A2C-BERT when object references are missing from room descriptions, achieving full task completion in the bathroom.
  • KG-A2C fails to progress past a reward of 2 (entering the bathroom) when key objects like sink, toilet, and shower are omitted, demonstrating vulnerability to observational gaps.
  • KG-A2C-BERT performs no better than baseline KG-A2C under missing object conditions, indicating that exploration bias alone cannot compensate for missing world state knowledge.
  • Q*BERT converges faster than COMET-A2C in the missing-objects condition, suggesting that diverse commonsense inference via question-answering yields more effective world state modeling.
  • The use of commonsense inferences to augment the knowledge graph leads to more robust and reliable performance than exploration bias, especially under real-world-like observational noise.
  • The results confirm that commonsense knowledge is essential for agents to handle real-world-like environments where details are often omitted or implied rather than explicitly stated.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.