Towards a Continuous Knowledge Learning Engine for Chatbots

Sahisnu Mazumder, Nianzu Ma, Bing LiuarXiv 2018

Introduction

Most contemporary chatbots are constrained by the static knowledge they were initialized with, rendering them brittle when encountering novel topics or entities. This paper introduces LiLi (Lifelong Interactive Learning and Inference), a framework designed to enable chatbots to continuously expand their knowledge bases. By interacting with users and performing "open-world" reasoning, LiLi fills knowledge gaps on the fly.

Traditional chatbots typically rely on static Knowledge Bases (KBs). While Knowledge Base Completion (KBC) is often used to predict missing links, it usually operates under a "closed-world assumption," assuming all entities and relations are already present. In real-world conversations, users frequently introduce new entities. LiLi addresses Open-World Knowledge Base Completion (OKBC), where the system must recognize its own ignorance and actively seek information to learn new concepts.

Methods and Framework

LiLi integrates Reinforcement Learning (RL) with Lifelong Learning to manage the complexity of open-world knowledge acquisition.

Interactive Dialogue Strategy

The core of LiLi is its ability to engage in targeted information-seeking dialogues. When the system encounters an unknown relation or entity, it initiates a sequence of questions to bridge the gap between its current knowledge and the user's query.

Example of LiLi interacting with a user to resolve an open-world query.

Reinforcement Learning for Action Selection

LiLi utilizes a Deep Q-Network (DQN) to determine the optimal sequence of actions. These actions are categorized into processing actions (e.g., searching the KB) and interactive actions (e.g., asking for a clue).

The set of actions and the corresponding reward structure used by the RL agent.

The framework includes several key components:

  1. Lifelong Prediction Model: To prevent "catastrophic forgetting," LiLi uses a lifelong learning approach. When learning a new relation, it transfers weights from similar, previously mastered relations, accelerating the learning process.
  2. Contextual Path-Ranking (C-PR): The system performs inference by identifying relational paths between entities. If a path is incomplete, LiLi can specifically ask the user for the missing link.
  3. Guessing Mechanism: In scenarios where a user cannot provide an answer, LiLi employs contextual similarity via word embeddings to make informed guesses.

Evaluation

The researchers evaluated LiLi using modified versions of the Freebase (FB15k) and WordNet benchmarks to simulate an open-world environment. Portions of these datasets were hidden to represent "unknown" knowledge, and a simulated user was employed to provide answers to the bot's queries.

Key Results

LiLi demonstrated significant performance gains over static baselines:

  • Strategy Success: In complex settings, LiLi achieved a 1.0 Coverage score, indicating it successfully formulated a winning strategy for every query.
  • Predictive Accuracy: On the Freebase dataset, LiLi reached an F1 score of 0.5789, outperforming models that lacked lifelong learning or interactive capabilities.
  • Robustness: The system remained effective even with "unhelpful" simulated users, maintaining an F1 score of 0.57 on FB through its internal guessing mechanism.

Discussion and Insights

A pivotal concept in LiLi is Self-Realization as Reward. Unlike standard RL agents that require external scoring, LiLi generates internal rewards when a strategy leads to a verifiable inference. This internal motivation mimics human problem-solving. Furthermore, the system's Knowledge Store ensures that once a relation (e.g., "CitizenOf") is learned, it is retained for all future interactions, making the learning process truly lifelong.

Limitations and Future Work

Despite its success, LiLi currently focuses on objective facts and uses template-based natural language generation. Future iterations aim to handle subjective beliefs and integrate more fluid, natural dialogue. While the results are promising, further improvements in open-world inference accuracy are necessary for mission-critical deployment.

Summary updated

BibTeX
@misc{mazumder2018towards,
  author = {Sahisnu Mazumder and Nianzu Ma and Bing Liu},
  title = {{Towards a Continuous Knowledge Learning Engine for Chatbots}},
  year = {2018},
  eprint = {1802.06024},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.06024},
}
Figure