Inferensys

Glossary

Cross-document Coreference

The NLP task of identifying and clustering mentions of the same real-world entity across a large corpus of separate, unlinked documents to construct unified knowledge bases.
Knowledge engineer constructing knowledge base on laptop, document hierarchy visible, casual office setup.
CORPUS-LEVEL ENTITY RESOLUTION

What is Cross-document Coreference?

Cross-document coreference is the computational task of identifying and clustering textual mentions that refer to the same real-world entity across a collection of separate documents, enabling unified knowledge base construction from heterogeneous sources.

Cross-document coreference (CDC) extends traditional coreference resolution beyond a single document to an entire corpus. While within-document coreference links pronouns like 'she' to 'Angela Merkel', CDC connects 'Merkel' in a news article, 'Angela Dorothea Merkel' in a Wikipedia entry, and 'the former German Chancellor' in a diplomatic cable, unifying them under a single canonical entity identifier. This process is foundational for knowledge base population and multi-document summarization.

The primary challenge is scaling pairwise comparison across millions of mentions while maintaining precision. Systems employ a two-stage pipeline: a candidate generation phase using entity embeddings or inverted indices for efficient recall, followed by a collective entity linking phase that clusters mentions using agglomerative clustering or graph partitioning algorithms. Modern neural approaches leverage pre-trained transformer models to encode mention context and entity descriptions into a shared dense vector space, enabling high-fidelity identity resolution across document boundaries.

MECHANISMS

Key Characteristics of Cross-document Coreference

Cross-document coreference (CDC) extends standard within-document coreference to a corpus scale, clustering millions of entity mentions into a single, unified identity. The following characteristics define its architectural complexity.

01

Global Entity Clustering

Unlike within-document resolution, CDC operates on a corpus-wide scale to merge mentions across thousands of documents. The core mechanism is a clustering algorithm (e.g., hierarchical agglomerative clustering or Chinese Whispers) that groups mentions based on pairwise similarity scores.

  • Input: All extracted mentions from a document collection.
  • Output: A set of clusters, where each cluster represents a unique real-world entity.
  • Challenge: Scaling O(n²) pairwise comparisons to millions of mentions requires blocking and approximate nearest neighbor techniques.
02

Cross-context Disambiguation

CDC must resolve the same surface form to different entities based on document context. The word 'Jordan' might refer to the country in a geopolitics article, the basketball player in a sports report, and a river in a geography paper.

  • Uses document-level topic vectors to weight entity candidates.
  • Leverages temporal signals (publication dates) to constrain entity lifespan.
  • Applies entity linking as a prerequisite step to normalize mentions to a knowledge base ID before cross-document clustering.
03

Multi-source Information Fusion

CDC systems aggregate evidence from heterogeneous sources to build a unified entity profile. A person entity might be referenced by name in one document, by pronoun in another, and by a Twitter handle in a third.

  • Name variants: 'Barack Obama', 'President Obama', 'Obama'.
  • Attributes: Aggregated properties like birth dates, job titles, and affiliations.
  • Relations: Connections to other entities that provide structural constraints for disambiguation.
  • This fusion process is the foundation of Knowledge Base Population (KBP).
04

Singulation and Nil Handling

A critical CDC function is singulation—ensuring that two distinct entities with the same name are not incorrectly merged. The system must also handle nil entities that have no corresponding entry in the target knowledge base.

  • Singulation: Uses biographical attributes (e.g., different birth dates for 'John Smith') to split clusters.
  • Nil prediction: Identifies mentions that refer to entities absent from the KB, preventing false linkage.
  • Confidence scoring: Each cluster assignment carries a probability, allowing downstream systems to threshold based on precision/recall requirements.
05

Streaming and Incremental Resolution

Production CDC systems often operate on real-time document streams rather than static corpora. New documents require incremental cluster updates without full re-computation.

  • Online clustering: Algorithms like threshold-based nearest-neighbor that assign incoming mentions to existing clusters or create new ones.
  • Cluster splitting: A previously merged cluster may need to be divided as new, disambiguating evidence arrives.
  • Temporal decay: Older, less-confident clusters may be pruned to manage storage and computational complexity.
06

Evaluation Metrics

CDC is evaluated using standard coreference metrics adapted for the cross-document scale, primarily B³ F1, CEAF, and MUC. The key metric is Cluster F1, which measures the harmonic mean of precision and recall over entity clusters.

  • B³ (Bagga & Baldwin): Computes precision and recall for each mention, then averages.
  • CEAF (Constrained Entity-Alignment F-Measure): Aligns predicted clusters to gold clusters using a similarity metric.
  • LEA (Link-based Entity-Aware): Designed to resolve the metric bias against large entities present in MUC and B³.
ENTITY RESOLUTION

Frequently Asked Questions

Clear, technical answers to the most common questions about identifying and clustering entities across disparate documents.

Cross-document coreference (CDC) is the natural language processing task of identifying and clustering all textual mentions that refer to the same real-world entity across a collection of separate documents. Unlike within-document coreference, which links 'she' to 'Alice' in a single article, CDC operates at corpus scale. The process typically involves three stages: mention detection to extract all entity references, candidate generation using surface form dictionaries or dense retrieval to propose possible matches, and pairwise or global clustering using entity embeddings and graph-based algorithms to group mentions into coherent clusters. Modern systems leverage pre-trained transformer models to encode mention contexts into dense vectors, then apply agglomerative clustering or spectral clustering to partition the mention space. A critical challenge is the singleton problem—correctly identifying entities that appear only once in the corpus and should not be linked to any other mention.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.