Unsupervised Conversation Disentanglement through Co-Training

Hui Liu, Zhan Shi, Xiaodan Zhu

Abstract

Conversation disentanglement aims to separate intermingled messages into detached sessions, which is a fundamental task in understanding multi-party conversations. Existing work on conversation disentanglement relies heavily upon human-annotated datasets, which are expensive to obtain in practice. In this work, we explore to train a conversation disentanglement model without referencing any human annotations. Our method is built upon a deep co-training algorithm, which consists of two neural networks: a message-pair classifier and a session classifier. The former is responsible for retrieving local relations between two messages while the latter categorizes a message to a session by capturing context-aware information. Both networks are initialized respectively with pseudo data built from an unannotated corpus. During the deep co-training process, we use the session classifier as a reinforcement learning component to learn a session assigning policy by maximizing the local rewards given by the message-pair classifier. For the message-pair classifier, we enrich its training data by retrieving message pairs with high confidence from the disentangled sessions predicted by the session classifier. Experimental results on the large Movie Dialogue Dataset demonstrate that our proposed approach achieves competitive performance compared to the previous supervised methods. Further experiments show that the predicted disentangled conversations can promote the performance on the downstream task of multi-party response selection.

Introduction

In multi-party chat environments like Slack, Discord, or WhatsApp, multiple topics are often discussed simultaneously in a single channel. "Conversation disentanglement" is the task of automatically grouping these intermingled messages into separate, coherent sessions. While humans do this naturally, it is a significant challenge for NLP systems. Existing solutions rely heavily on supervised learning, which requires massive datasets where humans have manually linked messages to specific threads. These labels are expensive and time-consuming to produce. This paper, presented at EMNLP 2021, introduces the first deep neural approach for unsupervised conversation disentanglement, bridging this gap by creating a model that learns the structure of conversations entirely from unannotated text.

Methodology

The core of the research is a Deep Co-Training algorithm involving two distinct neural networks that provide complementary views of the data:

  1. Message-Pair Classifier ($F_m$): A "local" model based on BERT. It looks at two messages and predicts the probability that they belong to the same session based on semantic similarity.
  2. Session Classifier ($F_t$): A "global" model using a BiLSTM with a self-attention mechanism. It treats disentanglement as a sequence labeling task, deciding whether a new message should be appended to an existing session or start a new one.
The deep co-training framework illustrating the interaction between the local message-pair classifier and the global session classifier.

The Co-Training Loop

Since there are no labels, the models are initialized using "pseudo-data" based on the assumption that a single speaker usually participates in only one session at a time. Additionally, DialoGPT is used to generate synthetic responses to create high-quality positive training pairs.

During training, the session classifier acts as a reinforcement learning component, learning a session assignment policy by maximizing local rewards provided by the message-pair classifier. Conversely, the message-pair classifier is refined by extracting high-confidence message pairs from the sessions predicted by the session classifier. This iterative process allows each model to act as a teacher for the other.

Experimental Results

The primary evaluation was conducted on the Movie Dialogue Dataset, containing over 800,000 messages. The unsupervised model achieved results that were surprisingly close to supervised benchmarks.

Performance comparison of the proposed unsupervised method against various baselines and supervised models on the Movie Dialogue Dataset.

As shown in the results table, the proposed unsupervised method (Session Classifier + $D_t$ + CT) reached a Shen-F score of 60.44, trailing the supervised state-of-the-art by a relatively small margin. The co-training process also significantly improved the Normalized Mutual Information (NMI) from an initial 24.96 to 29.71.

Furthermore, the research confirms that disentanglement significantly boosts performance on downstream tasks. In a multi-party response selection task, using the model's disentangled threads improved the Hits@1 score from 12.98 (no disentanglement) to 14.50, demonstrating the practical utility of the approach.

Conclusion

This work demonstrates that local pairwise relations and global context are mutually reinforcing in the context of conversation disentanglement. By using reinforcement learning to bridge these two perspectives, the model overcomes the lack of ground-truth labels. While the initialization phase relies on certain speaker-session heuristics, the framework provides a robust foundation for unsupervised learning in complex multi-party dialogue environments.

Summary updated

BibTeX
@misc{liu2021unsupervised,
  author = {Hui Liu and Zhan Shi and Xiaodan Zhu},
  title = {{Unsupervised Conversation Disentanglement through Co-Training}},
  year = {2021},
  eprint = {2109.03199},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.03199},
}
Figure