Structural Characterization for Dialogue Disentanglement

Xinbei Ma, Zhuosheng Zhang, Hai Zhao

TL;DR

Multi-party chats are often a "tangled" mess of overlapping conversations. This paper introduces a novel model that untangles these threads by explicitly modeling two structural features: who is speaking (speaker property) and who they are talking to (reference dependency). By combining BERT with graph-based modeling and a specialized "Syn-LSTM," the authors achieved a new state-of-the-art on the Ubuntu IRC benchmark.

What Problem Does This Paper Address?

In a group chat (like Slack, Discord, or IRC), multiple conversations often happen simultaneously. This is known as a "tangled" dialogue. For a machine—or even a human joining late—understanding the history is difficult because the linear sequence of messages doesn't match the logical flow of topics.

The task of "Dialogue Disentanglement" involves partitioning these messages into separate, coherent threads. While previous models focused heavily on the text content of individual messages, they often ignored the underlying social structure of the conversation. The authors argue that the behavior of speakers (who they usually interact with and who they mention) is the key to solving this puzzle.

Methods

The authors propose a three-module architecture designed to move beyond simple text encoding:

  1. Encoder (Pairwise BERT): The model starts by looking at pairs of utterances. It uses BERT to create a contextualized representation of a message and a potential "parent" message it might be replying to.
  2. Structural Modeling: This is the core innovation. It enhances the BERT representations using two techniques:
  3. Speaker Property Modeling: Uses a masked Multi-Head Self-Attention (MHSA) mechanism to emphasize correlations between messages sent by the same person.
  4. Reference Dependency Modeling: Uses a Relational Graph Convolutional Network (r-GCN) to model explicit mentions (e.g., "UserA: @UserB, thanks!"). This treats the dialogue as a graph where edges represent these reference links.
  5. Context-aware Prediction (Syn-LSTM): Finally, the model uses a Synchronous LSTM (Syn-LSTM). Unlike a standard LSTM, a Syn-LSTM has an extra input gate that allows it to fuse the raw text features from BERT with the structural features from the graph module. This ensures the final "reply-to" prediction is informed by both what was said and the social context of the conversation.

Datasets

The model was primarily evaluated on the Ubuntu IRC dataset, the largest and most influential benchmark for dialogue disentanglement, containing thousands of manually annotated "reply-to" links from technical support channels.

To prove the model's versatility, the authors also tested it on downstream applications using:

  • DSTC-7: For response selection tasks.
  • Molweni: A dialogue-based Machine Reading Comprehension (MRC) dataset.
  • FriendsQA: An open-domain QA dataset based on transcripts from the TV show Friends.

Key Insights and Ideas

  • Structure is as important as Semantics: The "aha moment" here is that in messy group chats, the identity of the speaker and their explicit references are often stronger signals for thread-linking than the actual words used.
  • Robustness over Long Spans: One of the most significant findings was that this structural approach is much better at finding "parent" messages that occurred a long time ago (20+ messages back). Standard BERT models tend to lose track over long distances, but the graph-based structural modeling keeps those links alive.
  • Disentanglement as a Pre-processing Step: The paper demonstrates that "untangling" a dialogue first significantly improves the performance of other tasks, like answering questions about the chat or picking the best next response.

Key Results

The proposed model set a new State-of-the-Art (SOTA) on the Ubuntu IRC benchmark across several metrics:

  • Variation of Information (VI): Achieved 94.6, a significant jump over the previous best of 94.2.
  • Adjusted Rand Index (ARI): Reached 76.8, outperforming the BERT baseline (60.8) by a massive margin.
  • Clustering F1: Improved to 51.7, compared to the baseline's 37.2.

Ablation studies confirmed that removing either the speaker modeling or the reference modeling led to a drop in performance, proving that both structural elements are "non-trivial" for success.

Limitations and Future Work

Despite the SOTA results, the authors note that 56.7% of the "bad cases" (where the baseline failed) remained unsolved by their model. This suggests that while speaker and reference data help, there are even deeper "inner relationships"—perhaps related to intent or complex logic—that current models still can't capture.

Additionally, the gains on the FriendsQA dataset were less impressive than on the technical IRC data. This indicates that the model's current reliance on explicit references might be less effective in casual, spoken-style dialogues where people don't use "@mentions" as frequently as they do in technical chat rooms. Future work may need to focus on "implicit" references where the target of a message is implied rather than stated.

Summary updated

BibTeX
@inproceedings{ma2022structural,
  author = {Xinbei Ma and Zhuosheng Zhang and Hai Zhao},
  title = {{Structural Characterization for Dialogue Disentanglement}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.23},
}
Figure