Coreference Resolution › Evaluation
Language AI HandbookAll chapters Evaluation is where coreference punishes casual readers. The three standard metrics measure different things, disagree on the same output, and are usually averaged into a single number that hides the disagreement.
The disagreement is not a bug in the metrics. Each metric encodes a different view of what a coreference partition is for. MUC cares about links between mentions. B-cubed cares about mentions and their local cluster membership. CEAF cares about entities as whole objects. A system that splits an entity and a system that merges two entities can look better or worse depending on which view you adopt.
The Mention Universe
Every metric here is defined over a set of mentions. Gold mentions and system mentions are not the same set. So before you can score anything, you must decide what happens to mentions that appear on only one side.
A supplied-gold setting gives the resolver the reference spans in advance. A predicted-mention setting also measures the effects of missed and extra mentions. Restricting a score to the intersection of detected and gold mentions answers a different question. With unmatched mentions included, the effect depends on the metric. An unmatched singleton adds no direct MUC links, while a missed mention contributes zero to its B³ recall term under the convention below.
The CoNLL-2012 shared task used predicted mentions. Pradhan et al. (2014) later published a reference implementation for scoring predicted partitions. For comparisons, use the scorer and version reported for the benchmark, including its rules for unmatched mentions.
The teaching B³ scorer uses these conventions for unmatched mentions.
- Precision is averaged over response mentions. A response mention with no key partner contributes a precision of zero.
- Recall is averaged over key mentions. A key mention with no response partner contributes a recall of zero.
- An empty response gives precision zero. An empty key gives recall zero. With both sides empty, the scorer returns two zeros and an empty detail table.
Mention-Level Precision and Recall
Before any clustering metric, measure mention detection on its own:
Exact matching requires identical document positions and span endpoints. In the head-based example below, each match pairs two mentions that have the same head token occurrence. “Dr. Alvarez” (0,2) can therefore match “Alvarez” (1,2), because token 1 is the head in both spans. A benchmark can specify its own head-selection and one-to-one alignment rules.
There is also a ceiling effect to keep in mind. If the key excludes singletons, mention recall is measured against a partially annotated target: a system cannot earn credit for recovering a singleton absent from that key. The extra span can reduce precision when the scorer counts it as a false positive.
MUC
MUC (Vilain et al., 1995) is link-based. It asks: of the links the key requires, how many did the response supply, and of the links the response supplies, how many does the key endorse?
Recall, per key entity :
The numerator counts, for each response cluster, the number of links it correctly establishes inside : a cluster containing 3 of 's mentions supplies 2 correct links. Precision is the mirror image, with the roles swapped:
Two properties follow directly from the terms:
- Singleton terms. A size-one cluster contributes zero direct MUC links. Attaching its mention to another cluster can still reduce precision by introducing a link between distinct reference clusters.
- An isolated split. If the key contains one three-mention cluster, splitting it into a pair and a singleton yields recall and precision . In a larger example, the overall precision can change because the split removes a supplied link from the pooled counts.
B-Cubed
B³ (Bagga and Baldwin, 1998) is mention-based. Each response mention contributes a precision term, and each key mention contributes a recall term. The terms use the overlap of the response cluster and the key cluster , treating a missing counterpart as empty.
The corpus precision averages the per-mention precision terms over response mentions. Recall averages the recall terms over reference mentions. Each mention has equal weight in its corresponding mean. A ten-mention cluster therefore contributes ten times the total weight of a singleton cluster.
CEAF
CEAF (Luo, 2005) is entity-based. It aligns key entities with response entities one-to-one, maximizing total similarity, and scores the alignment. The standard similarity for entity-based CEAF is the Dice coefficient:
Let be a one-to-one matching of key and response clusters that maximizes the total similarity . Clusters may be left unmatched.
The denominators sum each side’s self-similarities. For CEAF, every nonempty cluster has Dice self-similarity one, so and count response and key clusters. An unmatched cluster adds no similarity to the numerator. Luo’s mention-based CEAF uses , so its self-similarities sum to mention counts. Identical nonempty partitions score one under either variant. The teaching CEAF helper returns zero on a side with no clusters.
The CoNLL Average
For each language, CoNLL-2012 defined its score as the mean of three F1 values.
To rank closed-track submissions overall, the organizers averaged the English, Chinese, and Arabic scores. A language without a submission contributed zero. If only one component changes, the per-language mean changes by one third of that amount. Different combinations of component scores can yield the same average. Reporting each component makes those differences visible.
A Wrong Attachment and a Wrong Split
Now let us compute. Our running document has six person mentions. The gold annotation puts Alvarez in one cluster and Bhatt in the other, and it decides that "She" in sentence 2 is Bhatt:
PythonIn [9]Expand
# Gold clusters over mention ids. (0,3) = Alvarez; (1,2,4,5) = Bhatt.
GOLD = {0: {0, 3}, 1: {1, 2, 4, 5}}
GOLD_LABELS = {0: "Alvarez", 1: "Bhatt"}Three systems, generated later by code, will produce three different partitions:
- Wrong attachment. "She" moves from Bhatt’s cluster to Alvarez’s cluster. Clusters:
{0,2,3}and{1,4,5}. - Wrong split: "She" is left as a singleton. Clusters:
{0,3},{1,4,5}, and{2}. - Correct:
{0,3}and{1,2,4,5}.
For the wrong attachment, the counts are as follows.
- MUC recall: Alvarez needs 1 link and gets it (2 mentions of the key inside one response cluster). Bhatt needs 3 links and gets 2 (3 of its 4 mentions sit together). So .
- MUC precision: response cluster
{0,2,3}has 2 links, of which 1 is endorsed by the key. Response cluster{1,4,5}has 2 links, both endorsed. So . - B³: mention 2 ("She") sits in a 3-mention cluster with precision and recall . Mentions 0 and 3 have precision and recall . Mentions 1, 4, 5 have precision and recall . Averaging gives precision and recall .
- CEAF: the best alignment is Alvarez→
{0,2,3}with and Bhatt→{1,4,5}with . The sum is , so .
The same attachment yields about 0.83 on CEAF and 0.75 on MUC.
The code below computes all of this, so you can check the arithmetic yourself rather than trusting the prose.
Slices, Singletons, Genres, and Bias
Aggregate scores hide the things that matter most.
- Document length and distance. Report per-bucket. A model can be near-perfect under 100 tokens and near-chance past 1,000.
- Genre. In OntoGUM, pronouns account for 728 of 1,027 mentions in conversation and 340 of 1,803 mentions in news. Report the genre and mention mix alongside each score.
- Annotation differences. Whether singletons are marked, how split antecedents are represented, and whether nominal mentions count all shift the score. Comparisons across corpora are comparisons across conventions.
- Pronoun bias. Zhao et al. (2018) paired Winograd-style sentences with pro- and anti-stereotypical occupation references in WinoBias. Their three baseline systems favored pro-stereotypical resolutions by an average 21.1 F1 points. The combined intervention reduced the gaps for the neural and feature-rich systems. Neither retrained system had a statistically significant gap in the reported test comparisons (Table 3). The feature-rich system still had a significant 1.9-point gap on Type 1 examples in the development set (Table 2).
Bamman, Lewke, and Mansoor (2020) provide a literary coreference benchmark with excerpts from 100 works of English-language fiction.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!