Linguistic Structure/Coherence and Discourse Structure

Lesson 6.101,669 words

Coherence and Discourse Structure

Coherence is what makes a run of sentences a discourse rather than an arbitrary collection. This lesson develops coherence relations and Rhetorical Structure Theory trees, discourse-structure parsing, Centering and the entity grid for entity-based coherence, and representation-learning models of local coherence, measured in part over the coreference chains recovered in the companion lesson.

╌╌╌╌

This builds on coreference resolution, which recognized one entity under its many names across a text. Coreference is only the entity half of tracking a discourse; the other half is what makes a sequence of sentences hang together at all — the subject of this lesson.

Discourse: what makes a text cohere

Language comes in collocated, structured groups of sentences — a discourse — and coherence is the relationship among sentences that separates a real discourse from a random pile.1 Compare Hobbs's minimal pair:

(a) John took a train from Paris to Istanbul. He likes spinach. (b) Jane took a train from Paris to Istanbul. She had to attend a conference.

(a) is incoherent — what has spinach to do with train trips? — while (b) coheres because the second sentence gives a reason for the first.1 That readers strain to find a connection in (a) shows coherence is something comprehension actively constructs. Real discourses are coherent in three local ways and one global way:1

KindWhat ties the text togetherModel
Relationalcoherence relations between clauses (Reason, Elaboration, …)RST, PDTB
Entity-basedthe discourse stays about the same salient entitiesCentering, entity grid
Topicalnearby sentences share a topic and vocabulary (lexical cohesion)TextTiling, embeddings
Globalconventional structure of a genre (Methods/Results, plot)discourse structure

Coherence relations

A coherence relation is a structured link between two spans of text.2 The dominant model is Rhetorical Structure Theory (RST). RST relations hold between a nucleus (central, independently interpretable) and a satellite (peripheral, interpretable only relative to the nucleus); some symmetric relations hold between two nuclei.2 A few examples:

RelationNucleus / satelliteExample
ReasonNUC action, SAT its reasonJane took a train. / She had to attend a conference.
ElaborationSAT adds detailDorothy was from Kansas. / She lived in the prairies.
EvidenceSAT convinces of NUCKevin must be here. / His car is parked outside.
AttributionSAT sources reported speechAnalysts estimated / that sales declined.
Listmultinuclear seriesBilly was the mate; / Long John was quartermaster.

The base units — leaves of an RST tree — are elementary discourse units (EDUs), roughly clauses.2 Relations compose hierarchically into a tree over the whole text; asymmetric relations are drawn as an arrow from satellite to nucleus.

An RST-style relation tree over a short text. EDUs are leaves; an arrow runs from each satellite to its nucleus, and relations nest: the Elaboration over spans 2-3 is the satellite of a Background under the whole.

A second, more lexically grounded corpus is the Penn Discourse TreeBank (PDTB).3 Rather than tag relations directly, annotators start from discourse connectives — words like because, although, since, as a result — that signal a relation between two arguments Arg1 and Arg2. Where a relation has no explicit connective, the annotator supplies the one that could have appeared (marked implicit) and labels its sense. PDTB senses form a four-way top level — Temporal, Contingency, Comparison, Expansion — refined into types and subtypes.3 Unlike RST, PDTB annotates only span pairs and makes no commitment to a global tree.3

Discourse structure parsing

Discourse parsing recovers these relations automatically.4 For RST it runs in two stages. First, EDU segmentation labels each token as a break or not, typically with a neural sequence model over an encoder:

Mr. Rambo says that a 3.2-acre property overlooking the San Fernando Valley is priced at $4 million because the late actor Erroll Flynn once lived there.

Second, an RST parser builds the tree. Modern parsers are shift-reduce transition systems with a stack and a queue and two core actions:4

  • shift — pop the front EDU off the queue onto the stack as a single-node subtree.
  • reduce — merge the top two subtrees, labeling the relation and the nuclearity direction .

plus a pop-root that removes the final tree. The Yu et al. parser encodes words and EDUs with a hierarchical biLSTM, then a feedforward decoder chooses each action from the top few stack subtrees and the front-of-queue EDU. Below is the action trace that builds a four-EDU tree.

A shift-reduce trace building an RST tree over four EDUs. Each row is a parser state (stack contents) and the action taken; SH shifts an EDU, RD reduces the top two subtrees with a labeled relation, PR pops the finished root.

Training maps each gold tree to its oracle action sequence and fits the decoder with cross-entropy. RST parsers report four scores of increasing strictness: Span (bracketing only) Nuclearity (bracketing + N/S direction) Relation (+ label) Full (all three).4

PDTB parsing is shallower — flat relations, no tree — and splits into four subtasks: find discourse connectives (disambiguating and the connective from and the NP conjunction), find each connective's two spans, label explicit relations, and label the relation between every adjacent sentence pair (the implicit case).4 A strong baseline for the implicit task encodes each span with BERT, takes the [CLS] state, and passes it through a small feedforward net and softmax.4

Centering and entity-based coherence

The second flavor of coherence is being about something. A discourse coheres by keeping the same salient entities in focus rather than lurching among them. Consider Grosz et al.'s minimal pair, same propositions, different realization:5

(i) John went to his favorite music store to buy a piano. He had frequented the store for years. He was excited that he could finally buy a piano. He arrived just as the store was closing.

(ii) John went to his favorite music store to buy a piano. It was a store John had frequented for years. He was excited that he could finally buy a piano. It was closing just as John arrived.

