Inferensys

Glossary

e2e-coref

A canonical end-to-end neural coreference resolution model by Lee et al. that jointly performs mention detection and coreference scoring using learned span representations.
MLOps engineer reviewing model serving infrastructure on laptop, container orchestration visible, technical workspace.
NEURAL COREFERENCE ARCHITECTURE

What is e2e-coref?

The first end-to-end neural model to jointly perform mention detection and coreference scoring using learned span representations, eliminating the need for separate syntactic parsers or hand-engineered features.

e2e-coref is a canonical neural coreference resolution architecture introduced by Lee et al. that processes raw text directly to produce entity clusters. Unlike prior mention pair models or rule-based sieve approaches, it jointly optimizes mention detection and mention-ranking using a shared span representation computed from bidirectional LSTM hidden states. Each candidate span is scored for mention likelihood, and coreference links are established by ranking all possible antecedents using a learned biaffine attention scoring function.

The model introduced higher-order inference, where span representations are iteratively refined based on their predicted antecedents, enabling transitive reasoning across coreference chains. It uses aggressive span pruning to maintain computational tractability by filtering low-scoring spans before pairwise scoring. Evaluated on the CoNLL-2012 benchmark, e2e-coref established the foundation for subsequent SpanBERT-based and transformer-driven coreference systems, demonstrating that end-to-end learning could outperform traditional deterministic coreference pipelines.

e2e-coref

Key Architectural Features

The canonical end-to-end neural coreference model by Lee et al. (2017) jointly performs mention detection and coreference scoring using learned span representations, eliminating the need for separate syntactic parsers or hand-crafted features.

01

Joint Mention Detection and Coreference

Unlike traditional pipeline systems that separate mention detection from coreference resolution, e2e-coref performs both tasks simultaneously. The model considers all possible spans up to a maximum width, scores each for mention likelihood, and then scores pairs of spans for coreference. This joint approach allows the model to learn that certain spans are better mentions precisely because they participate in coreference chains, and vice versa.

  • Eliminates cascading errors from separate mention detection modules
  • Considers all n-grams up to length L as candidate mentions
  • Uses a shared span representation for both subtasks
02

Learned Span Representations

Each candidate span is encoded into a fixed-length vector by concatenating the bidirectional LSTM hidden states of its first and last tokens, along with an attention-weighted sum over all tokens in the span. An additional feature vector encoding the span's width is appended. This representation captures both boundary information and internal content without relying on syntactic parse trees.

  • Start token embedding: h_start
  • End token embedding: h_end
  • Soft head attention: weighted sum over span tokens
  • Span width feature: learned embedding of span length
03

Mention-Ranking with Biaffine Scoring

Coreference decisions are made using a mention-ranking approach rather than pairwise classification. For each mention, the model scores all candidate antecedents using a learned scoring function and selects the highest-scoring one. The scoring function combines a biaffine attention mechanism with a coarse pairwise feature vector that captures speaker and genre metadata.

  • Score(m, a) = s_m(m) + s_m(a) + s_pair(m, a)
  • s_pair uses a biaffine transformation: span_m^T * W * span_a
  • Includes a dummy antecedent for first mentions or non-coreferent spans
  • Trained with a marginal log-likelihood objective over correct antecedents
04

Higher-Order Iterative Refinement

The model applies iterative span representation updates where each span's embedding is recomputed as a weighted average of its original representation and the representations of its top-scoring antecedents from the previous iteration. This enables transitive reasoning: if mention A corefers with B, and B corefers with C, the model can learn that A should also corefer with C.

  • N iterations of refinement (typically 2-3)
  • Span i at iteration t: f(span_i^(t-1), antecedent_span^(t-1))
  • Enables implicit chain-level reasoning without explicit clustering
  • Improves resolution of long-distance coreference chains
05

End-to-End Training Objective

The model is trained to maximize the marginal log-likelihood of all correct antecedents for each mention. The loss function sums over all mentions and considers the set of all spans that are true coreferent antecedents. This objective naturally handles the case where a mention has multiple correct antecedents (e.g., in a chain) and gracefully manages the dummy antecedent for non-coreferent or first mentions.

  • Loss: sum over mentions of log(sum over true antecedents of exp(score))
  • No explicit negative sampling required
  • Jointly optimizes mention detection and coreference accuracy
  • Trained on the CoNLL-2012 shared task dataset (OntoNotes 5.0)
06

Span Pruning for Computational Efficiency

To manage the quadratic explosion of candidate spans, e2e-coref applies aggressive span pruning after mention scoring. Only the top-k spans by mention score are retained for the coreference scoring phase. Additionally, antecedent pruning restricts each mention to consider only the nearest k antecedents, based on the observation that most coreference links are local.

  • Top-λ spans retained after mention scoring (λ ≈ 0.4 * tokens)
  • Maximum antecedent distance: typically 50-100 mentions back
  • Reduces complexity from O(n^4) to approximately O(n^2)
  • Pruning decisions are learned, not heuristic
E2E-COREF CLARIFIED

Frequently Asked Questions

Clear, technical answers to the most common questions about the canonical end-to-end neural coreference resolution model by Lee et al., which jointly performs mention detection and coreference scoring.

e2e-coref is the first end-to-end neural coreference resolution model that jointly performs mention detection and coreference scoring in a single, fully differentiable framework. Unlike traditional pipeline systems that rely on separate mention detectors and hand-crafted features, e2e-coref considers all possible text spans up to a maximum length as candidate mentions. For each span, it computes a dense span representation by concatenating the learned hidden states of its start and end tokens from a bidirectional LSTM encoder, along with an attention-weighted sum of the tokens within the span. The model then scores every candidate antecedent for each mention using a learned mention-ranking function. A key innovation is the inclusion of an artificial ε antecedent, which allows the model to classify a span as not having any antecedent, effectively performing mention detection and coreference linking simultaneously. The entire system is trained end-to-end to maximize the marginal log-likelihood of the correct antecedent clusters.

ARCHITECTURAL COMPARISON

e2e-coref vs. Traditional Coreference Approaches

Comparing the end-to-end neural model by Lee et al. (2017) against the deterministic sieve (Stanford) and mention-pair classifiers that preceded it.

Featuree2e-coref (Lee et al.)Rule-Based SieveMention-Pair Model

Mention Detection

Jointly learned with coreference scoring

Separate rule-based step

Separate rule-based step

Span Representation

Learned from BiLSTM start/end tokens + head attention

Hand-crafted syntactic features

Lexical and syntactic feature vectors

Scoring Mechanism

Feedforward NN over span pairs

Deterministic rule priority ordering

Binary classifier (SVM or MaxEnt)

Higher-Order Inference

End-to-End Differentiable

Avg. F1 on CoNLL-2012

68.8%

57.2%

60.3%

Error Propagation Risk

Low (joint optimization)

High (cascading sieves)

High (pipeline design)

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.