Entity Linking Explained: Connect Names to Knowledge-Base IDs
Learn how entity linking resolves ambiguous names to knowledge-base records, how it differs from named-entity recognition, and how to check results and evaluation rules.
Entity linking (EL) finds expressions such as people, companies, or places in text and connects each mention to a unique identifier in a knowledge base (KB). It goes beyond recognizing a name and its type: it answers which specific record the mention refers to. In “Apple announced a new iPhone,” context points to the company; in “An apple fell from the tree,” it points to the fruit.
How it differs from NER
Named-entity recognition (NER) finds the span of a name and assigns a type such as person, organization, or place. Entity linking selects a target among KB entries and assigns its identifier. A system can perform these steps separately or predict them jointly.
| Text | NER output | Linking decision |
|---|---|---|
| “Apple announced a new iPhone.” | Apple — organization/company | The company record in the selected KB |
| “An apple fell from the tree.” | The task may not label apple as a named entity | The fruit record only if the task links common concepts; otherwise, leave it unlinked |
This is an illustrative example, not a model result. EL tasks do not all treat common nouns, overlapping mentions, pronouns, or descriptive phrases the same way. Check the annotation policy before comparing systems.
How a system chooses a record
A typical explanation breaks the decision into stages, although implementations differ:
**Find the mention span.** Mark the expression’s start and end without accidentally including surrounding words.
**Gather candidates.** Use the mention, aliases, names, or KB descriptions to retrieve plausible records. If the correct record is absent, later ranking cannot select it.
**Rank using context.** Compare the surrounding sentence and document topic with each candidate. “Announced a new iPhone” supports the company; “fell from the tree” supports the fruit. Some systems also use consistency among other mentions in a document.
**Return an ID or abstain.** Output the chosen KB identifier, or withhold a link when no candidate is reliable. Whether the system should return NIL or abstain depends on the task.
Some models jointly learn mention detection and entity selection. This can let the likely target inform the mention boundary, but a boundary error can still lead to a wrong link. Inspect the two error types separately.
Specify the knowledge base and policy
Results depend on the chosen KB. Wikidata, Wikipedia, and a medical vocabulary differ in coverage, identifiers, descriptions, and update schedules. A name can map to different IDs—or to no entry—when the target KB changes. Specify the KB and version/update policy, and make sure downstream search or QA uses the same ID scheme.
Also define which mentions count: products, laws, events, common nouns, nested names, pronouns, and descriptive phrases may be included or excluded. Research has found substantial variation in these conventions, so differences in system outputs may reflect policy as well as model quality.
Evaluate both stages
Evaluation data should specify the correct mention span and KB ID. Check separately whether the system found the expression and whether it chose the right record. For candidate-based systems, measure candidate recall too: this distinguishes a missing correct candidate from a ranking mistake. Align policies for NIL cases, overlapping spans, and common nouns before comparing scores.
Entity linking connects text to structured records for search, question answering, knowledge-base construction, and relation extraction. It can fail when aliases are missing, the KB is out of date, context is weak, or an ambiguous popular entity is chosen by default. For high-impact uses, set confidence thresholds, allow abstention, and review consequential links.
For the preceding task—finding and typing name spans—see Named Entity Recognition (NER).
References
[Kolitsas, Ganea, and Hofmann (2018), End-to-End Neural Entity Linking](https://aclanthology.org/K18-1050/)
[Rosales-Méndez, Hogan, and Poblete (2019), Fine-Grained Evaluation for Entity Linking](https://aclanthology.org/D19-1066/)
[Ayoola et al. (2022), ReFinED: An Efficient Zero-shot-capable Approach to End-to-End Entity Linking](https://aclanthology.org/2022.naacl-industry.24/)
[spaCy documentation: Entity Linking](https://spacy.io/usage/linguistic-features#entity-linking)