Both are grammatical, but (i) is more coherent — it is steadily about John, while (ii) swings John / store / John / store.5 Centering Theory formalizes this. Each utterance carries two structures: a backward-looking center, the single entity currently in focus, and a set of forward-looking centers , the entities evokes, ranked by grammatical role (subject object other).5 The top-ranked forward center is the preferred center , a prediction of what comes next. The relationship between successive utterances falls into four transition types, ordered by how coherent they are:

The four Centering transitions, classified by whether the backward-looking center stays the same across utterances (columns) and whether it equals the predicted preferred center (rows). Continue is most coherent, Rough-Shift least.

Two rules drive the theory. Rule 1: if any forward center is pronominalized in the next utterance, then must be pronominalized too — pronouns mark the most salient entity. Rule 2: transitions are preferred in the order Continue > Retain

Smooth-Shift > Rough-Shift.5 Discourse (i) is a chain of Continues on John; (ii) forces Shifts, which is why it reads worse.

The entity grid

Centering is a top-down theory. The entity grid learns the same intuition bottom-up.6 A grid is a table: one row per sentence, one column per entity, each cell recording the entity's grammatical role in that sentence — Subject, Object, X (other), or (absent). Columns come from coreference resolution, so this stage depends on the first half of the lesson.

A fragment of an entity grid. Rows are sentences, columns are entities, cells give the grammatical role: S subject, O object, X other, dash absent. Dense columns (Microsoft) mark salient entities; local transitions like [S -] become features for a coherence classifier.

Coherence is read off the local transitions — a length-2 slice of a column, like (subject then absent). With role set , each of the transition types becomes a feature: its frequency across all columns,

collected into a document vector fed to a classifier.6 Coherent texts have a characteristic topology: a few dense columns (entities mentioned throughout, often as S or O) and many sparse ones.6

Labels are expensive, so entity-grid and neural coherence models train by self-supervision: a naturally-ordered discourse is more coherent than a permutation of its sentences, so the model learns to prefer the original.6 This is realized as sentence-order discrimination (rank original above a permutation), insertion (find the original slot for a removed sentence), or reconstruction (put shuffled sentences back in order).7

Local vs. global coherence

Everything above is local coherence — links between adjacent or nearby sentences. Discourses also exhibit global coherence: genres carry conventional structures. Academic articles have Methods and Results; stories follow plot motifs; persuasive essays state a claim and marshal premises for and against it.1 Coherence detection matters wherever text quality matters — essay grading, summarization (drop satellites, keep nuclei), even clinical measures of disordered language.1

The through-line

A text is more than a bag of sentences. Coreference is the machinery that recognizes one entity under its many names; coherence is what ties clauses and entities across a whole document. The two halves meet in the entity grid, where coherence is measured over the coreference chains: whether a text stays about John cannot be assessed until the mentions of John are identified. Both take the entities and relations of semantic roles and information extraction and lift them from the sentence to the discourse.

Footnotes

  1. Jurafsky & Martin, Ch. 22 intro — Discourse Coherence: discourse and coherence; Hobbs's spinach/conference minimal pair; local coherence (relational, entity-based, topical/lexical cohesion) vs. global coherence and conventional genre structure; uses in essay grading, summarization, clinical language. 2 3 4 5
  2. Jurafsky & Martin, §22.1.1 — Rhetorical Structure Theory: nucleus/satellite relations (Reason, Elaboration, Evidence, Attribution, List); elementary discourse units (EDUs); hierarchical trees with satellite-to-nucleus arrows; the RST Discourse Treebank. 2 3
  3. Jurafsky & Martin, §22.1.2 — Penn Discourse TreeBank: lexically grounded annotation via discourse connectives linking Arg1 and Arg2; implicit relations; the four-class sense hierarchy (Temporal, Contingency, Comparison, Expansion); no global tree, unlike RST. 2 3
  4. Jurafsky & Martin, §22.2 — Discourse Structure Parsing: EDU segmentation as neural sequence labeling; shift-reduce RST parsing with shift/reduce(,)/pop-root actions and a hierarchical biLSTM encoder; RST-Pareval Span/Nuclearity/Relation/Full metrics; PDTB shallow parsing's four subtasks and a BERT [CLS] baseline. 2 3 4 5
  5. Jurafsky & Martin, §22.3.1 — Centering: the Grosz et al. piano-store minimal pair; backward-looking center , forward-looking centers ranked by grammatical role, preferred center ; the Continue/Retain/Smooth-Shift/Rough-Shift transitions; Rule 1 (pronominalization) and Rule 2 (transition ordering). 2 3 4
  6. Jurafsky & Martin, §22.3.2 — Entity Grid model (Barzilay & Lapata 2008): the sentence-by-entity grid with S/O/X/– roles from coreference and parsing; local transitions as features; dense vs. sparse columns; training by self-supervision to prefer natural over permuted orderings. 2 3 4
  7. Jurafsky & Martin, §22.3.3 — Evaluating Neural and Entity-based coherence: human ratings vs. self-supervision; the sentence-order discrimination, insertion, and reconstruction tasks.
  8. Jurafsky & Martin, §22.4 — Representation learning models for local coherence: lexical cohesion; lexical chains, TextTiling, and LSA coherence as average adjacent-sentence cosine; the self-supervised local coherence discriminator with its four sentence-pair features (concatenation, difference, absolute difference, element-wise product). 2

╌╌ END ╌╌