Finding Dominant User Utterances And System Responses in Conversations

Dhiraj Madan, Sachindra Joshi

Abstract

Building chatbots manually is a slow, expensive process of defining "intents" and "dialog flows." This paper introduces SimCluster, an algorithm that automatically discovers these patterns by jointly clustering user utterances and system responses based on their conversational adjacency. By leveraging the fact that similar intents usually trigger similar responses, SimCluster achieves up to a 10% improvement in identifying dominant conversational pairs compared to standard clustering methods.

Introduction

In the world of industrial AI, most chatbots rely on a manually defined "dialog flow." A designer must specify intents (e.g., #laptop_heat) and map them to specific system responses. The challenge is that users express the same intent in infinite ways, while agents often use varied but functionally identical responses. Manually labeling thousands of these examples is laborious. While standard clustering (like K-means) can group similar-looking sentences, it often fails because two sentences might be syntactically different but contextually identical. The authors aim to bridge this gap by using the structure of the conversation—who says what after whom—to improve clustering accuracy.

A typical dialog flow illustrating how user intents trigger specific system responses and subsequent actions.

Methodology: The SimCluster Algorithm

The authors propose SimCluster, an extension of the classic K-means algorithm. The key innovation is Joint Clustering with Adjacency Information. Instead of clustering user messages and agent responses in isolation, SimCluster clusters them simultaneously.

  1. Vector Representation: Utterances are converted into mathematical vectors using Doc2Vec (paragraph embeddings) or Seq2Seq (internal states of an LSTM trained on conversation turns).
  2. Induced Centroids: The algorithm calculates "induced centroids." For example, a user cluster's induced centroid is the average of all user messages that were followed by a specific agent cluster.
  3. Bipartite Matching: The algorithm uses the Hungarian algorithm to find the best one-to-one mapping between user clusters and agent clusters.
  4. Modified Objective Function: SimCluster adds a penalty term to the standard K-means objective. This term "pulls" the cluster centroids toward their matched induced centroids. Essentially, if two different-looking user messages always result in the same agent response, the algorithm is incentivized to group those user messages together.
SimCluster utilizes bipartite matching to align user utterance clusters ($C^x$) with system response clusters ($C^y$) based on conversational adjacency.

Experimental Results

The authors evaluated SimCluster on both synthetic and real-world datasets. On a collection of Twitter conversations with Amazon Help, SimCluster improved the F1-score by 10% absolute (from 0.787 to 0.88) over standard K-means when using Doc2Vec embeddings.

Key insights from the evaluation include:

  • Context as a Clarifier: Syntactic similarity is a weak signal. However, if two sentences consistently trigger the same response, they are likely the same intent. SimCluster codifies this intuition.
  • Asymmetric Benefits: Clustering user utterances benefits significantly more from agent data than vice versa. Agent responses tend to be more formulaic, acting as a "stable anchor" for varied customer speech.
  • Robustness to Noise: In synthetic tests, SimCluster's advantage over standard K-means grew as the variance (noise) of the data increased, suggesting high utility for real-world applications with diverse phrasing.

Conclusion and Future Work

SimCluster demonstrates that joint clustering of adjacent conversational turns significantly improves intent discovery. While the current model assumes a bijective mapping between intents and responses, future work will explore many-to-many mappings and longer conversational chains to capture more complex dialog states.

Summary updated

BibTeX
@inproceedings{madan2017finding,
  author = {Dhiraj Madan and Sachindra Joshi},
  title = {{Finding Dominant User Utterances And System Responses in Conversations}},
  booktitle = {IJCNLP},
  year = {2017},
}
Figure