Skip to main content
QUICK REVIEW

[Paper Review] Graph Constrained Reinforcement Learning for Natural Language Action Spaces

Prithviraj Ammanabrolu, Matthew Hausknecht|arXiv (Cornell University)|Jan 23, 2020
Topic ModelingComputer Science18 references36 citations
TL;DR

KG-A2C uses a knowledge-graph state representation and a template-based action space to efficiently explore large natural language action spaces in interactive fiction, achieving state-of-the-art performance on many Jericho games.

ABSTRACT

Interactive Fiction games are text-based simulations in which an agent interacts with the world purely through natural language. They are ideal environments for studying how to extend reinforcement learning agents to meet the challenges of natural language understanding, partial observability, and action generation in combinatorially-large text-based action spaces. We present KG-A2C, an agent that builds a dynamic knowledge graph while exploring and generates actions using a template-based action space. We contend that the dual uses of the knowledge graph to reason about game state and to constrain natural language generation are the keys to scalable exploration of combinatorially large natural language actions. Results across a wide variety of IF games show that KG-A2C outperforms current IF agents despite the exponential increase in action space size.

Motivation & Objective

  • Motivate scalable reinforcement learning in text-based games with combinatorially large action spaces.
  • Propose a hybrid agent that couples a dynamic knowledge graph with a template-based action space.
  • Train the agent with a graph-aware on-policy method and evaluate across diverse IF games.
  • Analyze ablations to understand the contribution of graph and template components to performance.

Proposed method

  • Represent game state with a dynamic knowledge graph updated from observations via OpenIE and rule-based refinements.
  • Constrain action generation with a template-based space, filled from a vocabulary, and a graph mask derived from the KG.
  • Encode observations and KG through GRUs and Graph Attention Networks to produce a state embedding.
  • Decode actions as a two-stage process: select a template then fill object slots, constrained by a graph-based mask.
  • Train with an Advantage Actor-Critic (A2C) framework using valid-action losses to reduce exploration to meaningful actions.
  • Incorporate an auxiliary entropy loss over valid actions to encourage exploration and prevent premature convergence.

Experimental results

Research questions

  • RQ1Can a knowledge-graph grounded state representation combined with a template-based action space enable scalable RL in NLP action spaces?
  • RQ2How does graph attention and graph-guided masking influence learning efficiency and performance across diverse IF games?
  • RQ3What is the relative importance of valid-action supervision versus unrestricted exploration in learning effective policies for text-based games?

Key findings

  • KG-A2C matches or beats the Template-DQN baseline on 23 of 28 Jericho games.
  • Across a wide set of games, KG-A2C achieves strong performance despite the action space being six orders of magnitude larger than previous agents.
  • Ablation results show graph components (GAT) and graph masking generally improve performance; removing valid-action supervision greatly degrades learning.
  • KG-A2C maintains robust performance across diverse game genres and state-action structures, indicating good generalizability of the approach.
  • Ablations indicate the template-based action space is crucial; word-by-word decoding without templates performs poorly.

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.