Abstract
Multi-party conversations (MPCs) present unique challenges for dialogue systems due to overlapping threads and dynamic topic shifts. We introduce Topic-BERT, a framework that treats response selection as a dynamic topic-tracking problem. By integrating topic-aware pretraining with a multi-task learning architecture that jointly optimizes for response selection, topic prediction, and thread disentanglement, Topic-BERT achieves state-of-the-art performance on the DSTC-8 Ubuntu IRC benchmark. Our results demonstrate that explicitly modeling conversation structure and topic consistency significantly improves the accuracy of retrieval-based dialogue systems in complex, multi-user environments.
Introduction
Traditional dialogue systems are primarily designed for dyadic, single-topic interactions. However, real-world group chats—such as those on Slack, Discord, or technical IRC channels—are far more complex. In these Multi-Party Conversations (MPCs), several topics often run in parallel, a phenomenon known as "entanglement."
For a retrieval-based system to select the most appropriate response from a candidate pool, it must navigate this entanglement to identify which specific thread a candidate belongs to and whether it maintains topic consistency. Existing models often struggle with MPCs because they ignore the transitions and prolongations of topics across multiple participants. Topic-BERT addresses this by leveraging topic-aware representations to improve response selection accuracy.
Methodology
The Topic-BERT framework utilizes a two-stage approach: specialized self-supervised pretraining followed by multi-task fine-tuning.
1. Topic-BERT Pretraining
In addition to standard Masked Language Modeling (MLM), we introduce a novel objective called Same Topic Prediction (STP). The model is fed pairs of utterances and must predict whether they belong to the same conversation thread. This task teaches the model to recognize semantic relevance and topic boundaries at a fundamental level before fine-tuning on specific downstream tasks.
2. Multi-Task Learning Framework
As illustrated in Figure 1, the model is trained on three tasks simultaneously to capture the multifaceted nature of MPCs:
- Response Selection (Main Task): Ranking the best candidate response for a given context.
- Topic Prediction (Auxiliary): Deciding if a context utterance and a candidate response share the same topic.
- Topic Disentanglement (Auxiliary): Predicting "reply-to" links between utterances to map out the underlying structure of the conversation.
3. Topic Attention Layer
To make embeddings more "topic-aware," the model employs a Topic Attention Layer where the [CLS] token acts as a query to attend over all other tokens in an utterance pair. This allows the model to focus on specific keywords (e.g., technical terms like "RAID" or "codecs") that signal a particular topic thread.
Experimental Setup
We evaluate Topic-BERT primarily on the DSTC-8 Ubuntu IRC dataset, derived from technical support logs. The evaluation focuses on:
- Task 2: Long chat logs with multiple ongoing topics, serving as the primary test for response selection in entangled contexts.
- Task 4: Chat logs with manual "reply-to" link annotations used to evaluate disentanglement.
Results and Discussion
Topic-BERT achieves a new state-of-the-art (SOTA) on the DSTC-8 Task 2 benchmark. As shown in Figure 4, the model reaches a Recall@1 of 0.726, significantly outperforming the previous SOTA, Adapt-BERT (0.706).
Key Insights
- The Power of Multi-Tasking: Ablation studies show that the auxiliary tasks are vital. Training the model to disentangle threads (Task 4) directly improves its ability to pick the correct response (Task 2), as the auxiliary tasks act as regularizers that force the model to learn the underlying conversation structure.
- Superiority over Vanilla BERT: A standard BERT-base model only manages a Recall@1 of 0.287 on the same task. This highlights the necessity of topic-specific pretraining and structural awareness in handling multi-party dynamics.
- Efficiency and Transferability: By encoding pairs and aggregating them via self-attention, Topic-BERT remains computationally efficient while capturing long-range dependencies. Furthermore, the model outperformed baselines on the older Ubuntu Corpus v1, suggesting that its topic-aware features are robust across different datasets.
Conclusion
Topic-BERT demonstrates that treating response selection as a dynamic topic-tracking problem is highly effective for multi-party conversations. By learning to disentangle overlapping threads, the model provides a more robust solution for retrieval-based bots in complex environments. Future research will explore applying these topic representations to other tasks, such as the automated summarization of entangled chat histories.
Summary updated