TL;DR
This paper introduces EKO-DOC, an end-to-end system for document-oriented conversational AI that can access and utilize external knowledge beyond a primary topic document. By training a dense passage retriever and re-ranker using attention signals from the response generator, EKO-DOC significantly improves conversational response quality and achieves state-of-the-art results on the Wizard of Wikipedia dataset.
What Problem Does This Paper Address?
Traditional end-to-end conversational AI models, including those designed for document-oriented dialogues, often rely solely on knowledge learned during training or provided by a single topic document. However, real-world conversations frequently require information from a broader range of external sources. This paper addresses the challenge of building conversational agents that can effectively leverage both a primary topic document and a diverse external knowledge base to generate more informative and relevant responses, especially when conversations touch upon topics not explicitly covered in the main document.
Methods
EKO-DOC is an end-to-end architecture comprising three main components:
- Dense Passage Retriever (DPR): This component, initialized with a pre-trained Sentence-BERT model, retrieves a set of relevant knowledge snippets from a large external knowledge base. The retrieval process involves encoding both the knowledge base and a query (formed from the dialog context and topic document) into vector representations.
- Re-ranker: A Transformer-based cross-attention model takes the top retrieved snippets and further refines their relevance by considering their interaction with the dialog context and topic document. This step selects the top K2 snippets for the next stage.
- Response Generation Model: A sequence-to-sequence model, specifically LongT5, generates the final response. Crucially, this model takes as input the concatenated dialog context and the top-ranked external knowledge snippets.
A key innovation is the end-to-end training strategy. Instead of relying on expensive human-annotated retrieval labels, EKO-DOC uses "silver labels" derived from the attention signals of the response generation model. This means the retriever and re-ranker are trained to identify snippets that the generator pays the most attention to, implying their relevance for generating the response. This approach is termed "Fusion-in-Input" (FiI), contrasting with "Fusion-in-Decoder" (FiD) methods.
Datasets
The paper evaluates EKO-DOC on two publicly available datasets:
- Wizard of Wikipedia (WoW): This dataset features open-domain conversations grounded in knowledge from Wikipedia. The external knowledge base consists of approximately 22 million 100-word passages. For each conversation, the first paragraph of the associated Wikipedia page serves as the topic document.
- MultiDoc2Dial: This dataset is designed for document-oriented conversations and grounds dialogues in multiple documents across four domains (Social Security Administration, Veteran Affairs, Student-Aid, and DMV). The first paragraph of the first grounded document is used as the topic document.
Key Insights and Ideas
- The necessity of external knowledge: The study strongly suggests that even in document-oriented dialogues, a significant portion of conversations (estimated at 36% in WoW) requires knowledge beyond the primary topic document.
- Leveraging attention for retrieval supervision: Using the generator's attention signals as pseudo-labels for training the retriever and re-ranker is an effective way to achieve end-to-end training without costly human annotations. This "self-supervision" mechanism allows the retrieval components to learn what information is truly useful for generating good responses.
- Fusion-in-Input (FiI) effectiveness: The FiI approach, where all relevant information (dialog context and retrieved knowledge) is concatenated and fed directly into the generator, proves more effective than Fusion-in-Decoder (FiD) methods. This suggests that jointly processing these inputs allows the model to better capture semantic relationships.
- Topic document importance: Even when external knowledge is available, the primary topic document remains crucial. Models that incorporate the topic document generally perform better, highlighting its role as the foundational context.
Key Results
- State-of-the-art performance: EKO-DOC achieves new state-of-the-art results on the Wizard of Wikipedia dataset, outperforming a competitive baseline by 10.3% in Recall@1 and 7.4% in ROUGE-L.
- Improved response quality: Both automatic and human evaluations demonstrate that EKO-DOC generates responses that are more fluent, on-topic, and interesting compared to baselines that do not leverage external knowledge.
- Effectiveness of pseudo-labels: The system trained with attention-based pseudo-labels achieves strong retrieval performance (e.g., Recall@1 score of 71.21% on WoW), comparable to systems trained with gold retrieval labels.
- Re-ranker's contribution: The re-ranker plays a significant role, improving Recall@1 scores substantially.
Limitations and Future Work
- Computational Complexity: The paper acknowledges that Transformer-based systems, including EKO-DOC, have high computational complexity. Future work aims to reduce this by exploring compression techniques.
- Response Naturalness: While improved, EKO-DOC sometimes generates responses that are "a little bit unnatural." Further refinement is needed to enhance the naturalness and flow of generated text.
- Potential for Misuse: The authors highlight the ethical considerations of conversational AI, warning against malicious uses such as manipulating user perceptions.
- Future Directions: The authors plan to continue research into compression techniques to improve efficiency and further enhance response quality.
Summary updated