Introduction
Building effective conversational agents requires a deep understanding of dialogue structure—the "hidden script" that governs how a conversation moves from a greeting to problem diagnosis and finally to a resolution. Historically, mapping these structures has relied on supervised learning, which requires humans to label thousands of utterances with specific "dialogue acts." This process is expensive, slow, and difficult to scale across new domains. This paper introduces three novel unsupervised models that combine Hidden Markov Models (HMMs) with Topic Models (LDA) to automatically induce meaningful flowcharts from raw chat logs without manual labeling.
The Challenge of Rigid Models
Earlier unsupervised attempts, such as the Language Model Hidden Markov Model (LM-HMM), were often too rigid for real-world dialogue. These models assumed that every word in an utterance was generated directly by the current conversational state. This approach fails to account for the fact that a single concept (like a "bus route") might be discussed across many different states, or that some words are specific to the overall subject of the conversation rather than the immediate functional step.
Proposed Methodology: Decoupling Function from Content
The authors propose a hierarchy of three models that move beyond simple word-to-state mappings by introducing Topics as an intermediate layer of abstraction. This allows the model to separate the intent or step (the state) from the subject (the topic).
- TM-HMM: Instead of states emitting words directly, states emit topics, which then emit words. This allows different states to share vocabulary pools, making the model more expressive and data-efficient.
- TM-HMMS: This variant adds a "session-wide" topic. It assumes some words come from the functional state (e.g., "How can I help?"), while others come from the specific subject of that particular dialogue (e.g., "my printer is broken").
- TM-HMMSS: The most flexible version, which allows the balance between state-specific and session-wide words to shift at every single utterance.
To train these models, the authors utilized Collapsed Gibbs Sampling, an MCMC technique, to iteratively estimate the latent states and topics that best explain the observed words.
Datasets and Evaluation
The models were evaluated on two distinct, real-world datasets:
- BusTime: A corpus of spoken human-computer dialogues for a bus timetable service. Despite a 30-40% word error rate from speech recognition, its deterministic underlying structure served as a "ground truth" test.
- TechSupport: A corpus of human-to-human text chats from a live technical support service, containing slang, typos, and asynchronous turns.
Key Results and Insights
The proposed TM-HMM variants consistently achieved higher held-out log-likelihood than the baseline LM-HMM, indicating better predictive power for unseen dialogues. In a dialogue ordering task, the TM-HMM outperformed all other models, demonstrating a superior grasp of temporal flow.
Qualitatively, the models successfully reconstructed the logic of the BusTime system without human guidance. In the TechSupport data, the models were able to "disentangle" states that simpler models conflated, such as separating the "greeting" phase from the "problem resolution" phase. Furthermore, the topic-based approach proved remarkably robust to speech recognition errors in the BusTime dataset, as pooling words into topics mitigated the impact of individual misrecognized terms.
Conclusion and Future Work
By decoupling conversational function from topical content, these models provide a robust framework for unsupervised structure discovery. While successful, the authors note that MCMC inference is computationally expensive. Future research may explore Variational Bayesian inference or parallelized sampling to improve scalability for massive datasets. Additionally, while TM-HMM performed best on structured data, the more complex "S" variants showed greater promise for diffuse, human-to-human interactions, suggesting that model selection should be tailored to the specific nature of the dialogue domain.
Summary updated