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, Frederic A Dreyer, Nora Kassner, Simone Merello, Louis Martin, Nicola Cancedda

Abstract

Entity linking methods based on dense retrieval are widely adopted in large-scale applications for their efficiency, but they can fall short of generative models, as they are sensitive to the structure of the embedding space. To address this issue, this paper introduces DUCK, an approach to infusing structural information in the space of entity representations, using prior knowledge of entity types. Inspired by duck typing in programming languages, we define the type of an entity based on its relations with other entities in a knowledge graph. Then, porting the concept of box embeddings to spherical polar coordinates, we represent relations as boxes on the hypersphere. We optimize the model to place entities inside the boxes corresponding to their relations, thereby clustering together entities of similar type. Our experiments show that our method sets new state-of-the-art results on standard entity-disambiguation benchmarks. It improves the performance of the model by up to 7.9 F1 points, outperforms other type-aware approaches, and matches the results of generative models with 18 times more parameters.

Introduction

Entity Linking (EL) is the critical task of disambiguating mentions in text by mapping them to unique entries in a Knowledge Base (KB). For instance, determining whether "Italy" refers to the sovereign nation or its national football team requires contextual understanding. Current state-of-the-art approaches generally fall into two categories: generative models, which are highly accurate but computationally prohibitive due to token-by-token generation, and dense retrieval models, which are efficient but often lack the structural awareness necessary for high-precision disambiguation.

A significant challenge in dense retrieval is the "unstructured" nature of the embedding space. While previous research has attempted to incorporate entity "type" information (e.g., knowing an entity is a "country"), these methods often rely on rigid and frequently incomplete labels within Knowledge Graphs (KGs). If a KG is missing a specific type label, standard models fail to leverage that context.

Methodology: Duck Typing and Polar Boxes

The proposed DUCK (Disambiguating Using Categories extracted from Knowledge) framework introduces a novel way to structure the embedding space without relying on explicit type labels.

Duck Typing for Entities

Inspired by the "duck typing" principle in computer science—"if it walks like a duck and quacks like a duck, it's a duck"—the authors define an entity's type through its relations. For example, if an entity in a KG possesses relations such as capital, population, and flag, it is functionally treated as a "country." This approach allows the model to leverage structural information even when explicit type tags are missing, making it robust to the inherent incompleteness of KGs.

Polar Box Embeddings

To represent these relational types geometrically, DUCK utilizes box embeddings. Unlike traditional Cartesian box embeddings, DUCK employs spherical polar coordinates. This choice is strategic: since most retrieval models rely on cosine similarity (an angular metric), representing types as angular regions (boxes) on a hypersphere aligns the geometric priors with the underlying mathematical operations of the search.

The DUCK architecture: Mention and Entity encoders map inputs to a hypersphere, while a Relation encoder defines polar boxes representing entity types.

The architecture consists of a bi-encoder (based on RoBERTa) and a specialized relation encoder. During training, the latent space is shaped such that entities with similar relations are clustered within specific polar boxes, effectively regularizing the embedding space with structural knowledge.

Experimental Results

The model was trained on the BLINK dataset (9 million Wikipedia mention-entity pairs) and evaluated across six standard benchmarks: AIDA-CoNLL, MSNBC, AQUAINT, ACE2004, CWEB, and WIKI.

State-of-the-Art Performance

DUCK achieved new state-of-the-art results on the MSNBC and ACE2004 benchmarks. Notably, the inclusion of polar box priors improved the base model's performance by up to 7.9 $F_1$ points.

Performance comparison of DUCK against dense retrieval, generative, and type-aware models across standard benchmarks.

Efficiency and Scaling

One of the most striking findings is DUCK's efficiency. With 717 million parameters, DUCK matched the performance of the 13-billion-parameter CM3-Large model. This represents an 18-fold reduction in parameter count while maintaining comparable accuracy, demonstrating that structural priors can compensate for raw model scale.

Conclusion

DUCK demonstrates that infusing dense retrieval models with relational structure via polar box embeddings significantly enhances entity linking performance. By moving away from rigid type labels toward a more fluid "duck typing" definition, the model becomes robust to Knowledge Graph incompleteness. While the model is sensitive to certain hyperparameters like the margin parameter ($\gamma$), its ability to match the performance of generative models 18 times its size marks a significant step toward efficient, high-precision entity disambiguation.

Summary updated

BibTeX
@inproceedings{atzeni2023polar,
  author = {Mattia Atzeni and Mikhail Plekhanov and Frederic 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