# 实体链接

实体链接是一种自然语言处理方法，它将连续文本中的实体提及映射到知识库（如[维基百科](https://www.edgepedia.org/zh/wikipedia)或Wikidata）中对应的条目，当多个候选条目匹配同一表层形式时，选择正确的条目。输出结果既包括标注的文本片段，也包括知识库标识符，例如将提及“巴拉克·奥巴马”解析为Wikidata的QID Q76。<sup>[1](https://journals.sagepub.com/doi/full/10.3233/SW-222986)</sup><sup> • </sup><sup>[2](https://dl.acm.org/doi/10.1145/3795134)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 标注的提及片段加上知识库ID（Wikidata QID、维基百科页面）<sup>[2](https://dl.acm.org/doi/10.1145/3795134)</sup> |
| 流水线阶段 | 提及检测、候选生成、消歧、可选的NIL预测<sup>[1](https://journals.sagepub.com/doi/full/10.3233/SW-222986)</sup> |
| 候选召回 | CrossWikis在截断30个候选时达到93.2%的召回率，而AIDA词典为90.7%<sup>[3](https://ucinlp.github.io/files/papers/entitylinking-tacl15.pdf)</sup> |
| 消歧范围 | 局部（针对每个提及）与全局（文档级一致性）；全局优化是NP难问题，需近似求解<sup>[4](https://link.springer.com/content/pdf/10.1007/s10115-023-02059-2.pdf)</sup> |
| 规模 | 使用双编码器配合最近邻搜索，可针对590万个候选完成链接，每次查询耗时约2毫秒<sup>[5](https://aclanthology.org/2020.emnlp-main.519.pdf)</sup> |
| 多语言覆盖 | BELA覆盖97种语言，索引约1600万个实体；其在Mewsli-9'-test上的端到端F1在不同语言间为15到74<sup>[6](http://arxiv.org/pdf/2306.08896)</sup> |

## 工作原理

实体链接分解为候选生成和基于上下文的消歧两个步骤。候选生成通常使用从维基百科超链接锚文本中导出的提及-实体先验概率 \( p(e \mid m) \)，或使用基于网络抓取中链接频率构建的CrossWikis等资源。<sup>[1](https://journals.sagepub.com/doi/full/10.3233/SW-222986)</sup> 消歧步骤则根据提及的上下文对每个候选进行评分。神经网络系统推断概率分布 \( P(e_{i} \mid m) \)，通常通过对候选做softmax近似，并常通过小型前馈网络与提及-实体先验相结合。<sup>[1](https://journals.sagepub.com/doi/full/10.3233/SW-222986)</sup>

三种信号占主导地位。先验捕获某一表层形式指向各实体的频率；上下文相似度将周围词语与实体描述进行比较；实体相关性，即候选实体与同一文档中链接的其他实体之间的一致性，被认为是链接算法最重要的特征，以至于学习相关性可以被形式化为学习排序问题。<sup>[7](https://psycnet.apa.org/doi/10.1145/2505515.2505711)</sup> 局部方法使用手工设计或学习到的特征独立解析每个提及；全局或集体方法则同时消歧文档中的所有提及。联合优化是NP难问题，因此实际系统对其进行近似，例如从维基百科链接图估计成对相关性，或贪婪地最大化成对一致性分数之和，而非对所有候选组合进行暴力搜索。<sup>[4](https://link.springer.com/content/pdf/10.1007/s10115-023-02059-2.pdf)</sup><sup> • </sup><sup>[3](https://ucinlp.github.io/files/papers/entitylinking-tacl15.pdf)</sup>

## 实现方法

从业者的流水线按顺序运行：提及检测（确定提及边界，通常使用命名实体识别器）、候选生成、排序和NIL处理。<sup>[1](https://journals.sagepub.com/doi/full/10.3233/SW-222986)</sup>

NIL处理针对指称对象在知识库中没有条目的提及。常见策略有四种：将空候选列表视为NIL、对最佳链接分数设阈值、在排序中插入特殊的NIL实体，以及在排序后训练二分类器。<sup>[1](https://journals.sagepub.com/doi/full/10.3233/SW-222986)</sup> spaCy的EntityLinker实现了阈值变体：分数低于可配置阈值的预测被丢弃，如果没有任何预测超过阈值，则该提及链接到NIL。<sup>[8](https://spacy.io/api/entitylinker)</sup>

现成系统包括REL，它在AIDA-CoNLL上训练的网络中将先验概率和上下文相似度与文档级一致性相结合；以及ReFinED，这是阿尤拉及其同事于2022年在arXiv上发表的基于Transformer的端到端链接器，在比较评估中总体F1排名最佳，可从600万或3300万Wikidata实体中提取候选。<sup>[9](https://aclanthology.org/2023.emnlp-main.411.pdf)</sup><sup> • </sup><sup>[10](https://doi.org/10.48550/arxiv.2207.04108)</sup> BLINK提供稠密双编码器检索加交叉编码器重排序。<sup>[5](https://aclanthology.org/2020.emnlp-main.519.pdf)</sup>

## 起源

该任务源于“维基化”（wikification），即自动为文档关键词标注指向维基百科文章的链接。Wikify!系统将其框架化为四个步骤：超文本预处理、关键词提取、面向维基百科页面的词义消歧，以及用新链接重建文档。<sup>[11](https://digital.library.unt.edu/ark:/67531/metadc31001/m2/1/high_res_d/Mihalcea-2007-Wikify-Linking_Documents_to_Encyclopedic.pdf)</sup> 西尔维乌·库切尔赞于2007年引入了基于维基百科数据的大规模命名实体消歧：他的系统从启发式规则和维基百科消歧标记中导出表层形式映射，并通过点积比较实体上下文向量，独立解析每个提及。<sup>[12](https://www.cs.jhu.edu/~mdredze/publications/entity_linking_coling.pdf)</sup> 随后的维基化工作引入了全局方法，利用标题间的语义相关性函数同时消歧文档中的所有提及。<sup>[13](https://cogcomp.seas.upenn.edu/papers/RRDA11.pdf)</sup>

评估基础设施巩固了该领域。AIDA CoNLL-YAGO数据集伴随一种消歧方法，该方法在加权图中结合先验概率、上下文相似度和一致性，通过稠密子图计算近似最优联合映射。<sup>[2](https://dl.acm.org/doi/10.1145/3795134)</sup> TAC实体链接任务将文档中的名称字符串映射到包含超过80万个维基百科衍生实体的知识库中的实体，并要求系统对没有匹配实体的目标返回NIL；库切尔赞系统的扩展版本在TAC 2011测试数据上达到86.8%的准确率。<sup>[14](https://tac.nist.gov/publications/2011/participant.papers/MS_MLI.proceedings.pdf)</sup>

## 变体

大多数已发表的系统仅做提及级处理：它们假设提及边界来自外部NER组件，仅执行消歧，只有少数系统联合检测和消歧。<sup>[1](https://journals.sagepub.com/doi/full/10.3233/SW-222986)</sup> 真正的端到端神经系统随后出现：科利察斯、加内亚和霍夫曼在2018年arXiv论文中生成所有片段，并用嵌入相似度加全局层进行消歧。<sup>[15](https://doi.org/10.48550/arxiv.1808.07699)</sup> 加内亚和霍夫曼此前在2017年arXiv上发布的联合消歧模型中将局部神经注意力与全局一致性相结合。<sup>[16](https://doi.org/10.3929/ethz-b-000225539)</sup> 陈及其同事于2019年提出了一种在共享BERT编码器上执行联合提及检测和消歧的单遍端到端架构。<sup>[17](https://doi.org/10.48550/arxiv.1911.03834)</sup>

稠密检索系统使用双编码器：吴及其同事在2019年arXiv论文中描述的BLINK，用两个BERT Transformer分别嵌入提及上下文和实体描述，通过点积对候选评分，然后用交叉编码器对排名靠前的候选（最多100个）重排序，[交叉编码器](https://www.edgepedia.org/zh/cross-encoder)拼接提及和实体文本；交叉编码器通常优于[双编码器](https://www.edgepedia.org/zh/bi-encoder)，但计算成本更高。<sup>[5](https://aclanthology.org/2020.emnlp-main.519.pdf)</sup><sup> • </sup><sup>[1](https://journals.sagepub.com/doi/full/10.3233/SW-222986)</sup> 生成式系统则直接生成实体名称：德曹及其同事在2020年arXiv论文中提出的GENRE，从左到右逐词元生成唯一实体名称，使用约束解码强制输出落入候选集，其实体索引所需内存仅为BLINK的十四分之一。<sup>[18](https://doi.org/10.48550/arxiv.2010.00904)</sup> 其多语言扩展mGENRE由德曹及其同事于2021年在arXiv上发表，将相同方法应用于跨语言场景。<sup>[19](https://doi.org/10.48550/arxiv.2103.12528)</sup> BELA是一种单遍多语言双编码器，在XLM-R-large上带有提及检测、消歧和拒绝头，使用FAISS HNSW索引和可调拒绝阈值进行NIL控制。<sup>[6](http://arxiv.org/pdf/2306.08896)</sup> 基于图的集体模型如NCEL在候选一致性结构上添加[图卷积网络](https://www.edgepedia.org/zh/graph-convolutional-network)，KBPearl将消歧形式化为加权语义图上的稠密子图问题。<sup>[4](https://link.springer.com/content/pdf/10.1007/s10115-023-02059-2.pdf)</sup><sup> • </sup><sup>[2](https://dl.acm.org/doi/10.1145/3795134)</sup> 零样本变体在数据丰富的领域训练，仅使用实体描述应用于其他领域。<sup>[1](https://journals.sagepub.com/doi/full/10.3233/SW-222986)</sup>

## 应用

将文本锚定到知识库标识符使下游系统能够将文档视为无歧义实体的集合；在一次问答评估中，带有实体链接模块的翻译模型在QALD 9上达到67.9%的准确率，而无此模块时为50%，提升了17.9个百分点。<sup>[20](https://ceur-ws.org/Vol-3510/paper_nlp_6.pdf)</sup>

## 局限与替代方案

两个结构性挑战是词汇缺口（词典缺少文本中使用的表层形式）和歧义（一个表层形式映射到多个实体）。<sup>[20](https://ceur-ws.org/Vol-3510/paper_nlp_6.pdf)</sup> NIL实体加剧了这一问题：现实世界的指称对象可能根本不在知识库中，而TAC KBP还要求对同一未见实体的所有提及进行聚类。<sup>[12](https://www.cs.jhu.edu/~mdredze/publications/entity_linking_coling.pdf)</sup><sup> • </sup><sup>[3](https://ucinlp.github.io/files/papers/entitylinking-tacl15.pdf)</sup> 长尾实体受知识库稀疏性影响：约10%的Wikidata条目缺少描述，虽然约7000万个标签和别名指向唯一条目，但290万个不指向唯一条目，造成固有歧义。<sup>[21](https://jens-lehmann.org/files/2022/swj_english_entity_linking.pdf)</sup> 知识库也会漂移：BELA的维基百科快照索引遗漏了8%已过时的AIDA实体，2025年多体裁数据集中约5%的链接目标晚于BLINK的2019年转储，被其拒绝。<sup>[6](http://arxiv.org/pdf/2306.08896)</sup><sup> • </sup><sup>[22](https://www.nature.com/articles/s41597-025-05274-4)</sup> 即使强大的系统也会在转喻上出错；ReFinED在转喻提及上的平均错误率为30.8%。<sup>[9](https://aclanthology.org/2023.emnlp-main.411.pdf)</sup> 在一次受控复现中，ReFinED在端到端系统中总体F1最佳，而GENRE的实体识别F1在各基准上平均差8.5%，尽管其消歧准确率高且假阳性提及最少。<sup>[9](https://aclanthology.org/2023.emnlp-main.411.pdf)</sup>

大型语言模型作为独立链接器表现不佳：未经专门训练时，它们经常无法生成准确的知识库实体名称，GPT-4在AIDA testa上零样本达到40.4，而监督系统超过90。<sup>[23](http://dl.acm.org/doi/10.1145/3746252.3761156)</sup><sup> • </sup><sup>[24](https://www.sota2.com/research/task/entity-linking)</sup> LLM更适合作为上下文增强器。LLMAEL是一种即插即用、无需调优的三阶段方法（上下文增强、数据融合、EL执行），使用Llama-3-70b-instruct生成实体描述以供给专门的链接模型；据报告，在6个基准上相比此前的无调优LLM集成，准确率绝对提升8.9个百分点，在中低频和极低频范围的长尾实体上改进最大。<sup>[23](http://dl.acm.org/doi/10.1145/3746252.3761156)</sup> 两个负面结果界定了设计空间：使用LLM对检索到的候选重排序没有帮助，且不如直接LLM链接有效，因为相似的候选名称会混淆模型；而指令微调的生成式链接器如INSGENEL相比早期BART微调的生成式工作平均提升+6.8 F1，其检索卸载变体在轻微性能损失下将语言模型调用次数和运行时间降至原来的约四分之一。<sup>[23](http://dl.acm.org/doi/10.1145/3746252.3761156)</sup><sup> • </sup><sup>[25](https://openreview.net/pdf?id=qnO9IRNA9d)</sup> 基于提示的框架如丁、曾和韦宁格在2024年arXiv论文中提出的ChatEL探索了同一方向。<sup>[26](https://doi.org/10.48550/arxiv.2402.14858)</sup>

该问题没有标准定义：维基化将名词短语链接到维基百科实体，而命名实体链接仅针对命名实体，这妨碍了公平比较；一些工作将实体链接仅视为消歧（命名实体消歧），另一些则视为NER加消歧的组合。<sup>[3](https://ucinlp.github.io/files/papers/entitylinking-tacl15.pdf)</sup><sup> • </sup><sup>[27](https://www.sciencedirect.com/science/article/abs/pii/S0306437920300958)</sup> 开放问题在综述中反复出现：大多数研究集中在NER方面，很少有系统覆盖整个流水线，<sup>[4](https://link.springer.com/content/pdf/10.1007/s10115-023-02059-2.pdf)</sup> 在一项基于Wikidata的链接系统综述中，只有一篇出版物涉及不可链接（NIL）预测任务，尽管NER检测到的提及可能缺少知识库实体，因此在[知识](https://www.edgepedia.org/zh/knowledge)图谱无关的设置中NIL检测是必需的。<sup>[2](https://dl.acm.org/doi/10.1145/3795134)</sup><sup> • </sup><sup>[22](https://www.nature.com/articles/s41597-025-05274-4)</sup>

## References

1. [Neural entity linking: A survey of models based on deep learning (Alam et al., Semantic Web journal, 2022)](https://journals.sagepub.com/doi/full/10.3233/SW-222986)
2. [Entity Linking with Wikidata: A Systematic Literature Review (ACM Computing Surveys)](https://dl.acm.org/doi/10.1145/3795134)
3. [Entity Linking: Find the Right Entity in Wikipedia (VINCULUM, TACL)](https://ucinlp.github.io/files/papers/entitylinking-tacl15.pdf)
4. [Entity linking for English and other languages: a survey (Knowledge and Information Systems, 2023)](https://link.springer.com/content/pdf/10.1007/s10115-023-02059-2.pdf)
5. [Scalable Zero-shot Entity Linking with Dense Entity Retrieval (Wu et al., BLINK, EMNLP 2020)](https://aclanthology.org/2020.emnlp-main.519.pdf)
6. [BELA: Bi-encoder Entity Linking Architecture / Multilingual End-to-End Entity Linking (arXiv 2306.08896, 2023)](http://arxiv.org/pdf/2306.08896)
7. [Learning relatedness measures for entity linking (Ceccarelli et al., CIKM 2013)](https://psycnet.apa.org/doi/10.1145/2505515.2505711)
8. [EntityLinker · spaCy API Documentation](https://spacy.io/api/entitylinker)
9. [A Fair and In-Depth Evaluation of Existing End-to-End Entity Linking Systems (EMNLP 2023)](https://aclanthology.org/2023.emnlp-main.411.pdf)
10. [Ayoola, Tom and colleagues (2022). ReFinED: An Efficient Zero-shot-capable Approach to End-to-End Entity Linking. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2207.04108)
11. [Wikify! Linking Documents to Encyclopedic Knowledge (Mihalcea and Csomai, CIKM 2007)](https://digital.library.unt.edu/ark:/67531/metadc31001/m2/1/high_res_d/Mihalcea-2007-Wikify-Linking_Documents_to_Encyclopedic.pdf)
12. [Entity Disambiguation for Knowledge Base Population (Dredze et al., COLING 2010)](https://www.cs.jhu.edu/~mdredze/publications/entity_linking_coling.pdf)
13. [Local and Global Algorithms for Disambiguation to Wikipedia (Ratinov et al., GLOW)](https://cogcomp.seas.upenn.edu/papers/RRDA11.pdf)
14. [TAC Entity Linking by Performing Full-document Entity Extraction and Disambiguation (Microsoft, TAC 2011)](https://tac.nist.gov/publications/2011/participant.papers/MS_MLI.proceedings.pdf)
15. [Kolitsas, Nikolaos, Ganea, Octavian-Eugen, Hofmann, Thomas (2018). End-to-End Neural Entity Linking. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1808.07699)
16. [Ganea, Octavian-Eugen, Hofmann, Thomas (2017). Deep Joint Entity Disambiguation with Local Neural Attention. arXiv (Cornell University).](https://doi.org/10.3929/ethz-b-000225539)
17. [Chen, Haotian and colleagues (2019). Contextualized End-to-End Neural Entity Linking. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1911.03834)
18. [De Cao, Nicola and colleagues (2020). Autoregressive Entity Retrieval. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2010.00904)
19. [De Cao, Nicola and colleagues (2021). Multilingual Autoregressive Entity Linking. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2103.12528)
20. [Challenges of Entity Linking in KGQA datasets (CEUR workshop proceedings)](https://ceur-ws.org/Vol-3510/paper_nlp_6.pdf)
21. [Survey on English Entity Linking on Wikidata: Datasets and approaches (Semantic Web journal)](https://jens-lehmann.org/files/2022/swj_english_entity_linking.pdf)
22. [Gold standard, multi-genre dataset for named entity recognition and linking (Scientific Data, 2025)](https://www.nature.com/articles/s41597-025-05274-4)
23. [LLMAEL: Large Language Models are Good Context Augmenters for Entity Linking (CIKM 2025)](http://dl.acm.org/doi/10.1145/3746252.3761156)
24. [Entity Linking research benchmarks (SOTA2 leaderboard)](https://www.sota2.com/research/task/entity-linking)
25. [Instructed Language Models with Retrievers Are Powerful Entity Linkers (INSGENEL)](https://openreview.net/pdf?id=qnO9IRNA9d)
26. [Ding, Yifan, Zeng, Qingkai, Weninger, Tim (2024). ChatEL: Entity Linking with Chatbots. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2402.14858)
27. [Towards holistic Entity Linking: Survey and directions (Information Processing & Management)](https://www.sciencedirect.com/science/article/abs/pii/S0306437920300958)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Natural language processing › NLP tasks and methods › Information extraction

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/entity-linking

English original: https://www.edgepedia.org/entity-linking
