Introduction
Building an effective dialog manager—the core logic of any chatbot—traditionally requires a labor-intensive manual process. Developers must sift through thousands of user queries to group them into a taxonomy of "intents" (e.g., BookFlight vs. CheckWeather). This task is complicated by semantic complexity, where short questions may look identical but mean different things, and inherent subjectivity, as intent definitions often depend on specific business requirements.
While unsupervised clustering methods are often used to automate this discovery phase, they frequently fail to capture the nuanced, human-defined categories required for production systems. This paper introduces a supervised clustering framework that leverages high-performance semantic similarity classifiers and structured output learning to automate intent discovery by learning directly from human-annotated examples.
Methodology
The authors frame intent discovery as a Supervised Clustering problem using Structured Output Learning. The approach consists of two primary components:
- Pairwise Similarity Classifier: An SVM-based classifier evaluates pairs of questions to generate a similarity score. It utilizes features such as n-gram overlap, greedy string tiling, and Jaccard coefficients to determine semantic relatedness.
- Structured Output Clustering: To move beyond isolated pairwise decisions, the framework employs Latent Structural SVM (LSSVM) and Latent Structured Perceptron (LSP). The system represents questions as nodes in a graph, where edges represent similarity scores. The objective is to identify an optimal "spanning forest" where each tree represents a distinct intent cluster. By training on gold-standard examples, the model learns a weight vector ($w$) that optimizes the global clustering structure rather than relying solely on raw, local similarity metrics.
Experimental Setup
The framework was evaluated across three distinct datasets to test its versatility:
- Quora Question Pairs: A massive dataset transformed into clusters via transitive closure (if A=B and B=C, then {A, B, C} form a cluster).
- Manually Annotated Quora: A high-quality subset re-annotated by experts to create a hierarchical intent taxonomy, addressing the noise in automated Quora clusters.
- FAQ Hype: A real-world dataset from an Italian online service containing 147 questions across 28 intent-based clusters, testing the model's performance in different languages and domains.
Key Results and Analysis
The supervised approach significantly outperformed traditional unsupervised baselines across multiple metrics. On the Quora dataset, the LSSVM model achieved an F1 score of 78.96, a substantial improvement over the best unsupervised baseline (SVM + k-means), which scored 68.60.
Beyond raw accuracy, the research highlighted two critical advantages of the supervised framework:
- Handling Singletons: Unsupervised models typically struggle with "singleton" clusters (intents with only one example). The supervised models identified these with 71% accuracy, compared to a mere 5-30% for baselines. This capability is vital for identifying emerging or unique user needs.
- Robustness to Cluster Count ($k$): Unsupervised methods like k-means are highly sensitive to the pre-defined number of clusters. In contrast, the supervised models remained stable across different values of $k$, demonstrating that they learn the underlying "notion" of an intent rather than just mathematical groupings.
Conclusion
By treating intent discovery as a structured learning problem, this research provides a path toward faster prototyping of dialog systems. The model successfully "absorbs" specific clustering logic from human annotators, achieving up to 80% accuracy in replicating human-defined categories.
Future work will focus on integrating neural clustering models and improving "slot extraction"—the ability to distinguish between questions with the same intent but different entities (e.g., different locations or dates). Ultimately, this framework reduces the engineering man-hours required to move from raw user data to a functional dialog taxonomy.
Summary updated