Abstract
Much recent work in task-oriented parsing has focused on finding a middle ground between flat slots and intents, which are inexpressive but easy to annotate, and powerful representations such as the lambda calculus, which are expressive but costly to annotate. This paper continues the exploration of task-oriented parsing by introducing a new dataset for parsing pizza and drink orders, whose semantics cannot be captured by flat slots and intents. We perform an extensive evaluation of deep-learning techniques for task-oriented parsing on this dataset, including different flavors of seq2seq systems and RNNGs. The dataset comes in two main versions, one in a recently introduced utterance-level hierarchical notation that we call TOP, and one whose targets are executable representations (EXR). We demonstrate empirically that training the parser to directly generate EXR notation not only solves the problem of entity resolution in one fell swoop and overcomes a number of expressive limitations of TOP notation, but also results in significantly greater parsing accuracy.
Introduction
Modern virtual assistants typically rely on "flat" semantic frames to process user requests. For instance, "Order a large pepperoni pizza" is easily mapped to an intent (OrderPizza) and slots (Size: Large, Topping: Pepperoni). However, this approach fails to capture the complexity of nested or multi-part queries, such as: "I’d like two large pizzas with ham and also one diet pepsi and one coke."
To address these limitations, researchers have proposed hierarchical notations like TOP (Task-Oriented Parsing). While more expressive, TOP still requires a separate entity resolution (ER) step to map surface text (e.g., "two") to canonical values (e.g., 2). This paper introduces the PIZZA dataset and evaluates whether training models to directly output Executable Representations (EXR) can streamline this process and improve accuracy.
Semantic Representations and the PIZZA Dataset
The PIZZA dataset consists of over 2.4 million utterances. Training data was synthetically generated using a Probabilistic Context-Free Grammar (PCFG), while evaluation sets were human-generated via Amazon Mechanical Turk to capture natural linguistic variation.
The study compares three primary target representations:
- EXR (Executable Representations): Purely semantic code that canonicalizes entities.
- TOP: A hierarchical notation that preserves surface text.
- TOP-Decoupled: A version of TOP designed to handle non-projective language and long-range dependencies.
The structural difference between EXR and TOP is fundamental. As shown in Figure 2, EXR (a) maps natural language tokens to a fixed, canonical vocabulary (e.g., "one" becomes 1), whereas TOP (b) retains the original utterance tokens within the tree structure.
Experimental Methodology
The authors evaluated several architectures for this task:
- BART: A Transformer-based denoising autoencoder, treated as a seq2seq translation model. This was the top-performing model.
- RNNGs (Recurrent Neural Network Grammars): A specialized architecture for building parse trees via shift-reduce actions.
- LSTMs: Standard sequence-to-sequence models used as baselines.
- Pipeline Models: A "divide and conquer" approach using intent segmentation followed by Named Entity Recognition (NER).
Key Results and Insights
The primary evaluation metric was Exact Match (EM) accuracy against the ground-truth EXR.
- EXR Superiority: Training BART to generate EXR directly yielded 78.56% EM, a significant improvement over the 62.17% EM achieved when generating TOP. This suggests that the cleaner, smaller vocabulary of EXR simplifies the learning task and eliminates the need for a brittle post-processing ER step.
- Generalization: Despite being trained primarily on synthetic PCFG data, BART successfully parsed 60% of human utterances that the original grammar could not handle, demonstrating the robust "fuzzy" matching capabilities of large pre-trained models.
- Natural Order: The researchers found that performance improved when the output argument order (e.g., Size before Topping) mirrored the order of appearance in the user's utterance, a concept they termed "Natural Order."
Conclusion
Directly generating executable representations (EXR) offers a powerful alternative to traditional hierarchical parsing. It solves entity resolution end-to-end and provides superior accuracy. While scaling to "open world" domains with millions of entities remains a challenge, the PIZZA benchmark demonstrates a viable path for rapidly building sophisticated NLU systems for complex task-oriented domains.
Summary updated