Abstract
Traditional end-to-end task-oriented dialogue systems often suffer from "entity inconsistency," where the model generates factually incorrect responses by mixing information from different knowledge base (KB) entries. We present a novel framework that ensures entity consistency by decomposing the KB query process into two distinct steps: row selection and column selection. By first retrieving the most relevant KB row and then attending to specific attributes within that row, our system significantly reduces hallucinations. Evaluations on standard benchmarks demonstrate that our approach outperforms existing models in both automated metrics and human-judged correctness.
Introduction
Task-oriented dialogue systems, such as virtual assistants, must effectively interface with Knowledge Bases (KBs) to provide accurate information. While traditional pipeline systems use explicit API calls, modern end-to-end neural models attempt to learn dialogue management and KB querying simultaneously. However, these models often treat the KB as a flat collection of data, leading to entity inconsistency—a phenomenon where a system might correctly identify a point of interest (POI) but provide an address or phone number belonging to a different entity. This paper addresses this limitation by proposing a structured retrieval mechanism that enforces row-level consistency.
Methodology
The proposed framework introduces a two-step retrieval process integrated into a sequence-to-sequence (Seq2Seq) architecture.
KB Row Selection
The first stage employs a Memory Network-based retriever to identify the single most relevant row in the KB based on the dialogue history. This design choice is motivated by the empirical finding that over 80% of assistant responses in standard datasets are supported by exactly one KB row. By constraining the model to a single row, we prevent the "mix-and-match" errors common in flat attention models.
KB Column Selection
Once a row is selected, the decoder uses an attention mechanism to select the appropriate column (attribute) from that row to generate the final response. This ensures that all entities mentioned in a single response are derived from the same KB entry.
Training with Latent Supervision
Since standard datasets lack ground-truth labels for KB row selection, the authors utilize two key techniques:
- Distant Supervision: Heuristics are used to label rows by matching entities in the training responses to the KB.
- Gumbel-Softmax: To maintain differentiability during end-to-end training, the discrete row selection process is modeled using the Gumbel-Softmax trick, allowing the retriever to be optimized alongside the generator.
Experiments and Results
The model was evaluated on two primary benchmarks: the InCar Assistant (navigation, weather, and calendar) and CamRest (restaurant reservations).
As shown in the results, the proposed model achieved state-of-the-art performance across multiple metrics. On the InCar dataset, it reached a BLEU score of 13.9 and an Entity F1 of 53.7, surpassing strong baselines like Mem2Seq and DSR.
Human evaluations further confirmed the model's effectiveness, with a "Correctness" score of 4.64/5.0, significantly higher than previous end-to-end approaches. The results indicate that the two-step retrieval process effectively eliminates mismatched entity errors and remains robust even as the number of rows in a KB increases.
Conclusion
By enforcing row-level consistency through a structured retrieval framework, this system significantly improves the factual accuracy of end-to-end task-oriented dialogue systems. While the current "single row" assumption covers most use cases, future work will explore handling multi-row dependencies for complex queries involving comparisons or logical reasoning across multiple entities.
Summary updated