Abstract
Despite advancements in on-topic dialogue systems, effectively managing topic shifts within dialogues remains a persistent challenge, largely attributed to the limited availability of training datasets. To address this issue, we propose Multi-Passage to Dialogue (MP2D), a data generation framework that automatically creates conversational question-answering datasets with natural topic transitions. By leveraging the relationships between entities in a knowledge graph, MP2D maps the flow of topics within a dialogue, effectively mirroring the dynamics of human conversation. It retrieves relevant passages corresponding to the topics and transforms them into dialogues through the passage-to-dialogue method. Through quantitative and qualitative experiments, we demonstrate MP2D’s efficacy in generating dialogue with natural topic shifts. Furthermore, this study introduces a novel benchmark for topic shift dialogues, TS-WikiDialog. Utilizing the dataset, we demonstrate that even Large Language Models (LLMs) struggle to handle topic shifts in dialogue effectively, and we showcase the performance improvements of models trained on datasets generated by MP2D across diverse topic shift dialogue tasks.
Introduction: The Challenge of Fluid Conversation
Human conversation is naturally fluid—we might start talking about "Soccer," move to the "World Cup," and end up discussing "Lionel Messi." While modern dialogue systems excel at answering questions within a single topic, they often stumble when a conversation moves from one subject to another.
The primary bottleneck in improving these systems is data scarcity. Existing datasets with labeled topic shifts are small because they require laborious and expensive human annotation. Without large-scale training data, models cannot learn the subtle "connective tissue" that makes a transition feel natural rather than abrupt or confusing.
The MP2D Framework
The authors introduce MP2D, which automates the creation of Conversational Question-Answering (ConvQA) data using a three-step pipeline designed to mirror human associative thinking.
1. Knowledge Graph Pathfinding
The framework uses the KELM dataset (a knowledge graph-to-text corpus) to identify logical paths between entities. For example, it might find a path: Leonardo da Vinci $\rightarrow$ Mona Lisa $\rightarrow$ Louvre. Using a Knowledge Graph ensures that topic shifts aren't random; they follow established relationships.
2. Multi-Passage Retrieval
For every entity in the path, the system retrieves relevant passages from Wikipedia. These passages, combined with the "relation sentences" from the KG that link the entities, form a structured multi-passage document that serves as the factual basis for the dialogue.
3. Passage-to-Dialogue (P2D) Generation
The system segments these passages into individual sentences to serve as "answers." An LLM (GPT-3.5) then acts as a question generator. To ensure the transition is smooth, the authors provide the LLM with a specific "topic shift instruction" during transition turns (e.g., "Note that the conversation topic has shifted to [next_topic] from [current_topic]"). This prevents the model from asking questions about the old topic when the answer context has already moved on.
Key Results and Insights
The researchers introduced TS-WikiDialog, a benchmark consisting of 1,000 multi-turn dialogues with an average of 2.13 topics per dialogue. Key findings include:
- High Human Approval: Human evaluators rated 95.67% of the MP2D-generated dialogues as having natural topic-shift timing and 84.33% as having excellent overall quality.
- Superior Segmentation: A T5-base model (220M parameters) trained on MP2D data achieved an Exact Match (EM) of 0.225 in topic segmentation. In contrast, zero-shot GPT-4 achieved an EM of 0.000, highlighting that even state-of-the-art LLMs struggle with structural topic boundaries without specialized training.
- Enhanced Response Generation: Integrating an MP2D-trained topic shift detection module improved the BLEU-4 scores of LLM responses during transition turns, proving that explicit awareness of a topic change leads to better answers.
Conclusion
MP2D demonstrates that Knowledge Graphs can serve as effective roadmaps for generating naturalistic synthetic dialogue. By training on this data, smaller models can outperform massive LLMs in specialized tasks like topic segmentation and detection, paving the way for more conversational and context-aware AI systems.
Summary updated