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.
Glossary
Neural Coreference

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Mastering neural coreference requires understanding the architectural components, training paradigms, and evaluation frameworks that underpin modern deep learning approaches to entity linking.
Mention-Ranking Model
The dominant neural architecture that scores all candidate antecedents for a given mention and selects the highest-ranked one. Unlike pairwise models, this approach considers the entire candidate set jointly.
- Uses biaffine attention to compute pairwise scores between mention and antecedent representations
- Enables higher-order inference by iteratively refining span representations based on predicted antecedents
- Outperforms mention-pair models by avoiding independent classification errors
SpanBERT Pre-training
A pre-training method optimized for span-level tasks like coreference resolution. Instead of masking random tokens, SpanBERT masks contiguous spans and predicts them using span boundary representations.
- Trains the model to reason about entire entity mentions rather than individual tokens
- Achieved state-of-the-art results on CoNLL-2012 when combined with e2e-coref
- Span boundary objective forces the model to learn span-level semantics
Higher-Order Inference
An iterative refinement technique where span representations are updated based on the representations of their predicted antecedents. This enables transitive reasoning across coreference chains.
- If mention A corefers with B, and B corefers with C, the model learns that A corefers with C
- Typically implemented through multiple iterations of the mention-ranking scorer
- Critical for resolving long coreference chains spanning multiple sentences
Span Pruning Techniques
Efficiency methods that reduce the candidate mention space before scoring. Neural models consider all possible spans up to a maximum length, creating a quadratic explosion of candidates.
- Span pruning: Filter spans with low mention likelihood scores using a lightweight scorer
- Antecedent pruning: Restrict candidate antecedents by distance, syntactic constraints, or agreement features
- Reduces computational cost from O(n⁴) to O(n³) or lower while maintaining accuracy
CoNLL-2012 Benchmark
The standard evaluation dataset for coreference resolution derived from OntoNotes 5.0. It provides gold-standard annotations across multiple genres including newswire, broadcast, and telephone conversations.
- Evaluates using MUC, B³, and CEAF metrics averaged into the CoNLL F1 score
- Contains annotated coreference chains, named entities, and syntactic parses
- The definitive benchmark for comparing neural coreference architectures
e2e-coref Architecture
The canonical end-to-end neural coreference model by Lee et al. (2017) that jointly performs mention detection and coreference scoring using learned span representations.
- Computes span embeddings by concatenating BiLSTM hidden states of start and end tokens with attention-pooled internal representations
- Uses a head-finding heuristic to identify syntactic heads for feature extraction
- Foundation architecture that subsequent neural coreference systems build upon and improve

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us