Commonsense Knowledge Aware Conversation Generation with Graph Attention

Hao Zhou, Tom Young, Minlie Huang, Haizhou Zhao, Jingfang Xu, Xiaoyan ZhuIJCAI 2018

Introduction

Open-domain conversational agents, or chatbots, frequently suffer from the "generic response" problem. When faced with a wide variety of user inputs, these models often default to bland, safe phrases like "I don't know" or "That's cool." This occurs because standard neural models learn purely from linguistic patterns in dialogue data without an underlying "world model" or access to external facts.

While previous attempts to integrate external knowledge have used unstructured text or small, domain-specific datasets, they often treat knowledge as isolated, independent facts. This paper introduces the Commonsense Conversational Model (CCM), a framework designed to leverage large-scale, structured commonsense knowledge to help models understand context and generate more informative, non-obvious responses.

Leveraging Structured Commonsense

Conceptual overview of how CCM uses a knowledge graph to bridge the gap between a user post and an intelligent response. Commonsense Knowledge Aware Conversation Generation with Graph Attention, page 2

Conceptual overview of how CCM uses a knowledge graph to bridge the gap between a user post and an intelligent response.

The core insight of the CCM is that an entity's meaning is best defined by its neighbors in a graph. By treating knowledge as a connected network rather than a list of triples, the model captures richer semantics. For example, if a user mentions "sunlight," the model can proactively retrieve related concepts like "uv rays" or "skin" to formulate a response that demonstrates a deeper understanding of the topic.

Architecture and Methodology

The CCM architecture featuring Static and Dynamic Graph Attention mechanisms integrated with an encoder-decoder framework. Commonsense Knowledge Aware Conversation Generation with Graph Attention, page 3

The CCM architecture featuring Static and Dynamic Graph Attention mechanisms integrated with an encoder-decoder framework.

The CCM is built on a standard GRU-based encoder-decoder architecture, enhanced by two novel Graph Attention mechanisms:

  1. Knowledge Interpreter (Static Graph Attention): When a user submits a post, the model identifies key entities and retrieves relevant sub-graphs from ConceptNet. The Static Graph Attention mechanism encodes these graphs into vectors, augmenting the model's semantic representation with background context.
  2. Knowledge Aware Generator (Dynamic Graph Attention): During response generation, the model uses a hierarchical attention process. It first determines which retrieved knowledge graph is most relevant to the current word being generated, then selects a specific triple within that graph to inform the output.
  3. Hybrid Generation: The decoder employs a "soft" switch (a sigmoid-based gate) to decide whether to generate a common word from the standard vocabulary or an entity word derived from the retrieved commonsense graphs.

To bridge the gap between structured knowledge and natural language, the model represents entities and relations using TransE embeddings, mapped into the model's latent space via a Multi-Layer Perceptron (MLP).

Experimental Setup and Results

The authors utilized ConceptNet as the primary knowledge base, filtering it to approximately 120,000 triples. The model was trained on a filtered Reddit Dataset of 3.3 million dialogue pairs where the post and response were connected by at least one commonsense triple.

Key Findings

  • Automatic Metrics: CCM achieved the lowest perplexity across all test categories (High, Medium, Low, and Out-of-Vocabulary frequency). It also demonstrated a significantly higher Entity Score, indicating successful integration of real-world concepts.
  • Human Evaluation: In manual trials, CCM's responses were preferred roughly 60% of the time over baselines like Seq2Seq and MemNet, excelling in both appropriateness and informativeness.
  • The OOV Advantage: The performance gap was most pronounced on Out-of-Vocabulary (OOV) concepts. While standard models defaulted to generic replies when encountering unknown words, CCM used its knowledge graphs to find related, known concepts, maintaining coherence.

Limitations and Future Work

Currently, the model simplifies its input by ignoring multi-word entities (e.g., "ice cream") and focuses on single-turn dialogues. Future research may involve applying these graph attention mechanisms to multi-turn conversations, requiring the model to track evolving commonsense context over time. Additionally, moving beyond simple keyword matching for knowledge retrieval could improve the model's handling of metaphorical or implicit language.

Summary updated

BibTeX
@inproceedings{zhou2018commonsense,
  author = {Hao Zhou and Tom Young and Minlie Huang and Haizhou Zhao and Jingfang Xu and Xiaoyan Zhu},
  title = {{Commonsense Knowledge Aware Conversation Generation with Graph Attention}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/643},
}
Figure