Abstract
Dialogue disentanglement aims to separate intermingled messages into detached sessions. The existing research focuses on two-step architectures, in which a model first retrieves the relationships between two messages and then divides the message stream into separate clusters. Almost all existing work puts significant efforts on selecting features for message-pair classification and clustering, while ignoring the semantic coherence within each session. In this paper, we introduce the first end-to-end transition-based model for online dialogue disentanglement. Our model captures the sequential information of each session as the online algorithm proceeds on processing a dialogue. The coherence in a session is hence modeled when messages are sequentially added into their best-matching sessions. Meanwhile, the research field still lacks data for studying end-to-end dialogue disentanglement, so we construct a large-scale dataset by extracting coherent dialogues from online movie scripts. We evaluate our model on both the dataset we developed and the publicly available Ubuntu IRC dataset. The results show that our model significantly outperforms the existing algorithms. Further experiments demonstrate that our model better captures the sequential semantics and obtains more coherent disentangled sessions.
Introduction: The Challenge of Entangled Conversations
In active online group chats, such as Slack, Discord, or IRC, multiple topics often occur simultaneously, leading to "entangled" message streams. Dialogue disentanglement is the task of sorting these interleaved messages into their respective coherent conversation threads.
Most existing solutions rely on a two-step architecture: first, they predict whether two messages are related (pairwise classification), and then they apply a clustering algorithm to group them. This approach has two major flaws. First, pairwise models often ignore the broader session history; a message might appear related to several previous messages in isolation but only makes sense within a specific ongoing thread. Second, the clustering step is often inflexible, requiring hand-tuned thresholds that do not adapt well to varying dialogue dynamics.
Methodology: Transition-Based Online Modeling
We propose a Transition-Based Online Model that treats disentanglement as a sequence of state transitions rather than a static clustering problem. This allows the model to process messages one by one as they arrive, making it ideal for real-time applications.
1. Model Architecture
The architecture consists of two primary components:
- Dialogue Encoder: This uses a hierarchical LSTM structure. A message-level LSTM captures the semantics of individual messages, while a context-level LSTM captures the flow of the overall dialogue history.
- Session State Encoder (SSE): This is the core innovation. It maintains a dynamic "state" vector for every active session. When a new message arrives, the model calculates the dot product between the message vector and all current session vectors, including a dedicated "new session" vector.
For every incoming message, the model chooses between two actions:
- Build: Initialize a brand-new session.
- Update: Append the message to an existing session and update that session's state vector using an LSTM. This allows the "meaning" of a session to evolve as the conversation progresses.
2. Advanced Training Strategies
To optimize the online processing performance, we employ two specific strategies:
- Teacher-Student Learning (TSL): An "offline" teacher model, which has access to the entire dialogue history via bidirectional LSTMs, guides the "online" student model during the training phase.
- Decision Sampling (DS): To improve robustness against error propagation, the model is occasionally fed its own predicted labels during training instead of ground truth, similar to scheduled sampling.
Experimental Evaluation
We evaluated our model on two distinct benchmarks:
- Movie Dialogue Dataset: A new large-scale dataset created by extracting over 56,000 coherent sessions from movie scripts and synthetically intermingling them to simulate 2–4 overlapping threads.
- Ubuntu IRC Dataset: A standard dataset of technical support chats, featuring high complexity with up to 14 concurrent sessions per dialogue.
Key Results and Insights
The transition-based model significantly outperformed previous state-of-the-art methods across major metrics, including Adjusted Rand Index (ARI) and Normalized Mutual Information (NMI).
- Performance Gains: On the Movie Dataset, our model achieved an ARI of 25.45, nearly doubling the performance of a BERT-based two-step baseline (10.97). On the IRC Dataset, it reached an ARI of 19.14, compared to BERT's 8.15.
- Scalability: The model proved robust as the number of concurrent sessions increased, whereas traditional two-step models showed significant performance degradation as threads became more numerous.
- Contextual Superiority: The results confirm that capturing the sequential semantics of a thread is far more effective than simple pairwise similarity measurements.
Conclusion
By modeling sessions as evolving states rather than static clusters, our transition-based approach provides a more accurate and flexible solution for online dialogue disentanglement. Future work will explore integrating more sophisticated pre-trained language models directly into this transition-based framework to further enhance semantic understanding.
Summary updated