Skip to main content
QUICK REVIEW

[Paper Review] CFGs-2-NLU: Sequence-to-Sequence Learning for Mapping Utterances to Semantics and Pragmatics

Adam Summerville, James Ryan|arXiv (Cornell University)|Jul 22, 2016
Topic ModelingComputer Science16 references4 citations
TL;DR

This paper proposes a sequence-to-sequence learning approach that uses a context-free grammar (CFG) annotated with semantic and pragmatic information to train an LSTM RNN to map player utterances in a game to grammatical traces. The system achieves high accuracy in translating surface utterances to traces, enabling robust inference of meaning and pragmatic context for dialogue management in interactive storytelling games.

ABSTRACT

In this paper, we present a novel approach to natural language understanding that utilizes context-free grammars (CFGs) in conjunction with sequence-to-sequence (seq2seq) deep learning. Specifically, we take a CFG authored to generate dialogue for our target application for NLU, a videogame, and train a long short-term memory (LSTM) recurrent neural network (RNN) to map the surface utterances that it produces to traces of the grammatical expansions that yielded them. Critically, this CFG was authored using a tool we have developed that supports arbitrary annotation of the nonterminal symbols in the grammar. Because we already annotated the symbols in this grammar for the semantic and pragmatic considerations that our game's dialogue manager operates over, we can use the grammatical trace associated with any surface utterance to infer such information. During gameplay, we translate player utterances into grammatical traces (using our RNN), collect the mark-up attributed to the symbols included in that trace, and pass this information to the dialogue manager, which updates the conversation state accordingly. From an offline evaluation task, we demonstrate that our trained RNN translates surface utterances to grammatical traces with great accuracy. To our knowledge, this is the first usage of seq2seq learning for conversational agents (our game's characters) who explicitly reason over semantic and pragmatic considerations.

Motivation & Objective

  • To reduce the authorial burden of building rule-based NLU systems for open-domain, interactive dialogue in games.
  • To create a scalable, less brittle alternative to hand-authored pattern-matching rules for natural language understanding.
  • To enable naive authors to specify semantic and pragmatic annotations via a graphical grammar authoring tool (Expressionist).
  • To leverage sequence-to-sequence learning to infer complex, hierarchical linguistic patterns from grammatical traces.
  • To support both natural language generation and understanding using the same annotated grammar.

Proposed method

  • A context-free grammar (CFG) is authored using the Expressionist tool, with nonterminal symbols annotated for semantic and pragmatic content.
  • Terminal derivations (surface utterances) are paired with their corresponding grammatical expansion traces to form a training dataset.
  • An LSTM-based sequence-to-sequence model is trained to map surface utterances to their grammatical traces.
  • During inference, the trained RNN translates player utterances into grammatical traces, which are then used to extract semantic and pragmatic annotations.
  • The system leverages the trace structure to propagate annotations from nonterminals to the final utterance interpretation.
  • Future extensions include integrating conversational history and using beam search or pointer networks for better handling of named entities.

Experimental results

Research questions

  • RQ1Can a sequence-to-sequence model accurately map natural language utterances to grammatical traces derived from an annotated CFG?
  • RQ2Does using a grammar-annotated sequence-to-sequence model reduce authorial burden compared to traditional rule-based NLU systems?
  • RQ3Can this approach support robust semantic and pragmatic inference in open-domain, interactive dialogue systems like those in games?
  • RQ4How does the model handle out-of-vocabulary or ambiguous utterances in conversational contexts?
  • RQ5To what extent can the same grammar be used for both natural language generation and understanding?

Key findings

  • The trained RNN achieves high accuracy in translating surface utterances to grammatical traces, enabling reliable inference of semantic and pragmatic content.
  • The method significantly reduces the need for hand-authoring thousands of discrete rules, as demonstrated by the generation of quadrillions of derivations from minimal authoring effort.
  • The same grammar can be used for both natural language generation and understanding, improving consistency and reducing duplication.
  • The approach is more amenable to naive authors through a graphical interface that provides live feedback on utterance derivations and annotations.
  • The system demonstrates robustness to variation in input utterances by learning hierarchical patterns rather than relying on rigid pattern matching.
  • The authors identify future work to improve handling of named entities and contextual ambiguity by incorporating conversational history and advanced decoding strategies.

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.