Abstract
In the research of end-to-end dialogue systems, using real-world knowledge to generate natural, fluent, and human-like utterances with correct answers is crucial. However, domain-specific conversational dialogue systems may be incoherent and introduce erroneous external information to answer questions due to the out-of-vocabulary issue or the wrong knowledge from the parameters of the neural network. In this work, we propose PK-Chat, a Pointer network guided Knowledge-driven generative dialogue model, incorporating a unified pretrained language model and a pointer network over knowledge graphs. The words generated by PK-Chat in the dialogue are derived from the prediction of word lists and the direct prediction of the external knowledge graph knowledge. Moreover, based on the PK-Chat, a dialogue system is built for academic scenarios in the case of geosciences. Finally, an academic dialogue benchmark is constructed to evaluate the quality of dialogue systems in academic scenarios and the source code is available online.
Introduction
While Large Language Models (LLMs) are excellent at generating human-like conversation, they often stumble when the conversation turns to highly specialized domains. They face two primary hurdles: the Out-of-Vocabulary (OOV) Issue, where technical terms (e.g., specific mineral names like "carbonatite") may not exist in the model’s fixed vocabulary, and Knowledge Hallucination, where models lack the "ground truth" required for academic accuracy.
PK-Chat is a novel generative dialogue model designed to bridge the gap between general "chitchat" and domain-specific expertise. By allowing the model to "copy" precise entities directly from a Geoscience Knowledge Graph, it significantly reduces hallucinations and improves accuracy in technical conversations.
Methods
The PK-Chat framework integrates a unified pretrained language model with a pointer network over knowledge graphs. The system architecture is built upon three core pillars:
- Unified Transformer Backbone: It uses UniLM-PLATO as the base generative engine, fine-tuned on social media corpora for natural flow.
- The Pointer Network: This mechanism allows the model to decide whether to generate a word from its internal vocabulary or "point" to and copy a specific entity from a retrieved knowledge segment. This acts as a "safety valve" for technical terms that may be rare or OOV.
- Multi-Task Learning: The model is trained using a composite loss function including Negative Log-Likelihood (NLL), Bag-of-Words (BoW) loss for global intent, and a Topic Switch Classification module to monitor shifts in user queries.
The system also includes a pipeline for keyword extraction (using TF-IDF, TextRank, and BiLSTM-CRF) to query a Neo4j database containing the Geoscience Academic Knowledge Graph (GAKG).
Experimental Setup
The researchers utilized several datasets to train and validate PK-Chat:
- GA-Dialogue: A new academic dialogue dataset sourced from the GAKG, featuring 1,000 scenarios and over 8,000 dialogue rounds, verified by geographers.
- Persona-Chat & DailyDialog: General-purpose benchmarks for chitchat and background-based conversation.
- Baidu DuConv & DuRecDial: External datasets used to augment training and unify conversation formats.
Results
PK-Chat demonstrated superior performance across both automatic and human metrics, particularly in technical contexts.
On the GA-Dialogue (Part 1) benchmark, PK-Chat achieved a BLEU-1 score of 0.636, significantly outperforming the standard PLATO model (0.415). In blind tests by geoscientists, PK-Chat scored higher in Consistency (2.40/3.0) and Informativeness (2.43/3.0). The model also maintained high diversity, as evidenced by its "Distinct" scores, ensuring content-rich responses rather than repetitive phrases.
Conclusion
PK-Chat successfully mitigates common LLM failures in technical domains by grounding generation in structured knowledge. While the model excels in accuracy, future work will focus on expanding the scale of academic datasets beyond geosciences and improving the sensitivity of the keyword extraction module, which remains a critical dependency for successful knowledge retrieval.
Summary updated