Abstract
Modern generative chatbots often struggle with maintaining a natural conversational flow, frequently producing dull responses or making abrupt topic transitions. This paper presents a novel approach to bridge the gap between static world knowledge and dynamic dialogue by augmenting the ConceptNet knowledge graph with relations extracted from conversation corpora. We introduce the Edge-Transformer, a specialized architecture designed to process these enhanced graphs efficiently. Our model achieves state-of-the-art results on the Reddit dataset, demonstrating significant improvements in both automatic metrics and human evaluations of fluency and appropriateness.
Introduction
While large-scale language models have significantly improved the fluency of generative chatbots, they often fail to capture the nuances of human topic transitions. A common issue is the "dull response" dilemma, where models either remain stagnant on a single topic or jump between unrelated concepts in an unnatural way. Previous research has attempted to use external Commonsense Knowledge Graphs (CKGs) like ConceptNet to guide these transitions. However, a fundamental mismatch exists: ConceptNet captures "world knowledge" (e.g., a cake is a food), whereas natural dialogue relies on "conversational knowledge" (e.g., transitioning from offline mode to internet connectivity).
As shown in Figure 1, the relations found in standard knowledge graphs do not always align with the flow of human conversation. To address this, we propose a method to enhance ConceptNet with dialogue-driven relations and a new transformer-based architecture to leverage this information.
Methodology
Knowledge Graph Enhancement
The core of our approach involves constructing an "enhanced graph" ($G_e$) that merges traditional world knowledge with conversational patterns extracted from the Reddit conversation corpus.
- Node Expansion: We identify frequent nouns within the dialogue corpus that are absent from ConceptNet, ensuring the graph covers contemporary conversational topics.
- Edge Extraction: Using the GIZA++ alignment tool—traditionally employed in machine translation—we identify concepts that frequently co-occur or follow each other in dialogue. These are added as a new edge type, "DialogFlowTo," representing natural transitions in human speech.
The Edge-Transformer Architecture
To process the resulting complex graph, we developed the Edge-Transformer. Traditional Graph Neural Networks (GNNs) often struggle with computational efficiency and the integration of diverse edge types.
The architecture, illustrated in Figure 2, incorporates several key innovations:
- Directed Attention Masking: Unlike standard Transformers, our model uses an attention mask to ensure nodes only attend to their neighbors within the directed graph structure.
- Edge-Type Integration: Edge information is directly embedded into the attention mechanism, allowing the model to distinguish between different types of relationships (e.g., "is-a" vs. "DialogFlowTo").
- Post Node Grounding: The input user post is encoded into a special "post node" ($X'$) that connects to all nodes in the retrieved local subgraph. This ensures the graph representation is contextually grounded in the current conversation.
Experimental Results
We evaluated our model on the Reddit Conversation Dataset, which contains over 3.3 million training pairs. The base ConceptNet graph was expanded from approximately 120,000 edges to over 218,000 edges in the enhanced version.
Performance Metrics
Our model significantly outperformed strong baselines, including ConceptFlow, GPT-2, and DialoGPT. Notably, it nearly doubled the Bleu-3 and Bleu-4 scores compared to the previous state-of-the-art knowledge-grounded model, ConceptFlow.
Human Evaluation
In blind human evaluations, annotators rated our model higher than ConceptFlow in both Fluency and Appropriateness. This suggests that the inclusion of conversational edges leads to more natural and contextually relevant responses.
Efficiency
The Edge-Transformer proved to be more efficient than GNN-based alternatives. Compared to GRAFT-Net, our model used fewer parameters (34.6M vs 35.3M) and reduced training time per epoch from 2.5 hours to 1.5 hours.
Conclusion and Future Work
By bridging the gap between static knowledge and conversational flow, our model generates more human-like responses. The combination of dialogue-enhanced graphs and the Edge-Transformer architecture provides a robust framework for knowledge-grounded dialogue systems.
Future work will focus on reducing noise in the edge extraction process and improving the scalability of subgraph retrieval for multi-turn conversations. Additionally, we aim to explore how these conversational transitions generalize across specialized domains such as medical or legal advice.
Summary updated