Unsupervised Learning of Interpretable Dialog Models

Dhiraj Madan, Dinesh Raghu, Gaurav Pandey, Sachindra JoshiECAI 2018

Abstract

Recently several deep learning based models have been proposed for end-to-end learning of dialogs. While these models can be trained from data without the need for any additional annotations, it is hard to interpret them. On the other hand, there exist traditional state based dialog systems, where the states of the dialog are discrete and hence easy to interpret. However these states need to be handcrafted and annotated in the data. To achieve the best of both worlds, we propose Latent State Tracking Network (LSTN) using which we learn an interpretable model in unsupervised manner. The model defines a discrete latent variable at each turn of the conversation which can take a finite set of values. Since these discrete variables are not present in the training data, we use EM algorithm to train our model in unsupervised manner. In the experiments, we show that LSTN can help achieve interpretability in dialog models without much decrease in performance compared to end-to-end approaches.

Introduction

Modern dialog systems generally face a trade-off between ease of training and interpretability. End-to-End (E2E) neural models are easily trained on raw text but function as "black boxes," utilizing continuous context vectors that are opaque to human interpretation. Conversely, traditional state-based models offer high interpretability through discrete states (e.g., "Greeting," "Asking for Location") but require labor-intensive manual state definition and data labeling. This paper introduces the Latent State Tracking Network (LSTN), a framework designed to bridge this gap by automatically learning discrete, interpretable states from raw conversation logs without human-labeled data.

Methodology: The Latent State Tracking Network

The LSTN architecture consists of two primary components that manage the flow of a conversation through a sequence of discrete latent states ($z_i$):

  1. Transition Model: This component predicts the next latent state ($z_i$) based on the current user utterance ($x_i$) and the previous state ($z_{i-1}$). It employs an LSTM to embed the input text and a softmax layer to select one of $K$ possible discrete states.
  2. Emission Model: A decoder RNN that generates the agent's response ($y_i$) based solely on the current discrete state ($z_i$).
The LSTN architecture processes dialog turns through transition and emission networks.

Unsupervised Training via EM

Since the latent states are not labeled in the training data, the authors utilize the Expectation-Maximization (EM) algorithm for unsupervised learning:

  • E-Step: The model calculates the probability of being in specific states at specific times across the entire conversation using dynamic programming, akin to the forward-backward algorithm in Hidden Markov Models.
  • M-Step: The model updates its parameters to maximize the likelihood of the observed responses, given the inferred latent states.

A key finding is that joint learning—training the transition and emission models simultaneously—is significantly more effective than pipelined approaches where states are learned in isolation.

Experimental Setup

The model was evaluated across four diverse datasets to test its robustness:

  • Stanford Multi-Domain (SMD): Navigation, weather, and scheduling.
  • CamRest: Restaurant bookings.
  • DSTC6: Dialog State Tracking Challenge data.
  • Car Assistant Dialog Dataset (CADD): A proprietary dataset of ~986 human-bot conversations.

To focus on dialog logic rather than specific data values, entities were anonymized (e.g., "Japanese food" became "cuisine_0").

Key Results and Interpretability

The LSTN demonstrates that discretization does not necessarily compromise performance. The model achieved a recoverability score of 91.9 on the DSTC6 dataset, indicating that the discrete states capture nearly all information required for accurate response generation. Furthermore, LSTN consistently outperformed pipelined "Split-LSTN" versions, achieving a BLEU score of 74.1 compared to 64.07 on DSTC6.

Emergent Intent Discovery

One of the most significant outcomes is the emergence of interpretable intents. Without explicit supervision, the model naturally grouped semantically similar user utterances (e.g., "is it raining?" and "what's the forecast?") into the same latent state.

A visualized dialog tree showing emergent interpretable states.

Qualitative analysis confirmed that specific latent states mapped directly to human concepts. For example, State 30 consistently generated "you're welcome," while State 22 was triggered by navigation requests. This discrete "dialog tree" structure allows domain experts to inspect, rename, and even manually adjust the model's logic.

Limitations and Future Work

While LSTN provides a path toward interpretable E2E models, some challenges remain:

  • Loss of Nuance: Mapping diverse inputs to a finite set of states can lead to the loss of subtle variations (e.g., collapsing "time" and "time and date" requests into a single state).
  • Redundancy: Common responses sometimes appear across multiple latent states.
  • Knowledge Base Integration: Future iterations aim to integrate real-time external data (like live weather or traffic) into the unsupervised latent state framework.

Summary updated

BibTeX
@inproceedings{madan2018unsupervised,
  author = {Dhiraj Madan and Dinesh Raghu and Gaurav Pandey and Sachindra Joshi},
  title = {{Unsupervised Learning of Interpretable Dialog Models}},
  booktitle = {ECAI},
  year = {2018},
  url = {https://openreview.net/forum?id=8hglXiQ3EHb},
}
Figure