NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Topic-Aware Response Generation in Task-Oriented Dialogue with Unstructured Knowledge Access

Yue Feng, Gerasimos Lampouras, Ignacio Iacobacci

Abstract

Traditional task-oriented dialogue systems (TODS) often struggle to maintain coherence when transitioning between topics in unstructured knowledge environments. This paper presents TARG (Topic-Aware Response Generation), an end-to-end model designed to explicitly track topic shifts to improve knowledge selection and response accuracy. Built upon the BART architecture, TARG utilizes a specialized triple-attention mechanism to align dialogue history with external knowledge sources. Experimental results on the Doc2Dial and DSTC9 benchmarks demonstrate that TARG achieves state-of-the-art performance, particularly in scenarios with frequent and fine-grained topic transitions.

1. Introduction

Task-oriented dialogue systems are increasingly moving beyond structured databases toward knowledge-grounded systems that leverage unstructured text, such as manuals and FAQs. While this transition increases flexibility, it introduces the challenge of identifying relevant information within large corpora. Current systems often rely on word-level similarity, which can fail to capture the broader context of a conversation. Specifically, the inability to model "topic shifts"—transitions between different subjects within a single dialogue—leads to poor knowledge retrieval and irrelevant responses.

We introduce TARG, a model that treats topic shifts as a primary signal for dialogue management. By explicitly modeling the topical relationship between the user's query and the available knowledge base, TARG provides a more robust framework for generating accurate, context-aware responses.

2. The TARG Architecture

TARG is an end-to-end model initialized with the pre-trained BART (Bidirectional and Auto-Regressive Transformers) weights. The architecture is designed to handle the dual task of identifying the correct knowledge snippet (factoid) and generating a natural language response.

2.1 Dual Encoding and Topic Embeddings

The model begins by encoding both the dialogue history and the external knowledge snippets. Unlike standard models, TARG generates separate embeddings for the topics associated with these inputs. This allows the model to differentiate between the semantic content of a sentence and its overarching topical category.

2.2 Triple-Threat Attention Mechanism

To calculate the relevance between the dialogue state and the knowledge base, TARG employs three distinct attention mechanisms:

  1. Dot Product Attention: Captures straightforward linear relationships between the dialogue and knowledge embeddings.
  2. Bilinear Attention: Models more complex, multiplicative interactions between topic vectors.
  3. Outer Product Attention: Projects feature interactions into a higher-dimensional space to capture nuanced correlations.

Ablation studies indicate that the combination of these three methods outperforms any single approach, suggesting that different mathematical operations capture unique aspects of topical alignment.

2.3 Knowledge Selection and Fusion

Once relevance scores are calculated, the model predicts a span over the knowledge base. In cases where multiple relevant factoids are identified, TARG utilizes a Convolutional Neural Network (CNN) to fuse these representations into a single, coherent knowledge vector. This fused representation is then passed to the BART decoder to generate the final system response.

3. Experimental Evaluation

The performance of TARG was evaluated on two benchmark datasets:

  • Doc2Dial: A complex dataset grounded in long documents (e.g., government agency manuals) characterized by frequent, fine-grained topic shifts.
  • DSTC9 (Track 1): A dataset based on FAQ documents with coarser topic structures (e.g., "Hotel" or "Taxi").

4. Results and Discussion

TARG established a new state-of-the-art on the Doc2Dial leaderboard. In knowledge selection, the model improved Exact Match (EM) by 3.2 points and F1 scores by 3.6 points. In response generation, TARG achieved a 4.2-point improvement in BLEU-4 scores compared to previous benchmarks.

Interestingly, TARG's performance gains were most pronounced on Doc2Dial. This suggests that the model’s specialized attention mechanisms are particularly effective when the "signal" from topic shifts is frequent and specific. On the DSTC9 dataset, where topics are broader, TARG performed comparably to existing state-of-the-art models, demonstrating its robustness across different levels of topical granularity.

5. Limitations and Future Directions

While TARG represents a significant advancement, it currently relies on pre-annotated topic labels. Future research will explore unsupervised topic discovery methods, such as Latent Dirichlet Allocation (LDA), to remove the need for manual annotation. Additionally, the model is constrained by the context window of the underlying BART architecture, which limits its ability to process extremely long dialogues or massive document sets. Expanding the linguistic scope beyond English also remains a priority for future iterations.

6. Conclusion

TARG demonstrates that explicit topic modeling is a powerful tool for improving knowledge-grounded task-oriented dialogue. By leveraging a diverse set of attention mechanisms to track topic shifts, TARG achieves superior accuracy in both knowledge retrieval and response generation, providing a more reliable experience for users interacting with unstructured knowledge bases.

Summary updated

BibTeX
@inproceedings{feng2022topic,
  author = {Yue Feng and Gerasimos Lampouras and Ignacio Iacobacci},
  title = {{Topic-Aware Response Generation in Task-Oriented Dialogue with Unstructured Knowledge Access}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.533},
}
Figure