Extending Neural Generative Conversational Model using External Knowledge Sources

Prasanna Parthasarathi, Joelle Pineau

Abstract

Standard generative dialogue models often produce "safe" but generic responses due to a lack of real-world context. This paper introduces the Extended Encoder-Decoder (Ext-ED), an architecture that integrates unstructured external knowledge from sources like Wikipedia and the NELL knowledge base into a Sequence-to-Sequence (Seq2Seq) model. Our results demonstrate that injecting external context produces more content-rich responses, improves perplexity, and significantly accelerates training convergence.

Introduction

Deep Neural Networks (DNNs) have significantly advanced dialogue systems, yet many "chit-chat" models remain "content poor." Trained on human-to-human dialogue corpora like Reddit, these models excel at mimicking conversational structure but often fail to incorporate factual substance. While existing solutions like Memory Networks or Neural Turing Machines offer external memory, they are frequently computationally expensive and difficult to tune. Furthermore, many knowledge-grounded systems are limited to highly structured databases. This work addresses these challenges by proposing a method to leverage unstructured external knowledge for open-ended conversation.

Methodology

The core of the proposed Extended Encoder-Decoder (Ext-ED) architecture is the treatment of external knowledge as a continuous vector that supplements the standard hidden state of the model.

Model Architecture

The Ext-ED model consists of several key components:

  1. Knowledge Extraction: Key entities are identified from the input context, and relevant information is retrieved from Wikipedia summaries or the Never-Ending Language Learner (NELL) knowledge base.
  2. Vector Representation: Retrieved text is converted into a fixed-length "external context vector" ($ec^i$) by averaging the GloVe embeddings of the constituent words.
  3. Encoder-Decoder Integration: An Encoder LSTM processes the dialogue input. A fully connected layer then learns to predict the external context vector based on the encoder's output. Finally, the Decoder LSTM receives an augmented state comprising the encoder's final state, the previous token, and the predicted external context vector.
The Ext-ED model architecture integrates an external context vector ($ec^i$) into the decoding process.

Divergence Loss ($L_3$)

To ensure the model actively utilizes the external knowledge, a specific "Divergence" loss function ($L_3$) was introduced. This loss forces the model's output distribution when knowledge is present to diverge from its distribution when knowledge is absent, preventing the model from ignoring the supplementary input.

Experimental Setup

The model was evaluated using the Reddit News dataset, which contains human conversations centered around news topics. External knowledge was sourced from Wikipedia summaries (unstructured text) and NELL (a belief-based knowledge base providing relational facts).

Results and Analysis

The Ext-ED model demonstrated superior performance over the baseline Vanilla Seq2Seq model across multiple metrics.

Performance comparison of the Ext-ED model against baselines and ablation studies.

Performance Metrics

As shown in the results table, the Ext-ED model achieved a significant reduction in Perplexity (PPL), dropping from 38.09 (baseline) to 30.26 with Wikipedia and 29.07 with NELL. BLEU-4 scores also saw a notable improvement, increasing from 0.437 to 0.53. An ablation study revealed that removing the $L_3$ loss or the external knowledge entirely caused performance to degrade sharply (PPL rising to 601.8), highlighting the critical synergy between dialogue context and external facts.

Training Efficiency and Variance

A key finding was that external knowledge acts as a "shortcut" for the model, leading to faster training convergence. By scaling the knowledge vectors using a normal distribution $\mathcal{N}(4, 1)$, the authors increased the variance of the external information, making it more distinct and easier for the model to prioritize during the learning process.

Conclusion

The Ext-ED architecture successfully incorporates external knowledge into generative dialogue models, resulting in more informative and confident predictions. While standard metrics like BLEU and Perplexity show clear improvements, future work should explore more sophisticated knowledge representations (e.g., Transformers) and evaluation metrics that better capture the factual accuracy and naturalness of the generated responses.

Summary updated

BibTeX
@inproceedings{parthasarathi2018extending,
  author = {Prasanna Parthasarathi and Joelle Pineau},
  title = {{Extending Neural Generative Conversational Model using External Knowledge Sources}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1073},
}
Figure