Abstract
This paper proposes KB-InfoBot -- a multi-turn dialogue agent which helps users search Knowledge Bases (KBs) without composing complicated queries. Such goal-oriented dialogue agents typically need to interact with an external database to access real-world knowledge. Previous systems achieved this by issuing a symbolic query to the KB to retrieve entries based on their attributes. However, such symbolic operations break the differentiability of the system and prevent end-to-end training of neural dialogue agents. In this paper, we address this limitation by replacing symbolic queries with an induced "soft" posterior distribution over the KB that indicates which entities the user is interested in. Integrating the soft retrieval process with a reinforcement learner leads to higher task success rate and reward in both simulations and against real users. We also present a fully neural end-to-end agent, trained entirely from user feedback, and discuss its application towards personalized dialogue agents.
Introduction
Goal-oriented dialogue agents, such as digital assistants, are designed to help users navigate Knowledge Bases (KBs) to find specific information. Traditionally, these systems rely on a "Hard-KB lookup" mechanism. In this paradigm, the agent parses user input into a symbolic query (e.g., SQL) to retrieve matching entries. While functional, this approach suffers from two critical limitations:
- Non-Differentiability: Symbolic queries act as "black boxes," preventing the backpropagation of gradients from the dialogue outcome back to the natural language understanding components. This necessitates separate training for individual modules.
- Loss of Uncertainty: Hard queries are binary and cannot represent the inherent ambiguity in natural language. If a user's intent is unclear, a hard query may fail entirely or return irrelevant results without conveying the system's uncertainty.
To overcome these hurdles, we introduce KB-InfoBot, a framework that utilizes a differentiable "soft" retrieval process to enable end-to-end reinforcement learning.
The KB-InfoBot Architecture
The core innovation of KB-InfoBot is the replacement of discrete symbolic queries with a Soft-KB Lookup. This allows the entire pipeline—from belief tracking to policy generation—to be optimized as a single differentiable unit.
Soft-KB Lookup and Belief Tracking
Instead of a single query, the agent maintains a probability distribution, or "belief state," over the attributes requested by the user. The system computes a posterior distribution over all entities in the KB, indicating the likelihood that each entity is the user's target. By providing the policy network with summary statistics of this distribution (such as entropy), the agent learns to ask strategic questions when uncertainty is high.
Training via Reinforcement Learning
The dialogue policy is trained using the REINFORCE algorithm. To address the "cold start" problem inherent in large search spaces, we employ Imitation Learning to pre-train the agent against a rule-based system before transitioning to full reinforcement learning (RL). This hybrid approach ensures the agent receives sufficient positive reinforcement to converge effectively.
Experimental Evaluation
We evaluated KB-InfoBot using a movie-centric knowledge base (Movies-KB) across four scales of complexity, ranging from 277 to 3,523 entities. Training data was generated using a stochastic user simulator that mimics human behavior and provides rewards based on task success and dialogue efficiency.
Key Results and Discussion
Our experiments demonstrate that agents utilizing Soft-KB lookups consistently outperform those using traditional Hard-KB methods.
As shown in the results, the RL-Soft agent achieved the highest success rates and rewards. In human trials, the agent maintained a 74% success rate, proving its robustness to real-world noise. Furthermore, the RL-Soft model proved more efficient, often identifying the correct entity in fewer turns than rule-based alternatives.
While a fully neural "End-to-End" (E2E) agent showed promise in adapting to simulator noise, it was more susceptible to overfitting. This suggests a modular yet differentiable architecture like RL-Soft offers a better balance between flexibility and generalizability.
Conclusion
KB-InfoBot represents a significant step toward truly end-to-end trainable dialogue systems. By making the interaction with external knowledge bases differentiable, we allow agents to learn directly from user feedback, leading to more effective and efficient information-seeking interactions. Future work will focus on scaling these models to massive databases and exploring personalized dialogue agents.
Summary updated