Introduction
In modern digital communication—such as IRC, Slack, or Twitch—multiple conversations often occur simultaneously within a single channel. This "interleaving" makes it difficult for humans to follow specific discussions and for machines to index or search for information. The challenge of conversation disentanglement is compounded by the brevity of chat messages, the lack of explicit "reply-to" features, and the fact that individual users often participate in multiple threads at once.
This paper introduces a two-stage framework designed to disentangle these complex chat logs. By combining a Siamese Hierarchical Convolutional Neural Network (SHCNN) for similarity estimation with a novel ranking algorithm called CISIR (Conversation Identification by Similarity Ranking), the authors achieve state-of-the-art performance in grouping messages into coherent threads.
Methods
The proposed approach follows a two-stage pipeline designed for both accuracy and computational efficiency.
1. Similarity Estimation (SHCNN)
To avoid the $O(n^2)$ complexity of comparing every message pair, the authors apply a time-window constraint. Empirical analysis shows that messages within the same thread are highly likely to be posted within a specific timeframe (e.g., 1 hour). By limiting comparisons to this window, the complexity is reduced to near-linear $O(kn)$, making the model feasible for massive real-time chat logs.
At the heart of this stage is the Siamese Hierarchical CNN. Chat messages are often too short for standard document embeddings but too nuanced for simple n-grams. The SHCNN addresses this by using a hierarchical structure:
- Low-level representation: Captures local word patterns and n-grams.
- High-level representation: Captures broader semantic meaning across the entire message.
Two identical HCNNs process a pair of messages, and their outputs are compared using element-wise absolute differences. This is combined with contextual features—such as speaker identity and temporal distance—to produce a final similarity score.
2. Conversation Identification (CISIR)
Once similarity scores are calculated, the messages must be grouped. Standard graph-based clustering often fails because a single "false positive" link can merge two unrelated conversations.
To solve this, the authors developed CISIR. Instead of using a flat similarity threshold, CISIR ranks the most similar neighbors for each message. By only connecting a message to its top-r most confident matches, the algorithm builds a robust graph where conversations emerge as connected components. This ranking-based approach effectively filters out low-confidence noise that would otherwise bridge unrelated threads.
Datasets
The researchers evaluated their model on four datasets:
- Reddit (Gadgets, iPhone, and Politics): These datasets consist of real user comments that were manually interleaved to create a controlled disentanglement challenge.
- IRC Dataset: A manually annotated dataset of real-world interleaved chat from an Ubuntu technical support channel. This is considered the "gold standard" due to its natural complexity and lack of synthetic structure.
Key Results and Insights
The SHCNN + CISIR approach significantly outperformed all statistical and deep learning baselines across all datasets.
- High Precision: On the IRC dataset, SHCNN achieved a Precision@1 of 0.9785, vastly outperforming the previous state-of-the-art (DeepQA at 0.7811).
- Clustering Quality: Using the Adjusted Rand Index (ARI), the model scored 0.9543 on IRC, while the best baseline (GTM) struggled at 0.0001. This indicates that the predicted clusters almost perfectly match the ground truth.
- Generalization: The model performed exceptionally well on the IRC dataset despite its smaller size compared to the Reddit sets, suggesting the hierarchical architecture generalizes well even with limited training data.
Limitations and Future Work
While the current model identifies which messages belong together, it does not yet infer the internal structure of a thread (e.g., specific reply-to relationships). Additionally, while the 1-hour window is effective for most chats, forum-style conversations with longer "lurk" times might be split into multiple threads. Future iterations could incorporate more complex metadata, such as user roles or channel-specific jargon, to further refine the disentanglement process.
Summary updated