Entity Linking via Dual and Cross-Attention Encoders

Oshin Agarwal, Daniel M. BikelarXiv 2020

TL;DR

This paper tackles the challenge of entity linking by proposing a two-stage approach: first, using a dual-encoder model (DEER) to efficiently generate candidate entities without relying on traditional alias tables, and second, employing a BERT-based cross-attention encoder to re-rank these candidates with richer contextual information. This novel combination achieves state-of-the-art results on the TACKBP-2010 dataset, demonstrating improved accuracy and generalization capabilities.

What Problem Does This Paper Address?

Entity linking, the task of identifying the correct real-world entity a text mention refers to (e.g., "Union City" in a sentence referring to the city in California), is a fundamental problem in Natural Language Processing. Traditionally, this task has been approached in two main steps: candidate generation and candidate re-ranking. A significant hurdle in candidate generation has been the reliance on alias tables, which are essentially dictionaries mapping mention strings to entities. These tables have several drawbacks: they are often incomplete, biased towards the most frequent entities, and fail to capture nuanced contextual information. Furthermore, generating rich, contextual representations for both mentions and entities has been an ongoing challenge. While prior work like DEER (Gillick et al., 2019) offered a promising alias-free candidate generation method using dual encoders, the paper argues that these dual encoders, by design, compress all information into fixed-size vectors, potentially losing valuable details. This work aims to bridge this gap by leveraging the strengths of both dual-encoder retrieval for efficient candidate generation and cross-attention mechanisms for more sophisticated re-ranking.

Methods

The proposed method follows a two-step pipeline:

  1. Candidate Generation: The authors utilize the DEER (Dual-Encoder Entity Retrieval) system from Gillick et al. (2019). This system learns to embed mentions and entities into the same vector space, allowing for efficient candidate generation through nearest neighbor search. Crucially, DEER does not rely on traditional alias tables, making it more robust and generalizable. The top 100 retrieved entities are then passed to the re-ranking stage.
  2. Candidate Re-ranking: This is the core contribution of the paper. Instead of relying solely on the fixed-size vector representations from the dual encoder, the authors employ a BERT model as a cross-attention encoder. This allows for a more detailed examination of the relationship between the target mention and each candidate entity. The input to BERT includes:
  3. The mention span within its full sentence.
  4. Local context (left and right of the mention).
  5. Document-level context (as an unordered bag of words, excluding stopwords).
  6. Entity title and description.
  7. Candidate entity rank from the DEER retrieval stage (encoded using special tokens).

    BERT then generates a joint representation for the mention-entity pair, which is fed into a classification layer to predict the probability of a true link. The candidate with the highest probability is selected. The authors experiment with various combinations of these features to understand their impact.

Datasets

  • Training:
    • 2018-10-22 English Wikipedia dump (used for training the DEER candidate generator).
  • TACKBP-2010 training split (used for training the re-ranker).
  • CoNLL-2003 training split (used for evaluating generalization).
  • Evaluation:
    • TACKBP-2010 test split.
  • CoNLL-2003 test split.

The paper highlights the challenge of comparing results due to the dynamic nature of Wikipedia and varying knowledge base sizes used in prior work. They use the TAC KBP Reference Knowledge Base (~818k entities) for comparison, augmenting it with random entities to match the size of other systems.

Key Insights and Ideas

  • Synergy of Dual and Cross-Attention: The paper demonstrates that combining a fast, alias-free dual-encoder for candidate generation with a powerful cross-attention model for re-ranking yields superior results compared to using either approach in isolation.
  • BERT's Flexibility with Context: The experiments show that BERT can effectively leverage diverse contextual features (local sentence, document-level bag-of-words, entity descriptions) for disambiguation, even when some positional information is deliberately removed.
  • Document Context is Key (but Order Doesn't Matter): Incorporating document-level context, particularly as an unordered bag of words, significantly improves performance. Interestingly, the order of words in the document context does not seem to be critical, suggesting that keywords are more important than their sequence.
  • Generalization Power: The re-ranker trained on the larger CoNLL-2003 dataset shows good generalization capabilities when evaluated on the TACKBP-2010 dataset, indicating the robustness of the learned features.

Key Results

  • State-of-the-Art on TACKBP-2010: The proposed model achieves an accuracy of 92.05% on the TACKBP-2010 test set, outperforming previous state-of-the-art results.
  • Improved Re-ranking: For the TACKBP-2010 dataset, the re-ranker improves accuracy from 86.86% (DEER recall@1) to 88.42%.
  • CoNLL-2003 Performance: On the CoNLL-2003 dataset, the re-ranker boosts recall@1 from 75.71% to 88.31%.
  • Ablation Study: The paper presents a detailed ablation study showing consistent accuracy gains as more features (local context, entity description, document context) are added to the re-ranker.

Limitations and Future Work

  • Computational Cost: While the dual encoder is efficient for candidate generation, the BERT-based cross-attention re-ranker is computationally more intensive. The authors suggest exploring ways to jointly train the dual encoder and the cross-attention re-ranker to recover performance gains within a more integrated model.
  • Domain Shift: The paper notes that when training on CoNLL (which has different entity types and contexts, e.g., football clubs vs. actual cities) and testing on TAC, the model's performance can be affected by domain shifts.
  • Future Work:
    • Investigate joint training of the dual encoder and cross-attention re-ranker.
  • Explore true re-ranking models that preserve ordering relationships in lists.
  • Train the re-ranker on more general data like Wikipedia, potentially by filtering for relevant entities.
  • Further explore different forms of document context and their ordering.

Summary updated

Abstract

Entity Linking has two main open areas of research: 1) generate candidate entities without using alias tables and 2) generate more contextual representations for both mentions and entities. Recently, a solution has been proposed for the former as a dual-encoder entity retrieval system (Gillick et al., 2019) that learns mention and entity representations in the same space, and performs linking by selecting the nearest entity to the mention in this space. In this work, we use this retrieval system solely for generating candidate entities. We then rerank the entities by using a cross-attention encoder over the target mention and each of the candidate entities. Whereas a dual encoder approach forces all information to be contained in the small, fixed set of vector dimensions used to represent mentions and entities, a crossattention model allows for the use of detailed information (read: features) from the entirety of each <mention, context, candidate entity> tuple. We experiment with features used in the reranker including different ways of incorporating document-level context. We achieve state-of-the-art results on TACKBP-2010 dataset, with 92.05% accuracy. Furthermore, we show how the rescoring model generalizes well when trained on the larger CoNLL-2003 dataset and evaluated on TACKBP-2010.
BibTeX
@misc{agarwal2020entity,
  author = {Oshin Agarwal and Daniel M. Bikel},
  title = {{Entity Linking via Dual and Cross-Attention Encoders}},
  year = {2020},
  eprint = {2004.03555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.03555},
}
Figure