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

Polar Ducks and Where to Find Them: Enhancing Entity Linking with Duck Typing and Polar Box Embeddings

Mattia Atzeni, Mikhail Plekhanov, Frédéric A. Dreyer, Nora Kassner, Simone Merello, Louis Martin, Nicola Cancedda

TL;DR

DUCK enhances entity linking by infusing structural knowledge from knowledge graphs into dense retrieval models using a novel "duck typing" approach. By representing relations as boxes in spherical polar coordinates, it achieves state-of-the-art accuracy comparable to massive generative models while remaining 18x smaller and significantly faster.

What Problem Does This Paper Address?

Entity Linking (EL) is the task of mapping ambiguous mentions in text (like "Italy") to the correct entry in a knowledge base (e.g., the country "Italy" vs. the "Italy national football team").

Currently, there's a trade-off: Generative models are highly accurate but slow and computationally expensive. Dense retrieval models (bi-encoders) are lightning-fast and efficient for large-scale use, but they often lack accuracy because their embedding spaces don't naturally capture the underlying structure or "types" of entities. If a model doesn't understand that a "football team" is a different category of thing than a "country," it’s more likely to make mistakes when the context is messy.

Methods

The authors introduce DUCK (Disambiguating Using Categories extracted from Knowledge), which infuses structural information into the latent space of retrieval models.

1. Duck Typing for Knowledge Graphs

In programming, "duck typing" means an object's type is defined by its properties ("if it walks like a duck and quacks like a duck, it's a duck"). DUCK applies this to Knowledge Graphs (KGs). Instead of relying on explicit (and often incomplete) type labels, DUCK defines an entity's type by the set of relations it has. For example, if an entity has a director and cast member relation, it is likely a movie.

Figure 1: Examples from Wikidata showing how, fol- lowing the concept of duck typing, relations in a knowl- edge graph can help identifying entities of different types (e.g., movies and countries).

2. Polar Box Embeddings

To represent these "types" in the embedding space, the authors use box embeddings. While standard box embeddings use Cartesian coordinates, DUCK uses spherical polar coordinates.

  • Why? Most retrieval models use dot-product or cosine similarity, which are heavily dependent on the angle between vectors.
  • The Innovation: By defining boxes on a hypersphere using angles, the model can constrain entities of the same "type" to fall within specific angular regions. This leaves the radial coordinate (the "norm" of the vector) free to encode other information, like entity popularity.

3. The Architecture

DUCK uses a standard bi-encoder (based on RoBERTa) to encode mentions and entities. During training, a third "Relation Encoder" creates the box parameters for KG relations. The model is optimized with a joint loss: one for correct linking and a "duck typing" loss that pushes entities into the boxes corresponding to their KG relations.

Figure 2: Entity disambiguation flow in DUCK. A mention encoder and an entity encoder learn to represent mentions and entity descriptions respectively. Following the concept of duck typing, relations in a knowledge graph are used to determine entity types. Relations are represented as box embeddings in spherical polar coordinates and the model is optimized to place entities inside the boxes corresponding to their relations.

Datasets

  • Training: The model was trained on the BLINK dataset, which contains 9 million mention-entity pairs extracted from Wikipedia.
  • Knowledge Base: Wikidata provided the relational structure for the duck typing.
  • Evaluation: The authors tested on six standard benchmarks: AIDA-CoNLL, MSNBC, AQUAINT, ACE2004, CWEB, and WIKI.

Key Insights and Ideas

  • Implicit Structure is Enough: You don't need perfect type labels. The raw relational structure of a KG is a powerful enough signal to cluster entities effectively.
  • Coordinate Systems Matter: The shift from Cartesian to Polar coordinates is the "secret sauce" that allows box embeddings to play nicely with the dot-product similarity metrics used in modern NLP.
  • Closing the Gap: Structural infusion allows a relatively small model (717M parameters) to match the performance of a massive generative model (13B parameters).

Key Results

DUCK achieved new state-of-the-art results on several benchmarks, particularly excelling in out-of-domain scenarios.

  • Accuracy Boost: Adding duck typing improved the baseline bi-encoder by an average of 4 micro-F1 points, with a massive 7.9 point jump on the ACE2004 dataset.
  • Efficiency: DUCK matches the performance of CM3-Large, a generative model with 18 times more parameters.
  • Qualitative Success: As shown in Figure 3, DUCK correctly identifies "Blackburn Rovers F.C." as a football team based on context, whereas a version without typing mistakenly links it to a person ("Eddie Blackburn").
Quantitative results across six datasets
Figure 3: Examples of the predictions of DUCK and DUCK w/o types, showing cases where DUCK predicts the correct entity (left and center) and where it predicts a wrong one (right). Mentions are highlighted in bold green.

Limitations and Future Work

  • KG Dependency: The method requires a Knowledge Graph at training time. In niche domains where no KG exists, DUCK cannot be applied directly.
  • Latent Types: DUCK doesn't output a human-readable label (e.g., "This is a Movie"). It only clusters them in a latent space.
  • Context vs. Prior: In rare cases, the model might over-rely on the "type" prior and ignore subtle contextual clues, leading to incorrect links between very similar entities (e.g., a main national team vs. an under-21 team).
  • Future Direction: The authors suggest exploring how these structural priors could be infused into generative models as well.

Summary updated

BibTeX
@inproceedings{atzeni2023polar,
  author = {Mattia Atzeni and Mikhail Plekhanov and Frédéric A. Dreyer and Nora Kassner and Simone Merello and Louis Martin and Nicola Cancedda},
  title = {{Polar Ducks and Where to Find Them: Enhancing Entity Linking with Duck Typing and Polar Box Embeddings}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=RVQccn8rcr},
}
Figure