Coreference Resolution

Michael BrenndoerferNovember 17, 20264 min read
Language AI HandbookAll chapters
Part 9 of 67Coreference, Discourse, Pragmatics, and Dialogue
Chapter 56Coreference Resolution
Reading section 1 of 14 · Coreference Resolution · 4 minSection 1 of 14 · 4 min

Section 1 of 14 · 4 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Coreference resolution is the part of natural language processing that decides when two expressions in a document point to the same thing. The decision sounds small, almost clerical: mark that this name and that pronoun belong together. Its consequences are not small. When a downstream system uses clusters to combine evidence, it can associate facts about different mentions with the same entity. A relation extractor can aggregate evidence across sentences, a summarizer can avoid repeating itself, a question answering system can follow a chain of references, and a compliance checker can attribute an action to the right person. When the decision is wrong, the same machinery quietly transfers an action, an attribute, or a stance from one entity to another.

Read this report:

Dr. Alvarez briefed Dr. Bhatt on the reactor design. She had flagged the cooling loop in March. Alvarez asked Bhatt to sign off on the design. Bhatt refused. The regulator approved the design on Friday.

Who flagged the cooling loop? Either Dr. Alvarez or Dr. Bhatt could be the referent on this wording alone. Our example annotates the pronoun as Bhatt, using the later refusal to sign off as a cue. A reader could defend the other interpretation, so treat that annotation as an assumption of the example.

Suppose a resolver attaches She to Dr. Alvarez, the subject of the previous sentence. The wrong link places one Bhatt mention in Alvarez’s cluster. In a downstream report that assigns actions through those clusters, the decision can turn “Bhatt flagged the cooling loop” into “Alvarez flagged the cooling loop.”

A downstream error like this is easy to miss. The resulting sentence reads fluently even though it attributes the action to a different person. A reader who does not already know the document has no reason to stop and check which "she" did what.

Coreference

Two mentions are coreferent when they refer to the same entity in a discourse. A coreference resolver groups the document’s detected mentions into entity clusters. A resolver may receive the mention boundaries as inputs or detect them from the document.

The resolver connects three kinds of objects.

  • A mention is a span of text identified by token or character offsets. The half-open token span (0, 2) contains “Dr. Alvarez” in our example.
  • An entity is what the mention refers to: a person in the world of the document. Entities are not in the text.
  • A cluster is a set of mentions that a system claims refer to the same entity. It is a hypothesis about an entity, not the entity itself.

The offsets locate a mention in the document. The entity is the person or thing that the mention refers to, and the cluster records which other mentions the resolver assigns to that entity.

The distinction also explains why coreference evaluation is harder than it first looks. If the task were only to label spans, accuracy would be a natural metric. But the output is a set of sets, and two different partitions can both be partly correct in ways that simple accuracy cannot express. One system can split one true entity into two clusters, another can merge two true entities into one, and a third can do both in different places. A useful metric has to say something about all three cases, and the standard metrics do not agree on what that something should be.

The chapter covers candidate generation, antecedent scoring, clustering, and evaluation. The implementation compares three deterministic linkers on six supplied person spans. Holding those spans fixed lets you check how a single changed link affects the partition, its scores, and the entity a downstream system would associate with the flagging event.

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!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy