Problemcore
Coreference resolution
Also called coreference, anaphora resolution.
Group the mentions in a text into clusters that refer to the same entity, such as a name, a description and a pronoun.
Coreference resolution finds which expressions in a text refer to the same thing. In "Marie Curie moved to Paris. There she met Pierre Curie and married him", it groups "Marie Curie" with "she", "Paris" with "There", and "Pierre Curie" with "him". Each group is an entity, and the expressions are its mentions. The task joins the names found by named entity recognition with descriptions ("the young student") and pronouns, so that later steps such as relation extraction and entity linking see every place where an entity occurs. It is hard because the clues are spread over the text and sometimes need world knowledge, and because a decision about one pair of mentions limits the decisions about the others: the output must be a consistent grouping.
In plain words
Underline every name, description and pronoun in a text. Then put underlined phrases into groups, so that the phrases in one group all talk about the same person, place or thing. A pronoun such as "she" usually goes with a person mentioned shortly before, of the same gender and number. A name repeated later ("Curie") goes with the earlier full name. A description ("the scientist") needs knowledge about the entity. The groups must be consistent: if A goes with B and B goes with C, then A goes with C. Phrases that talk about something mentioned only once stay alone.
Definition
Input. A document of tokens . In the classic form, also the set of mentions, each a span in fencepost indices, so that covers the tokens . In the end-to-end form the system finds the mentions itself.
Output. A partition of the mentions into clusters, one cluster per entity. A cluster with one mention is a singleton.
Antecedent form. Order the mentions by position. An equivalent output gives each mention either one earlier mention, its antecedent, or none. The links form a forest, and its trees are the clusters. Many forests give the same partition, so methods that predict antecedents must not be scored on the exact links.
Coreference and anaphora. An anaphor is an expression whose meaning depends on an earlier expression. Coreference and anaphora overlap but differ. Two full names can corefer with no anaphor ("Barack Obama ... Obama"). And an anaphor need not corefer with its antecedent: in "Every student brought his book", "his" depends on "every student" but does not refer to one fixed person, and in "I lost my pen and bought a new one", "one" does not refer to the lost pen. Coreference data sets mark only the identity relation.
Score. The data sets of the CoNLL-2011 and CoNLL-2012 shared tasks, from OntoNotes, are the usual benchmark. The official CoNLL score is the mean of the F1 values of three metrics (Pradhan et al. 2011, 2012):
- MUC (Vilain et al. 1995) counts the links needed to join each gold cluster, and ignores singletons.
- B-cubed averages precision and recall over mentions.
- CEAF-e aligns gold and predicted clusters one to one with the best total similarity, an assignment problem solved by the Hungarian algorithm.
With predicted mentions, the gold and predicted partitions cover different sets, and the reference scorer of Pradhan et al. (2014) fixes how each metric handles this. OntoNotes does not mark singletons, so a system must also learn which mentions to leave out.
Variants
- Pronoun resolution: find the antecedent of each third person pronoun only, as the Hobbs algorithm does.
- Entity coreference with given mentions, as in the MUC-6 and MUC-7 tasks, or end-to-end with mentions found by the system, as in CoNLL-2012.
- Event coreference: group the mentions of the same event, such as "the attack" and "it happened".
- Cross-document coreference: group mentions of the same entity across many documents; with a knowledge base this meets entity linking.
- Bridging: link a mention to an earlier one that it is related to but not equal to, as "the door" to "a house".
- Commonsense pronoun tests: pairs of sentences that differ in one word and need world knowledge, in the style of Winograd's example "The city councilmen refused the demonstrators a permit because they feared violence", where "they" changes from the councilmen to the demonstrators if "feared" becomes "advocated".
Examples
Tokens: "Marie Curie moved to Paris in 1891 . There the young Polish student met Pierre Curie . She married him in 1895 ." The mentions and gold clusters are:
| cluster | mentions (fencepost spans) |
|---|---|
| Marie Curie | "Marie Curie" , "the young Polish student" , "She" |
| Paris | "Paris" , "There" |
| Pierre Curie | "Pierre Curie" , "him" |
| 1891 | "1891" , a singleton |
| 1895 | "1895" , a singleton |
A system that links "Pierre Curie" to "Marie Curie", because of the shared surname, merges the third cluster into the first. That is one wrong decision of a left-to-right linker, but it adds six wrong pairs of mentions, two times three.
Gender and number do not always decide: in "John told Bill that he had won", "he" can be either man, and readers use the context.
Known algorithms
- Syntactic pronoun methods: the Hobbs algorithm walks parse trees in a fixed order (Hobbs 1978). A heuristic, and a strong baseline for pronouns.
- Discourse methods: the algorithm of Brennan, Friedman and Pollard (1987) picks the antecedents that give the most preferred transition of centering theory. Salience methods, such as Lappin and Leass (1994), keep a score per entity that grows with each mention in a strong position and decays with distance.
- The mention-pair model: a classifier decides for each pair whether it corefers, and a linker builds clusters. Soon, Ng and Lim (2001) report MUC F1 of 62.6 on MUC-6 and 60.4 on MUC-7 (measurements).
- Mention ranking and entity models: rank all candidate antecedents of a mention together, or compare a mention with the partial cluster built so far.
- Rule-based sieves: a sequence of deterministic passes from the most precise rule (exact string match) to the least precise (pronouns), each pass merging clusters.
- End-to-end span ranking: the span-ranking model of Lee et al. (2017) scores every span up to a width as a mention and ranks its antecedents, with no parser. It reached a CoNLL F1 of 67.2 with one model and 68.8 with an ensemble on the CoNLL-2012 English test set (measurements). Later models keep this design with pretrained encoders such as BERT.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Hobbs algorithm | O(n h) worst | O(n) extra | deterministicnot exactofflineiterative | 1 language |
| Mention-pair coreference model | O(n^2 d) worst | O(n) extra | deterministicnot exactonlineiterative | 1 language |
| End-to-end span-ranking coreference | O(n w log(n w) + n^2 w + n k) worst | O(n w + n k) extra | deterministicnot exactofflineiterative | 1 language |
Bounds
- A set of mentions has partitions, the Bell number, and antecedent forests, since mention has choices (none or one of the earlier mentions). Both counts are theorems; both grow faster than for every constant , so no method enumerates them.
- Scoring all pairs of mentions takes classifier calls, and left-to-right linking with these scores takes time (a theorem, by counting).
- Finding the partition that agrees best with signed pair scores is correlation clustering, which is NP-hard (Bansal, Blum and Chawla 2004, a theorem). So exact global clustering from pair scores is intractable in the worst case, and systems use greedy linking, ranking or approximation.
- In the end-to-end form, a document of tokens has spans of width at most , and pairs of spans. Span-ranking models therefore prune the spans to and keep at most a fixed number of antecedents per span.
Reductions
- Coreference with pair scores reduces to correlation clustering, or to agglomerative clustering with a stopping threshold.
- The antecedent form turns the clustering into one ranking decision per mention; the transitive closure of the links, computed with a disjoint set structure, gives the clusters.
- Mention detection reduces to span classification, like nested named entity recognition, but with pronouns and descriptions as well as names.
- Cross-document coreference with a knowledge base reduces to entity linking plus clustering of the mentions linked to no entry.
Applications
- Information extraction: relation and event extraction must know that "he" in one sentence is the person named in another.
- Question answering and reading comprehension: answers often sit in a sentence that uses only a pronoun for the entity asked about.
- Summarization: a summary that keeps a sentence with "she" must make sure the reader can tell who she is.
- Machine translation: the gender of a pronoun in the target language can depend on its antecedent.
References
- Wee Meng Soon, Hwee Tou Ng and Daniel Chung Yong Lim, A machine learning approach to coreference resolution of noun phrases, Computational Linguistics 27(4), 2001, pages 521 to 544, the learned mention-pair model and its MUC-6 and MUC-7 results
- Vilain et al. 1995, the MUC link-based recall and precision
- Pradhan et al. 2011, the OntoNotes coreference annotation, with no singleton mentions, and the official score
- Pradhan et al. 2012, the English, Chinese and Arabic data and the official score, the mean of the MUC, B-cubed and CEAF-e F1 values
- Sameer Pradhan, Xiaoqiang Luo, Marta Recasens, Eduard Hovy, Vincent Ng and Michael Strube, Scoring coreference partitions of predicted mentions: a reference implementation, ACL 2014, pages 30 to 35, the reference scorer for MUC, B-cubed and CEAF with predicted mentions
- Nikhil Bansal, Avrim Blum and Shuchi Chawla, Correlation clustering, Machine Learning 56, 2004, pages 89 to 113, the NP-hardness of correlation clustering on complete graphs with positive and negative edges
- Kenton Lee, Luheng He, Mike Lewis and Luke Zettlemoyer, End-to-end neural coreference resolution, Proceedings of EMNLP 2017, pages 188 to 197, the span-ranking model and its CoNLL-2012 English test results
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 2AK9Q7 Edit this page History Report an error Markdown