Introduction
In the field of conversational AI, equipping dialogue models (DMs) with factual knowledge typically follows two paradigms: Retrieval-Augmented Generation (RAG) or Retrieval-Free knowledge injection. While RAG systems are effective, they suffer from high inference latency and require extensive hand-annotated data. Conversely, retrieval-free models, which store knowledge within their parameters, often struggle with "stiff" conversations and limited topic transitions.
Researchers from the Harbin Institute of Technology and Huawei Noah’s Ark Lab address these challenges with KiDG (Knowledge-intensive Dialogues Generation). This framework automatically transforms static knowledge documents into high-quality, multi-turn simulated dialogues, allowing models to "remember" facts without external lookups during inference.
Methodology: The KiDG Framework
The KiDG framework employs a three-stage process to generate synthetic training data that mimics natural human conversation flow.
- Aspect Graph (AG) Construction: For a given document, sentences are treated as nodes. Semantic similarity (calculated via BERTScore) determines the edges, representing how different aspects of a topic relate.
- Aspect-based Topic Graph (ATG) Construction: To facilitate topic transitions, KiDG links disparate documents using web hyperlinks, knowledge graph relations, and semantic word vectors.
- Multi-Document Traversal (MDT): A weighted random walk algorithm traverses the ATG, simulating a human-like progression from deep-diving into one topic to transitioning to a related one.
- Dialogue Inpainting: The resulting knowledge sequence is processed by a BART-based inpainting model to create a natural back-and-forth dialogue.
The KiDial Dataset
The framework was used to produce KiDial, a large-scale simulated dialogue dataset. It was released in three scales: Small (36K dialogues), Base (751K), and Large (3.75M). The Base and Large versions leverage a massive Chinese encyclopedia, demonstrating the framework's scalability and its ability to handle diverse domains.
Experimental Results
The researchers evaluated models enhanced with KiDial on the KdConv benchmark. The results demonstrate that training on structured, simulated transitions significantly improves model performance.
- State-of-the-Art Retrieval-Free Performance: Models like BART and CDialGPT trained on KiDial-Small outperformed existing retrieval-free baselines.
- Competitive with Retrieval-Augmented Models: Remarkably, KiDial-enhanced models achieved performance metrics comparable to complex retrieval-augmented systems (e.g., BART+DPR) while maintaining the low latency of a retrieval-free architecture.
- Zero-Shot Capabilities: KiDial-trained models showed superior performance in zero-shot settings, indicating a robust internalisation of knowledge rather than simple pattern matching.
Conclusion
The KiDG framework represents a significant step toward efficient, knowledge-intensive dialogue models. By focusing on the logical flow of information and topic transitions during the data generation phase, KiDG allows models to achieve high-fidelity factual recall without the overhead of retrieval systems. Future work will focus on narrowing the stylistic gap between synthetic and natural human speech.
Reference: Wang, R., et al. (2023). Retrieval-free Knowledge Injection through Multi-Document Traversal for Dialogue Models. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL 2023).
Summary updated