Skip to main content
QUICK REVIEW

[Paper Review] A Knowledge-Grounded Dialog System Based on Pre-Trained Language Models

Weijie Zhang, Jiaoxuan Chen|arXiv (Cornell University)|Jun 28, 2021
Topic ModelingComputer Science17 references4 citations
TL;DR

This paper presents a knowledge-grounded dialog system for task-oriented conversations using fine-tuned T5 and other pre-trained language models, enhanced with entity filtering via N-gram and edit distance, and a pointer network for response generation. The system achieved top-10 rankings in automated evaluation and top-10 in human evaluation at DSTC9 Track 1, outperforming the baseline across all sub-tasks with improved accuracy and efficiency.

ABSTRACT

We present a knowledge-grounded dialog system developed for the ninth Dialog System Technology Challenge (DSTC9) Track 1 - Beyond Domain APIs: Task-oriented Conversational Modeling with Unstructured Knowledge Access. We leverage transfer learning with existing language models to accomplish the tasks in this challenge track. Specifically, we divided the task into four sub-tasks and fine-tuned several Transformer models on each of the sub-tasks. We made additional changes that yielded gains in both performance and efficiency, including the combination of the model with traditional entity-matching techniques, and the addition of a pointer network to the output layer of the language model.

Motivation & Objective

  • To develop a task-oriented dialog system capable of answering queries using unstructured knowledge sources such as FAQs, beyond structured databases.
  • To improve performance and efficiency in knowledge-seeking turn detection, knowledge selection, and response generation using pre-trained language models.
  • To reduce computational cost by combining neural models with traditional text-matching techniques (N-gram and edit distance) for entity filtering.
  • To enhance response generation quality through a pointer network integrated with T5.
  • To evaluate the system’s generalization ability on unseen domains and entities in the test set.

Proposed method

  • Fine-tuned T5, ELECTRA, and other pre-trained language models on three sub-tasks: knowledge-seeking turn detection, knowledge selection, and response generation.
  • Applied N-gram and edit distance-based filtering to reduce candidate entities before neural model inference, improving efficiency and recall.
  • Integrated a pointer network on top of the T5 decoder to improve response generation by copying tokens from input knowledge.
  • Used ensemble learning and threshold tuning ($t_{\text{ktd}} = 0.25$) to improve robustness and generalization on unseen data.
  • Employed cross-entropy loss for training, with focal loss tested but found to offer only marginal gains.
  • Adopted a pipelined architecture aligning with the baseline, but enhanced each stage with modern NLP techniques.

Experimental results

Research questions

  • RQ1Can pre-trained language models like T5 and ELECTRA outperform older models (e.g., BERT, GPT-2) in knowledge-grounded dialog tasks?
  • RQ2How effective is combining neural models with traditional text-matching methods (N-gram, edit distance) in reducing candidate space and improving retrieval accuracy?
  • RQ3To what extent does a pointer network improve response generation quality in knowledge-grounded dialog systems?
  • RQ4How does model performance degrade on unseen domains and entities, and can ensemble methods or threshold tuning mitigate this?
  • RQ5What is the impact of different loss functions (cross-entropy vs. focal loss) on knowledge selection and response generation?

Key findings

  • The T5 model achieved over 99% F1 score on validation data for knowledge-seeking turn detection, indicating strong performance on seen data.
  • Entity filtering using N-gram and edit distance retained over 99.7% of correct answers while drastically reducing candidate count, improving inference efficiency.
  • The T5-pointer model achieved the highest BLEU-4, METEOR, and ROUGE-L scores on test data, ranking 2nd in ROUGE-L and 7th in BLEU-4 among 24 teams.
  • On knowledge selection, the T5 ensemble model ranked 9th out of 24 teams, outperforming ELECTRA and BERT-based models on unseen test data.
  • Despite strong validation results, performance degraded on test data, especially for unseen domains and entities, indicating a need for better generalization.
  • The system ranked 4th in automated evaluation and 10th in human evaluation among 12 finalist teams, demonstrating high-quality, natural responses.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.