Meta-Path Augmented Response Generation

Yanran Li, Wenjie Li

Introduction

Modern conversational agents have made significant strides in "chit-chat" but often falter when integrating external knowledge. A primary challenge is maintaining "conversation flow"—the logical progression of topics and entities. For instance, a sudden shift from an actor to an unrelated movie title can break coherence. Existing models often treat knowledge as a flat collection of facts, failing to capture the semantic structure of a dialogue.

To address this, we present MOCHA (Meta-path augmented KnOwledge-grounded CHAtbot). MOCHA leverages "meta-paths"—predefined sequences of entity types—to ensure that mentioned entities follow a logical semantic trajectory. By aligning dialogue context with these structured relationships, MOCHA generates more coherent and informative responses than standard sequence-to-sequence models.

Methodology

The MOCHA architecture consists of three primary components designed to integrate structural knowledge into the generation process:

  1. Entity Collector: This module identifies candidate entities from a structured Knowledge Base (KB) relevant to the current dialogue. These entities are represented using TransE embeddings to preserve their relational properties.
  2. Context Encoder: A bi-directional Gated Recurrent Unit (GRU) is employed to compress the dialogue history into a dense context vector.
  3. Entity-aware Decoder: The core innovation of MOCHA is its decoding mechanism, which utilizes a pointer gate to choose between generating a common vocabulary word or an entity from the KB.
MOCHA Entity-aware Decoder architecture

When an entity is selected, the model performs "Entity Reasoning." It compares the current context against 10 popular meta-paths (e.g., actor → film → film). These paths are embedded via meta-path2vec. The model calculates attention weights to determine which meta-path best aligns with the conversation flow and selects a candidate entity that matches the terminal type of the most relevant path.

Experimental Setup

The model was evaluated using a newly curated Movie Conversation Corpus, containing approximately 9,000 film-centric dialogues. This dataset is linked to a Movie Knowledge Base (KB) containing structured data on actors, directors, genres, and other related entities.

Results and Discussion

MOCHA was benchmarked against several baselines: standard attention-based Seq2Seq (ATTN), hierarchical models (HRED), and knowledge-grounded models (FACT, GENDS).

Performance comparison of MOCHA against baseline models

As shown in the results table, MOCHA significantly outperforms existing methods across all key metrics. It achieved a BLEU-3 score of 0.82, a substantial improvement over the next best model, GENDS (0.68). Furthermore, MOCHA demonstrated superior entity accuracy, with a Precision of 0.48 and Recall of 0.51. The higher Dist-1 score (0.19) indicates that the model generates more diverse and interesting responses, avoiding the repetitive "safe" outputs common in simpler models.

These results highlight that treating conversation as a traversal through a knowledge graph is more effective than using unstructured text facts. By constraining entity selection through meta-paths, MOCHA reduces "hallucinations" and maintains topical coherence.

Limitations and Future Work

While effective, MOCHA currently relies on a fixed set of 10 manually defined meta-paths of length 2. This may limit scalability in broader domains with more complex semantic relationships. Additionally, the model's performance is intrinsically tied to the coverage of the underlying KB. Future research will explore the automatic discovery of meta-paths and the use of more complex hierarchical encoders to handle longer reasoning chains.

Summary updated

BibTeX
@inproceedings{li2019meta,
  author = {Yanran Li and Wenjie Li},
  title = {{Meta-Path Augmented Response Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33019971},
}
Figure