Improving Semantic Parsing for Task Oriented Dialog

Arash Einolghozati, Panupong Pasupat, Sonal Gupta, Rushin Shah, Mrinal Mohit, Mike Lewis, Luke ZettlemoyerarXiv 2019

Abstract

Semantic parsing using hierarchical representations has recently been proposed for task oriented dialog with promising results. In this paper, we present three different improvements to the model: contextualized embeddings, ensembling, and pairwise re-ranking based on a language model. We taxonomize the errors possible for the hierarchical representation, such as wrong top intent, missing spans or split spans, and show that the three approaches correct different kinds of errors. The best model combines the three techniques and gives 6.4% better exact match accuracy than the state-of-the-art, with an error reduction of 33%, resulting in a new state-of-the-art result on the Task Oriented Parsing (TOP) dataset.

Introduction

Modern virtual assistants like Alexa, Siri, and Google Assistant have traditionally operated using "flat" semantic frames. In this paradigm, a query is mapped to a single intent (e.g., GET_WEATHER) and a set of associated slots (e.g., LOCATION: Seattle). While effective for simple commands, this approach breaks down when faced with compositional or nested queries that reflect how people naturally speak.

Consider the query: "How far is the coffee shop?" This is not a simple distance request. To answer it, the system must first resolve "the coffee shop" (a GET_RESTAURANT_LOCATION intent) and then use that result as the destination for a GET_DISTANCE intent. To handle such complexity, researchers have moved toward hierarchical representations, treating queries as constituency trees. This paper focuses on enhancing the Task Oriented Parsing (TOP) framework to make these hierarchical parsers more accurate and robust.

Figure 1: Hierarchical representation of a nested query "How far is the coffee shop?".

Methodology

The foundation of the system is a shift-reduce parser based on Recurrent Neural Network Grammars (RNNG). This parser processes text sequentially, making decisions (actions) to either "shift" a word onto a stack or "reduce" a set of items on the stack into a labeled constituent (like a slot or intent). To improve this baseline, the authors propose three key enhancements:

1. Contextualized Word Embeddings (ELMo)

Traditional parsers often use static word vectors (like GloVe). This paper integrates ELMo (Embeddings from Language Models), which generates word representations based on the surrounding context. A significant finding was that the first layer of ELMo—often associated with capturing syntactic information—outperformed the final layer for this parsing task. This suggests that identifying structural cues (like prepositions or articles that signal the start of a slot) is more critical for parsing than high-level semantic abstractions.

2. Model Ensembling

Ensembling involves combining the outputs of multiple independently trained parsers to produce a more reliable result. The authors explored several strategies, including Majority Vote (selecting the most frequent full parse tree) and Greedy Action (where the ensemble votes on the next action at each step of the shift-reduce process).

3. Language Model Re-ranking

The parser typically generates a "beam" of the top candidate parses. To improve the selection of the final output, the authors trained a neural language model (LM) on serialized versions of the parse trees. By converting trees into sequences, they could leverage standard sequence modeling techniques. A Support Vector Machine (SVM) ranker was then used to weigh the parser's internal probability score against the LM's score to pick the best candidate from the beam.

Experimental Results

The models were evaluated on the Task Oriented Parsing (TOP) dataset, which contains over 40,000 utterances focused on navigation and event domains. The primary metric is exact match accuracy, requiring the entire predicted tree to be perfect.

The results demonstrate the power of combining these orthogonal techniques:

  • Base Model: 80.86% accuracy
  • ELMo Integration: 83.93% accuracy
  • Ensemble Integration: 83.84% accuracy
  • Full Combined Model: 87.25% accuracy

This final result represents a 33% reduction in the error rate compared to previous state-of-the-art methods.

Figure 4: Accuracy of different re-ranking methods. The "Oracle" results show the potential accuracy if the best candidate was always chosen from the beam.

Error Analysis and Insights

A core contribution of this work is the taxonomy of errors in hierarchical parsing. The analysis revealed that the proposed improvements are complementary:

  • Ensembling is particularly effective at correcting the "Top Intent," ensuring the core meaning of the query is understood.
  • ELMo excels at fixing boundary issues, such as "Missing Spans" or "Wrong Joins," likely due to its better grasp of local syntax.
  • Re-ranking helps bridge the gap between the parser's local decisions and the global coherence of the tree.

Conclusion and Future Work

By combining contextualized embeddings, ensembling, and LM-based re-ranking, this research achieves a new state-of-the-art in task-oriented semantic parsing. However, challenges remain. As shown in Figure 4, an "Oracle" ranker capable of perfectly selecting from a top-5 beam could reach over 93% accuracy, indicating that current re-ranking methods still leave significant performance on the table. Additionally, the computational cost of ensembling and re-ranking poses a challenge for deployment on resource-constrained edge devices. Future research will likely focus on more efficient ranking mechanisms and expanding these hierarchical techniques to broader, open-domain dialog scenarios.

Summary updated

BibTeX
@misc{einolghozati2019improving,
  author = {Arash Einolghozati and Panupong Pasupat and Sonal Gupta and Rushin Shah and Mrinal Mohit and Mike Lewis and Luke Zettlemoyer},
  title = {{Improving Semantic Parsing for Task Oriented Dialog}},
  year = {2019},
  eprint = {1902.06000},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.06000},
}
Figure