Introduction
In the lifecycle of a task-oriented dialog system—such as those used in banking, retail, or customer support—the Natural Language Understanding (NLU) module is responsible for mapping user utterances to specific intents. However, real-world interactions frequently fall outside the system's trained scope. These "unrecognized" utterances are typically collected in an "unhandled pool." For large-scale deployments, this pool can accumulate tens of thousands of entries daily, representing a significant but untapped resource for understanding user needs and system gaps.
The challenge lies in the nature of this data: it is high-volume, extremely noisy, and lacks predefined labels. Traditional clustering techniques often struggle because the number of underlying topics is unknown, and the data contains a "long tail" of unique outliers. This paper presents an end-to-end pipeline designed to transform this noisy data into actionable insights through automated clustering, representative selection, and labeling.
Methodology
The proposed pipeline consists of three primary stages: clustering, representative selection, and naming.
1. Radius-Based Clustering (RBC)
Standard clustering algorithms like k-means require a pre-specified number of clusters ($k$), which is impractical for discovery tasks. The authors introduce Radius-Based Clustering (RBC), which utilizes a similarity threshold (min_sim). An utterance is assigned to an existing cluster if it meets the similarity threshold; otherwise, it initiates a new cluster centroid. To mitigate the impact of noise, clusters that do not reach a minimum size (min_size) are discarded as outliers. This approach allows the system to "gracefully tolerate" the high percentage of irrelevant data common in unhandled pools.
2. Representative Selection via Determinantal Point Processes (DPP)
Once clusters are formed, analysts need to understand their content without reading every sentence. The pipeline uses Determinantal Point Processes (DPP) to select a subset of representative utterances. The selection balances two critical criteria:
- Centrality: Selecting high-frequency, typical phrasings that represent the core of the cluster.
- Diversity: Selecting varied phrasings to capture the different ways users might express the same intent, ensuring the analyst sees the full breadth of the topic.
3. Automated Cluster Naming
To provide immediate context, the system generates descriptive labels for each cluster. The researchers evaluated two methods: a traditional tf-idf approach (ranking n-grams) and KeyBERT (leveraging BERT embeddings to identify keywords).
Experimental Setup and Datasets
The pipeline was evaluated across six diverse datasets, including three public benchmarks (Liu et al., Larson et al., and Tepper et al.) and three proprietary datasets from commercial chatbots in the Telecom, Finance, and Retail sectors. Performance was measured using the Adjusted Rand Index (ARI) and Silhouette Scores for clustering, alongside human annotation for evaluating representative selection.
Key Results and Insights
The experimental results highlight the robustness of the RBC approach in real-world scenarios:
- Clustering Superiority: RBC consistently outperformed HDBSCAN. In the Telecom dataset, for instance, RBC achieved an ARI of 0.63, whereas HDBSCAN failed to find meaningful partitions (ARI of 0.00). This suggests that the "radius" approach is better suited for the specific distribution of dialog data than density-based methods.
- The Outlier Factor: A significant finding was that outliers often constitute up to 50% of unhandled data. By explicitly filtering these out rather than forcing them into clusters, RBC maintains higher cluster purity.
- Human Preference for DPP: In blind tests, human annotators preferred the DPP-based selection in 79% of cases over random sampling or frequency-based selection. This confirms that the balance of centrality and diversity is crucial for human interpretability.
- Computational Efficiency: The pipeline is highly scalable, capable of processing 85,000 requests in approximately 82 seconds on standard hardware, making it suitable for daily production use.
- Naming Simplicity: Interestingly, the simpler tf-idf method performed comparably to KeyBERT in naming quality while being significantly faster, suggesting that complex embedding-based naming may not always be necessary for this specific task.
Conclusion
This research provides a practical framework for maintaining and expanding task-oriented dialog systems. By automating the organization of unrecognized utterances, developers can move from reactive troubleshooting to proactive system improvement. While the current pipeline requires a human analyst to interpret the clusters, future work aims to automate recommendations for training data updates and intent creation, further closing the loop between data collection and system optimization.
Summary updated