SeriesNatural Language Processing8 / 14

Task-Oriented Dialogue (Meta)

Module 8 of CS 7650 - Natural Language Processing @ Georgia Tech.

Introduction#

A Task-Oriented Dialogue (ToD) system helps the user to achieve a particular task through repeated natural language prompts and maintained dialogue history. Examples include using an AI agent to book a restaurant, plan a travel itinerary, and so on. A successful ToD system must maintain context of dialogue, and piece together relevant information needed to complete the task at hand.

ToD systems typically have the following major characteristics:

ToD-components

Components of ToD System#

Automatic Speech Recognition#

ToD systems rely on Automatic Speech Recognition (ASR) to capture user speech.

  1. User utterances recorded for speech segments.
  2. Acoustic features computed from speech segments; treated as sequence of observations. Sequence is further translated to phonemic sequence.
  3. Phonemic representation is further translated or decoded to sub-words or words via a language model.

ASR models are evaluated using metrics such as character / word / slot error rate, where a slot is an entity or span contained in a given utterance.

Intent Understanding#

Converting speech recognition output to a semantic representation is also challenging due to a number of reasons:

As part of Intent Prediction, the system attempts to understand the user goal. The system may conduct additional information seeking or clarification in order to gather necessary details. It may also define knowledge slots to fill based on task requirements. Note that the task may be completed via different paths depending on slot information available to the system.

Dialogue Manager#

The purpose of the Dialogue Manager is to orchestrate content and structure of dialogue as part of a ToD conversation. It may achieve this using a handcrafted dialogue task tree with fixed transitions between dialogue states.

The state tracked by the manager consists of dialogue history:

Dialogue policy refers to the decision making process for the next action to take given the current dialogue state. If the system is simple, we may use simple conditionals for our policy. For more complicated systems, we should train a Reinforcement Learning model using a Partially Observed Markov Decision Process (POMDP).

Natural Language Generation#

Text Generation as part of ToD takes one of two major forms:

Methods for generation include template-based responses, structured prediction, Seq2seq encoder/decoder models, and structured fusion networks. System may be capable of providing slot-level attention to properly attend to relevant context provided by the user.

Other Remarks#

End-to-End ToD#

An End-to-End ToD system combines many individual deep neural networks into a single cohesive unit:

ToD-system

Recovering from Errors#

Considering our system has many different components, we may have many different opportunities for error:

Recovery strategies for ToD systems include…


(all images obtained from Georgia Tech NLP course materials)

License

CC BY-NC-SA 4.0 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Related Posts