Skip to main content
QUICK REVIEW

[Paper Review] Building Dynamic Knowledge Graphs from Text-based Games

Mikuláš Zelinka, Xingdi Yuan|arXiv (Cornell University)|Oct 21, 2019
Topic ModelingComputer Science13 references8 citations
TL;DR

This paper proposes a sequence-to-sequence transformer model that generates dynamic knowledge graph (KG) update operations from text-based game observations, using a novel dataset of 300k game transitions. The model outperforms baselines by leveraging relational graph convolutional networks with learned relation embeddings, significantly improving performance in free-running inference where errors accumulate.

ABSTRACT

We are interested in learning how to update Knowledge Graphs (KG) from text. In this preliminary work, we propose a novel Sequence-to-Sequence (Seq2Seq) architecture to generate elementary KG operations. Furthermore, we introduce a new dataset for KG extraction built upon text-based game transitions (over 300k data points). We conduct experiments and discuss the results.

Motivation & Objective

  • To develop a general-purpose method for dynamically updating knowledge graphs from natural language text in interactive environments.
  • To address the challenge of maintaining accurate, evolving world knowledge in partially observable, text-based games.
  • To create a dataset that enables training and evaluation of dynamic KG update models in realistic, non-walkthrough game transitions.
  • To improve reinforcement learning agents' world modeling by learning to generate precise KG update operations from text observations.

Proposed method

  • The model uses a dual-encoder architecture: a transformer-based text encoder for processing the previous action and new observation, and a graph encoder for representing the prior belief graph.
  • A relational graph convolutional network (R-GCN) with learned relation embeddings encodes the KG, capturing both structural and semantic information about relations.
  • An attention-based aggregator fuses the text and graph representations to produce context-aware hidden states for the decoder.
  • The decoder generates a sequence of KG update operations token-by-token using teacher forcing during training and autoregressive decoding at inference.
  • The model is trained with negative log-likelihood loss and generates operations in a format compatible with RDF triples.
  • The proposed method is evaluated on a new dataset of 300k text-based game transitions, where ground-truth KGs are extracted from game state transitions.

Experimental results

Research questions

  • RQ1Can a neural sequence-to-sequence model effectively generate precise KG update operations from natural language observations in text-based games?
  • RQ2How does incorporating relational information in graph encoders affect the accuracy of dynamic KG updates?
  • RQ3Does learning from off-policy transitions (non-walkthrough actions) improve the robustness of KG update models in real-world RL settings?
  • RQ4How do error accumulation effects impact the performance of KG update models in free-running inference scenarios?
  • RQ5Can relational embeddings that encode the semantics of relation labels improve generalization beyond standard R-GCNs?

Key findings

  • The model with R-GCN and relation embeddings achieved the highest free-running F1 score of 0.697, significantly outperforming models without relational information.
  • The R-GCN variant with relation embeddings improved free-running F1 by 5.2 percentage points over the standard R-GCN, indicating the importance of semantic relation modeling.
  • The model's performance dropped from 0.965 F1 (teacher-forced) to 0.697 F1 (free-running), demonstrating the challenge of error accumulation in iterative KG updates.
  • The use of relational embeddings led to a 5.2% absolute improvement in free-running F1 over the standard R-GCN, highlighting the benefit of modeling relation semantics.
  • The model with a standard transformer encoder and no graph encoder achieved only 0.832 F1 under teacher forcing, showing that graph structure is essential for high performance.
  • The dataset of 300k transitions, including off-policy actions, enables robust training for generalization in RL environments.

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.