Key-Value Retrieval Networks for Task-Oriented Dialogue

Mihail Eric, Lakshmi Krishnan, François Charette, Christopher D. Manning

Task-oriented dialogue systems, such as virtual assistants, often struggle to balance the flexibility of neural models with the precision required for database retrieval. Traditional architectures typically rely on rigid, non-differentiable pipelines involving explicit state tracking and hard API calls. In "Key-Value Retrieval Networks for Task-Oriented Dialogue," researchers from Stanford and Ford Research propose an end-to-end differentiable framework that treats knowledge base (KB) entries as key-value pairs, allowing the model to learn retrieval through an attention mechanism.

Addressing the Pipeline Bottleneck

Conventional task-oriented systems follow a sequential pipeline: Language Understanding, Dialogue State Tracking, KB Query, and Response Generation. This approach is prone to error propagation and requires extensive manual annotation for every possible state and intent. The Key-Value (KV) Retrieval Network aims to bypass these limitations by learning to query the database and generate responses simultaneously from raw dialogue data.

The Key-Value Retrieval Architecture

The core of the proposed model is an augmented encoder-decoder architecture. An LSTM-based encoder processes the dialogue history into a context vector. The innovation lies in how the Knowledge Base is integrated:

  1. KB Representation: The KB is structured as (subject, relation, object) triples. A "Key" is formed by combining embeddings of the subject and relation, while the "Value" is the corresponding object.
  2. Retrieval Mechanism: During decoding, the model computes an attention score over all keys in the KB based on the current decoder state.
  3. Augmented Vocabulary: The output vocabulary is expanded to include KB values. If the attention mechanism identifies a relevant key, the model can directly "copy" the associated value into the generated response.
Figure 1: Architecture of the Key-Value Retrieval Network, illustrating the attention-based retrieval from a structured knowledge base.

This design allows for implicit state tracking; the model learns to attend to specific KB keys based on the dialogue context without needing explicit labels.

Dataset and Evaluation

To evaluate the model, the authors introduced the Stanford Multi-Domain Dialogue Dataset, consisting of 3,031 dialogues across three in-car domains: calendar scheduling, weather information, and point-of-interest (POI) navigation. The data was collected via a "Wizard-of-Oz" setup to ensure natural linguistic variety.

Performance and Results

The KV Retrieval Network was benchmarked against rule-based systems and standard neural baselines, including Copy Nets and Attention Seq2Seq models.

Figure 5: Performance comparison across different models. The KV Retrieval Network outperforms baselines in both BLEU and Entity F1 scores.

As shown in the results, the KV Retrieval Network achieved a BLEU score of 13.2 and an Entity F1 of 48.0, significantly outperforming the Copy Net baseline. Human evaluations further confirmed the model's superiority in fluency and cooperativeness.

Conclusion and Future Directions

The KV Retrieval Network demonstrates that end-to-end neural models can effectively interact with structured databases through soft attention. While it significantly narrows the gap between rule-based and neural systems, a performance disparity remains compared to human assistants. Future work may focus on handling complex multi-attribute queries and improving the model's capacity for temporal and pragmatic reasoning.

Summary updated

BibTeX
@inproceedings{eric2017key,
  author = {Mihail Eric and Lakshmi Krishnan and François Charette and Christopher D. Manning},
  title = {{Key-Value Retrieval Networks for Task-Oriented Dialogue}},
  booktitle = {SIGDIAL Conference},
  year = {2017},
  doi = {10.18653/v1/w17-5506},
}
Figure