Inferensys

Glossary

Neural Coreference

A modern approach to coreference resolution that uses deep neural networks to learn dense vector representations of text spans and pairwise scoring functions, replacing traditional feature-engineered and rule-based systems.
Developer reviewing semantic search engine results on laptop, relevance scores visible, technical search demo.
DEFINITION

What is Neural Coreference?

Neural coreference is the modern deep learning approach to identifying all textual expressions that refer to the same real-world entity, replacing traditional rule-based and feature-engineered systems with learned dense representations.

Neural coreference is an NLP task that uses deep neural networks to resolve which words and phrases in a document point to the same entity. Unlike deterministic rule-based sieve architectures that rely on hand-crafted linguistic features, neural models learn dense span representations and pairwise scoring functions directly from annotated data, enabling end-to-end optimization of both mention detection and coreference linking.

Modern architectures like e2e-coref and SpanBERT-based models compute fixed-length vector embeddings for every candidate text span, then apply mention-ranking models with biaffine attention to score antecedent relationships. These systems often employ higher-order inference to iteratively refine span representations based on predicted coreference chains, capturing transitive reasoning that pairwise classifiers miss.

DEEP LEARNING ARCHITECTURE

Key Characteristics of Neural Coreference

Neural coreference resolution replaces hand-crafted rules and feature engineering with end-to-end learned span representations and scoring functions, enabling models to capture complex syntactic and semantic relationships directly from data.

01

End-to-End Span Detection

Unlike traditional pipeline systems that separate mention detection from coreference linking, neural models jointly learn both tasks. The e2e-coref architecture enumerates all possible text spans up to a maximum length, computes a span representation for each using bidirectional LSTMs or transformers, and scores them for both mention likelihood and coreference linkage simultaneously. This joint optimization eliminates cascading errors where a missed mention in the detection phase permanently breaks a coreference chain.

02

Learned Span Representations

Neural models encode each candidate span into a dense fixed-length vector by attending over its constituent token representations. The canonical approach concatenates:

  • The hidden states of the span's start and end tokens
  • A head-finding attention weighted sum over all tokens in the span
  • An embedding of the span width to capture length priors This representation captures both the internal syntactic structure and semantic content of the phrase, enabling the model to recognize that "the tech giant" and "Apple" refer to the same entity without explicit string matching.
03

Mention-Ranking with Biaffine Scoring

Rather than making independent pairwise coreference decisions, neural systems employ a mention-ranking model that scores all candidate antecedents for each mention and selects the highest-ranked one. The scoring function typically uses biaffine attention—a learned bilinear transformation that computes compatibility between the mention and antecedent span representations. This architecture naturally handles the asymmetry of coreference decisions and allows the model to compare multiple candidates before committing, significantly outperforming earlier mention pair models that classified each pair in isolation.

04

Higher-Order Iterative Refinement

A critical innovation in neural coreference is higher-order inference, where span representations are iteratively updated based on their predicted antecedents. After an initial scoring pass, each span's representation is recomputed by attending over the representations of its top-ranked antecedents. This process repeats for multiple iterations, enabling transitive reasoning: if mention A corefers with B, and B corefers with C, the model can infer that A and C are coreferent even if they share no direct lexical overlap. This mechanism dramatically improves long-range coreference chain consistency.

05

SpanBERT Pretraining

SpanBERT is a transformer pretraining objective specifically designed for span-level tasks like coreference. Unlike standard BERT which masks random individual tokens, SpanBERT masks contiguous spans of tokens and trains the model to predict the masked content using only the boundary tokens' representations. Additionally, it employs a span boundary objective that forces the model to predict each token in the masked span from the boundary representations alone. This pretraining strategy produces representations that are inherently better at capturing phrase-level semantics, yielding significant gains when fine-tuned on coreference benchmarks like CoNLL-2012.

06

Efficient Candidate Pruning

Naively considering all possible spans in a document is computationally prohibitive—a document with n tokens yields O(n²) candidate spans. Neural systems apply aggressive span pruning and antecedent pruning to maintain tractability:

  • Span pruning: A lightweight mention score filters out spans unlikely to be mentions, typically keeping only the top λ spans per token position
  • Antecedent pruning: For each mention, only the K nearest preceding spans are considered as candidate antecedents, exploiting the strong locality prior in coreference These heuristics reduce complexity from quadratic to near-linear while retaining over 95% of gold mentions.
NEURAL COREFERENCE FAQ

Frequently Asked Questions

Clear, technical answers to the most common questions about modern deep learning approaches to coreference resolution, covering architectures, training, and evaluation.

Neural coreference resolution is a deep learning approach to identifying all expressions in a text that refer to the same real-world entity, replacing traditional rule-based and feature-engineered systems with learned dense representations. Instead of relying on hand-crafted syntactic rules or discrete features, neural models encode each candidate mention span into a continuous vector using architectures like SpanBERT or LSTMs. These span representations are then scored pairwise using a mention-ranking model or mention pair model to determine coreference links. The canonical e2e-coref architecture jointly performs mention detection and coreference scoring in an end-to-end fashion, using a head-finding heuristic to extract span representations and a biaffine attention mechanism to compute antecedent scores. Modern systems apply higher-order inference, iteratively refining span representations based on their predicted antecedents to enable transitive reasoning across entire coreference chains. This allows the model to learn that if mention A corefers with B, and B corefers with C, then A must also corefer with C—a property that traditional pairwise classifiers struggle to capture.

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.