Entity Linking — Named Entity Disambiguation

Machine Learning
Introduced by
Milne & Witten
Year
2008
Type
NLP knowledge-base grounding task

What does it do?

Entity linking is a natural-language-processing task that matches ambiguous entity mentions in text, such as people, places and organisations, to the correct record in a knowledge base such as Wikidata, DBpedia, or a domain dictionary.

Milne and Witten (2008) describe a machine-learning approach to cross-referencing documents with Wikipedia, and neural methods, surveyed by Sevgili and colleagues (2022), have since become prominent. The task grounds free text in structured, unambiguous references that are used in knowledge-graph construction and multi-source text analysis.

The intuition behind the method

The same word can refer to many different things — "Paris" might be a city, a person, or a brand. A human resolves this from context, but a machine sees only a string. Entity linking takes each recognised mention, gathers the possible real-world entities it could mean, and uses the surrounding text to decide which one is intended, then attaches a stable identifier from a knowledge base so that downstream systems know exactly which entity the text is talking about.

History

Milne and Witten (2008) describe automatically cross-referencing documents with Wikipedia, using machine learning both to identify significant terms and to disambiguate them to the appropriate articles. Later work moved toward neural models, which Sevgili and colleagues (2022) survey as a general architecture with candidate generation, mention-context encoding and entity ranking as components.

When to use it

Entity linking fits when your text contains named entities whose surface names are ambiguous, you can reach a target knowledge base whose records cover those entities, and you need a stable identifier for each entity. It is useful for building knowledge graphs and for aligning the same entity across several text sources. It is not the right choice when the target knowledge base does not cover your domain, because most mentions would then be unlinkable. It is also unnecessary when names are unambiguous or when you only need entity type labels, since recognition alone provides those.

Limitations and considerations

  • Linking is only as good as the upstream mention detection and candidate retrieval; a mention that is missed or wrongly bounded never reaches disambiguation.
  • Disambiguation quality depends on the context available, so short mentions with little surrounding text leave few cues for choosing between candidates.
  • Entities that are missing from the knowledge base cannot be linked, and the basic pipeline resolves each mention largely on its own. Document-level coherence needs a global linking step, which some neural models provide, as Sevgili and colleagues (2022) describe.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Gives each mention a stable knowledge-base identifier, so that two occurrences of the same entity in different documents can be treated as the same referent.
  • Because candidates are scored against their context, the same surface name can be resolved to different records in different sentences.
  • Linked records carry their own relations to other entities in the knowledge base, which knowledge-graph construction can reuse.

Applications

  • Constructing knowledge graphs by grounding text entities to structured records.
  • Aligning and merging entities mentioned across multiple text sources.
  • Powering entity-centric search and question answering over document collections.
  • Enriching text analysis with stable references to people, places, and organisations.

How it works

How it works

1

This first stage identifies the spans of text that refer to entities, such as people, places and organisations, and marks them as mentions to be resolved. It is optional when the input already has recognised entities, which is the input described for this method, so in practice it is often supplied by an earlier named-entity-recognition stage. The core of the pipeline is candidate retrieval, disambiguation and linking. Some systems detect mentions and disambiguate them jointly rather than in sequence, as the survey by Sevgili and colleagues (2022) notes.

2

For every mention, a set of candidate records is retrieved from the target knowledge base, such as Wikidata, DBpedia, or a domain dictionary. Retrieval usually matches the mention's surface form against names and aliases in the knowledge base, so a spelling variant or an unlisted alias can cause the correct record to be missed. A single surface form can map to many possible entities, so this stage assembles all plausible referents before any choice is made.

3

The correct candidate is selected by scoring each candidate against the context around the mention. Because the same name can denote different entities, the score draws on the words and on other linked entities near the mention. Earlier systems relied on hand-designed features, whereas neural systems learn representations of the mention context and rank candidates, as described by Sevgili and colleagues (2022).

4

Each mention is connected to its chosen knowledge-base record, which is recorded as a stable identifier such as a Wikidata URL. A mention for which no suitable record exists in the knowledge base should be marked as NIL rather than forced onto a wrong candidate. Linked mentions give knowledge-graph and cross-source analyses an unambiguous reference to rely on.

Common pitfalls

  • Treating the candidate list as final: if the correct referent is not among the candidates, because of spelling variants or missing aliases, disambiguation cannot recover it.
  • Forcing a link for a NIL mention, which is an entity absent from the knowledge base, injects an incorrect identifier into downstream analysis.
  • Choosing a knowledge base that does not cover the entities in your text, such as a general base for a specialised domain, leaves many mentions unlinkable.
  • Ignoring context during disambiguation collapses distinct entities that share the same surface name.

Frequently asked questions

How is entity linking different from named-entity recognition?

Named-entity recognition finds and labels the spans that are entities (this is a person, that is a place). Entity linking takes those mentions and decides which specific real-world entity each one refers to, attaching a unique knowledge-base identifier. Linking is normally applied to mentions that recognition has already marked, although some systems perform detection and disambiguation jointly, as the survey by Sevgili and colleagues (2022) describes.

Which knowledge base should I link against?

Common choices are Wikidata and DBpedia for general entities, or a domain dictionary when your text covers a specialised field. The base must be accessible and cover the entities in your text; a base that lacks your domain's entities leaves many mentions unlinkable.

What happens to an entity that is not in the knowledge base?

It cannot be linked to a record. Such NIL mentions should be handled explicitly, marked as out-of-base rather than forced onto an incorrect candidate, which would inject errors into downstream analysis.

Why is disambiguation necessary if the name is already recognised?

A single name can denote many entities; the same surface form can point to different people, places, or organisations. Disambiguation uses the surrounding context to choose the single intended referent, which is the core of what entity linking adds beyond recognition.

Related methods

Sources

  1. Milne, D. & Witten, I.H. (2008). Learning to Link with Wikipedia. CIKM (Proceedings of the 17th ACM Conference on Information and Knowledge Management).

    Open DOI reference
  2. Sevgili, O., Shelmanov, A., Arkhipov, M., Panchenko, A. & Biemann, C. (2022). Neural Entity Linking: A Survey of Models Based on Deep Learning. ACM Computing Surveys.

    Open DOI reference