Introduction
Open-domain conversational agents often struggle with "generic response syndrome," providing safe but uninformative answers like "That's interesting." To overcome this, researchers have focused on grounding dialogue in external knowledge bases (KBs) such as Wikipedia. However, effective grounding requires robust Entity Resolution (ER)—the ability to identify mentions in informal, ambiguous conversation and link them to specific KB entries. Researchers from Amazon Alexa have developed a context-aware pipeline for Neural Entity Linking (NEL) that addresses the unique challenges of dialogue, such as informality and ambiguity, significantly improving response quality.
System Architecture
The proposed system utilizes a multi-stage pipeline designed to move from raw dialogue to a knowledge-grounded response. The process begins with context-aware Named Entity Recognition (NER) to identify potential entities, followed by a two-step Entity Resolution (ER) process to link those entities to a Knowledge Base. Finally, the resolved information is used to generate a response.
Methodology
1. Context-Aware Named Entity Recognition (NER)
Standard NER models often fail in conversation because they treat sentences in isolation. The authors' model uses a Bi-LSTM-CRF architecture enhanced by an attention mechanism. By encoding the previous $k$ utterances, the model can "weight" relevant historical context to better identify entities in the current turn. This approach is particularly effective for resolving mentions that depend on previous turns.
2. Context-Aware Entity Resolution (ER)
Once an entity is identified, the system links it to the KB using a two-stage approach:
- Candidate Selection: A fast search using Elasticsearch (utilizing both exact and fuzzy matching) retrieves the top 10 potential KB entries.
- Multi-level Reranking: A BERT-based model calculates a relevance score by analyzing the entity at multiple levels: the KB label (Entity-Level), the current sentence (Utterance-Level), and the entire conversation history (Session-Level). It also incorporates global entity popularity as a prior signal.
Experimental Results
The pipeline was evaluated across three datasets: the Multi-turn Open-domain Conversation (MOC) dataset, a Synthetic dataset designed to test ambiguity, and the Wizard of Wikipedia (WoW) benchmark.
NER and ER Performance
The context-aware NER model achieved a 16.9% relative F1-score gain on the synthetic dataset compared to the standard "Flair" baseline. In the ER stage, the context-aware ranking model consistently outperformed both simple search and non-contextual ranking models. As shown in the table below, the inclusion of context provided the highest Recall@1 (R@1) across all tested datasets, with the most dramatic improvements seen in the Synthetic and WoW datasets.
Human Evaluation
Beyond automated metrics, human evaluators compared responses generated by the NEL pipeline against a baseline GPT-2 model. Responses grounded via the NEL pipeline were rated 53.8% more informative and 25.5% more appropriate, demonstrating that better entity resolution directly translates to higher perceived conversational quality.
Conclusion
This research demonstrates that context is essential for resolving entities in open-domain dialogue. By leveraging conversation history through attention and multi-level BERT reranking, the proposed pipeline effectively mitigates ambiguity. Future work will focus on reducing the computational overhead of BERT-based reranking to meet the latency requirements of real-time production systems and improving robustness to Automatic Speech Recognition (ASR) errors.
Summary updated