Learning Knowledge Bases with Parameters for Task-Oriented Dialogue Systems

Andrea Madotto, Samuel Cahyawijaya, Genta Indra Winata, Yan Xu, Zihan Liu, Zhaojiang Lin, Pascale Fung

Abstract

Task-oriented dialogue systems traditionally rely on external knowledge bases (KBs) and complex dialogue state tracking (DST) modules. This paper introduces the Knowledge Embedded (KE) approach, a method for "baking" external KBs directly into the parameters of a language model. By training on synthetically generated dialogues that cover all possible KB entries, the authors eliminate the need for external database lookups at inference time. The resulting system achieves state-of-the-art performance with a significantly simpler architecture across five diverse benchmarks.

Introduction

Task-oriented dialogue systems, such as those used for restaurant bookings or navigation, face a significant trade-off between complexity and scalability. Traditional modular systems rely on Dialogue State Tracking (DST) to convert user input into database queries. While effective, these systems are "heavy," requiring expensive manual annotations and involving multiple independent components that can fail.

Conversely, end-to-end systems attempt to map user input directly to responses. However, these systems typically require the entire Knowledge Base as part of the input context, which does not scale to large databases. The authors propose a novel alternative: treating the model's weights as the database itself. By embedding the KB into the model's parameters, the system can "remember" facts needed to fulfill requests without external queries.

Methodology: The Knowledge Embedded (KE) Strategy

The core innovation is the KE strategy, a three-step pipeline designed to transform a static KB into natural language training data:

  1. KE-DELEX (Delexicalization): Existing human-to-human dialogues are processed to replace specific entities (e.g., "Pizza Hut") with generic placeholders (e.g., [name]), creating a set of reusable Templates.
  2. User Goal Query: The "user goal" is formalized using standard query languages like SQL for tabular data or Cypher for knowledge graphs. This identifies which KB entries satisfy specific dialogue templates.
  3. KE-RELEX (Re-lexicalization): This data augmentation step fills templates with every valid combination from the KB. For instance, a template for a "cheap Italian restaurant" is used to generate synthetic dialogues for every matching entry in the database.
The Knowledge Embedded (KE) pipeline transforms structured KB data into synthetic dialogues for model training.

The resulting dataset is used to fine-tune a Causal Language Model (GPT-2). At test time, the model receives only the dialogue history and generates responses—including specific entities—entirely from its internal parameters.

Experimental Setup

The approach was evaluated across five benchmarks with varying KB sizes and structures:

  • bAbI-dialog: Synthetic data for basic reasoning.
  • CamRest: Small human-to-human restaurant booking dataset.
  • SMD (In-Car Assistant): Medium-sized dataset for navigation, weather, and calendars.
  • MultiWOZ (Single Domain): Large-scale, complex multi-task dataset.
  • OpenDialKG: Massive knowledge graph with 100K entities and 1.1M relations.

Results and Discussion

The KE-augmented GPT-2 model (GPT2+KE) consistently outperformed or matched specialized architectures. In the bAbI-dialog task, it achieved 99.9% accuracy. For SMD and CamRest, the model achieved higher Entity F1 and BLEU scores than models with direct "Gold KB" access. Human evaluations also rated the KE approach higher in "Humanness" and "Correctness."

Performance metrics (BLEU and F1) improve as the number of training templates increases, demonstrating the value of linguistic diversity.

Key Insights

  • Parameters as Storage: Modern Transformers possess sufficient capacity to "memorize" structured knowledge when presented in natural language during training.
  • Implicit State Tracking: By embedding the KB, the model bypasses explicit DST, learning to track state and query its internal KB simultaneously.
  • Scalability: Unlike Memory Networks, the KE approach maintains constant inference time regardless of KB size, shifting the computational cost to the training phase.
  • Template Diversity: Performance improves with the number of templates used, suggesting the model learns to associate facts with diverse linguistic contexts rather than just memorizing strings.

Conclusion and Future Work

While the KE approach offers significant advantages, it faces challenges such as the "Update Problem": adding new KB entries requires further fine-tuning. Additionally, the delexicalization process can occasionally produce ungrammatical templates. Future research may explore Meta-Learning to incorporate new KB entries more efficiently and improve the robustness of template generation.

Summary updated

BibTeX
@inproceedings{madotto2020learning,
  author = {Andrea Madotto and Samuel Cahyawijaya and Genta Indra Winata and Yan Xu and Zihan Liu and Zhaojiang Lin and Pascale Fung},
  title = {{Learning Knowledge Bases with Parameters for Task-Oriented Dialogue Systems}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.215},
}
Figure