Elamur Research

Evaluating Discourse in Structured Text Representations

Paper · 2019 · Elisa Ferracane, Greg Durrett, Junyi Jessy Li et al.

Summary

A document can be clear or confusing even when every sentence makes sense on its own. Its sentences establish a subject, give reasons, introduce qualifications, and move the reader towards a conclusion. Identifying that organization usually takes trained annotators. Ferracane and colleagues ask whether a system can recover it as a side effect of learning something easier to label, such as a review’s rating or a speaker’s vote. Their starting point is structured attention, a way to calculate how sentences should contribute to a document representation by treating them as potential parents and children in a tree. The paper tests whether that mechanism improves the task it was trained on and whether the resulting trees are useful for discourse analysis.

The authors compare the full architecture with versions that remove structured attention at the document level or at both the document and sentence levels. They test it on customer reviews, Congressional speeches, science articles labeled for writing quality, and a task that asks whether newspaper sentences are in their original order. Document-level attention has a clear benefit only on the version of the writing-quality task that controls for article topic. It hurts on Congressional speeches and produces little change on the other tasks. On the topic-controlled writing-quality test, the authors’ full version has a mean accuracy of 81.11, compared with 79.25 when document-level attention is removed.

The trees help explain why learning a task and learning how a document is organized can lead in different directions. Many have a dominant root sentence with little branching beneath it. The words associated with the root often give away a review’s rating or a speaker’s stance. In the first writing-quality experiment, root words point to article subject matter, which gives the authors a reason to compare articles on similar topics. Even in the sentence-order task, where the system selects the first sentence of the original document as its root, the remaining attachments offer little account of how the text develops.

Architectural changes can produce deeper trees and preserve accuracy on topic-controlled writing quality. Removing a recurrent layer that already mixes information across sentences makes a marked difference to tree shape. Repeatedly passing information from possible children to their parents recovers the accuracy lost when that layer is removed. Yet the resulting trees still have many more leaves and much longer links than sentence-level trees derived from Rhetorical Structure Theory parses. The authors conclude that the task labels supply too little guidance for recovering rhetorical organization and propose using discourse supervision to guide future attempts.

Deep dive: Evaluating Discourse in Structured Text Representations

Ferracane and colleagues test whether document trees learned through structured attention capture discourse and improve text predictions. · about 38 minutes to read

The problem and its context

What a document tree is meant to explain

The subject of the paper is the organization of a document above the sentence level. Consider a stretch of text that presents a claim and then gives a reason for accepting it. The order of the sentences is part of its organization, but so is their relationship. A reader can recognize that the reason supports the claim and that the pair might itself form part of a larger argument. A discourse representation tries to make such relationships explicit. The paper focuses on whether a system can discover an approximation to that organization from ordinary task training.

There is a practical reason to try. The authors describe previous findings in which knowledge of discourse helped with sentiment analysis, with deciding what to keep in a summary, and with evaluating translations. A document’s rhetorical organization can make some passages particularly useful, and the relevant passages can differ with the task. For a summary, the question concerns what merits inclusion. A sentiment decision may depend on how the author develops an appraisal. Translation evaluation can take into account relations that run beyond individual sentences. The paper situates these uses through earlier work on text summarization, machine translation, and sentiment and emotion.

Producing training material for discourse analysis takes considerable effort from trained readers. An annotator has to identify the relevant units and judge how they fit together. A scheme designed to describe a writer’s communicative purpose may also make distinctions that matter little for a particular prediction, or omit distinctions that would help with it. These are reasons to explore task-driven structure induction. A learner supplied with document labels can, in principle, find whatever grouping or hierarchy helps make its decisions. The prospect of obtaining a credible discourse analysis from that same process is the claim that needs examination. The cost comes from the kind of judgment required for linguistic annotation.

The appeal of learned structure had already been explored at a smaller scale. The authors describe work in which systems infer trees over words while being trained on other objectives. Evaluations of those trees found that changing the training run could change the structures substantially, that the trees tended to be shallower than Penn Treebank parses, and that their patterns were difficult to connect to linguistic accounts of sentence structure. That experience motivates checking what a tree actually contains before giving it a linguistic interpretation. The comparison at the sentence level involved the Penn Treebank.

Why use Rhetorical Structure Theory

Discourse frameworks describe different aspects of a text. The authors characterize the Penn Discourse Treebank as a lexically grounded approach concerned with individual connectives and relations between adjacent sentences, with coverage that stops short of an entire document tree. They describe Segmented Discourse Representation Theory as a graph-based account. These frameworks give different answers to the question of what kind of object should represent discourse. The work on local relations is represented by the Penn Discourse Treebank.

Rhetorical Structure Theory, abbreviated RST, provides a hierarchy over the text. Its starting points are minimal discourse units. Relations connect those units, and the connected spans can participate in relations further up the hierarchy. This recursive organization gives a way to represent how the smaller parts contribute to the purposes of larger passages. It also makes RST a practical reference for this study. Both the attention mechanism under examination and the RST analysis can be expressed in tree form, provided that the RST output is converted to the kind of dependency tree used for the comparison.

A dependency tree connects nodes by directed links. A parent has one or more children, and the links define a path from the root to nodes further down. At the document level studied here, those nodes are sentences. In an RST analysis, units can be smaller than a sentence, and spans can carry rhetorical relation labels. Ferracane and colleagues derive unlabelled dependencies using nuclearity, the information about which units are central in their rhetorical groupings. They then collapse structure inside sentences for the comparison. The resulting analysis preserves a pattern of attachments at a common granularity. It places the study in contact with both discourse analysis and dependency parsing.

Why ask about prediction and structure separately

Liu and Lapata’s starting architecture makes document prediction depend in part on structured attention. It builds representations of sentences and then composes them into a representation of a document. At each scale the attention calculation is constrained by a distribution over trees. This creates a strong visual suggestion that the system might be discovering syntax inside sentences and discourse across them. At the document scale, a researcher can select a highest-scoring tree and inspect where it attaches each sentence. Ferracane and colleagues study that possibility in Learning Structured Text Representations.

The task gives the learned structure an incentive of its own. A system that predicts a vote can get useful evidence from an explicit statement of opposition. Choosing where to put that evidence in a document representation is a different problem from accounting for how the speech’s reasons, concessions, and conclusion fit together. Both could favor the same prominent sentence. They can still lead to very different decisions about what should attach below it. A correct vote prediction therefore leaves a separate question about what the remaining links mean.

The architecture also has ways to combine sentences outside its structured attention layer. A recurrent encoder reads across the document, and a pooling operation assembles a document vector from the updated sentences. An experiment that uses the full architecture and evaluates only the final prediction cannot tell how much the tree-constrained component contributes. Ferracane and colleagues compare versions that remove attention and also examine the trees obtained when it is present. The same setup supports questions about marginal benefit, the set of regularities the attention discovers, and the effect of making the prediction depend more directly on that attention.

The choice of tasks is part of the argument. Reviews and speeches extend the comparison with Liu and Lapata. Writing quality and sentence-order discrimination are intended to give document organization more opportunity to matter. The former comes from earlier work where properties associated with discourse helped distinguish science articles judged very good from those judged typical. The latter creates a coherence test by comparing a text in its original sentence order with a shuffled version. The motivation for that contrast comes from Modeling Local Coherence.

The method, step by step

From word vectors to a document decision

The architecture works at two scales. It starts with a vector for each word, a numerical representation that lets the network combine information across positions. Words within a sentence enter a sentence encoder with structured attention. The result is a vector for the sentence. These sentence vectors then play the role that word vectors played at the first scale. The document encoder takes them in order and produces updated sentence vectors, which are combined for the final prediction. The initial word vectors come from GloVe.

At the document level, the encoder first reads the sentence vectors with a bidirectional long short-term memory network, or bidirectional LSTM. It processes the sequence in both directions. Accordingly, when it produces a representation for a sentence, that representation can reflect context from earlier and later positions. This matters for the ablations because the recurrent layer already has a way to mix information across sentences before the attention mechanism begins to organize them.

The authors divide each contextual representation into a semantic part and a structural part. The structural part supplies the features for deciding which sentences are plausible parents or children. The semantic part supplies the material to pass along those possible links. For example, a sentence may receive a strong score as a parent for several other sentences. Its own semantic representation can then be updated with information from those sentences, weighted by the probabilities of the proposed attachments.

The scores for links define a joint distribution over dependency trees. Each tree is one way of assigning sentences to parents while maintaining the required overall structure. In the forward pass, the architecture uses the probability of each individual link under that joint distribution. A sentence may thus receive some information from several possible children even where a single decoded tree would place only some of them beneath it. The highest-scoring complete tree is obtained separately for inspection.

How structured attention builds a document representation

The steps in order.

How structured attention builds a document representationStep 1: Compose word vectors into sentence representations1. Compose word vectors into sentence representationsStep 2: Encode sentences in both directions2. Encode sentences in both directionsStep 3: Split each sentence vector into semantic and structural parts3. Split each sentence vector into semantic and structural partsStep 4: Score potential parents and children4. Score potential parents and childrenStep 5: Calculate attachment probabilities across possible trees5. Calculate attachment probabilities across possible treesStep 6: Update each sentence with probable children6. Update each sentence with probable childrenStep 7: Pool sentence vectors for the task prediction7. Pool sentence vectors for the task prediction

Scoring a parent and a child

The contextual encoder’s output at a position is partitioned as follows.

hₜ = [eₜ, dₜ]

Here t is a sentence position, and hₜ is the hidden representation produced there by the bidirectional LSTM. Square brackets denote concatenation. The vector eₜ is the semantic portion, and dₜ is the portion used in the attachment scores. The equality describes how the component vectors make up the hidden representation.

To score a potential attachment, the structural vector for each sentence is transformed according to the role it would play. The transformation on the parent side is:

tₚ = tanh(Wₚ dᵢ)

Here i indexes a candidate parent sentence. Its structural vector is dᵢ, and Wₚ is a learned matrix for the parent role, indicated by p. The product maps the vector into the space used for scoring. The function tanh applies the hyperbolic tangent to each component. The result is tₚ, the transformed representation for this candidate parent.

The child transformation has its own learned matrix.

t꜀ = tanh(W꜀ dⱼ)

Here j indexes a candidate child sentence, whose structural vector is dⱼ. The symbol ꜀ designates the child role in W꜀, the learned transformation for that role, and in t꜀, the resulting child representation. As on the parent side, tanh acts component by component. Separate transformations let the same sentence contribute different features depending on which side of an attachment is being scored.

The two transformed vectors are combined in a bilinear score.

fᵢⱼ = tₚᵀ Wₐ t꜀

Here fᵢⱼ is the unnormalized score for an arc from parent i to child j. The vectors tₚ and t꜀ describe those candidates in their respective roles. The superscript ᵀ transposes the parent vector so that the product with the learned attachment matrix Wₐ and the child vector yields a single number. A larger score favors the link in the distribution over trees. Its probability also depends on the scores of the other links and how they can be combined.

Why use a distribution over trees

Independent choices about each child’s parent could yield links that fit together poorly. The tree constraint gives the attention computation a global condition. A set of attachments must form a rooted dependency tree to contribute as a complete candidate. The architecture permits non-projective trees. In an ordered text, this allows links that would cross if drawn above the sequence. Tree shape therefore constrains which attachments can coexist while leaving room for distant or geometrically crossing connections.

The matrix-tree theorem makes it possible to calculate marginal probabilities for individual arcs under this distribution. An arc’s marginal is the probability that a tree drawn from the distribution contains that arc. Its value reflects all the trees in which the arc participates. This is the sense in which the attention is structured. The attention weights are linked through the shared distribution, even though the next layer uses them one arc at a time. The calculation is differentiable, so error on the task prediction can change the parameters that produced the scores.

For the tree analyses, the authors use the Chu–Liu–Edmonds algorithm to retrieve the highest-scoring tree under the arc scores. The paper calls the resulting tree f_best. This gives the researchers a discrete object for measuring height, counting leaves, and inspecting the root. The distinction between that object and the marginals matters throughout the evaluation. The system’s prediction uses fractional weights over possible attachments. The tree shown to a reader or compared with a discourse parse is a single choice obtained after training.

Updating the semantic vectors

Ferracane and colleagues change how the implementation uses the attachment probabilities. The released Liu and Lapata implementation updates a node using a weighted sum over possible parents. Its description also mentions children, and Ferracane and colleagues report similar results with both directions and with parents alone. Their main version sends information from possible children to their parents. They motivate this by analogy with earlier work in which information from subordinate units contributes to the representations above them, as in Neural Discourse Structure for Text Categorization.

For a given parent, the attention calculation supplies a weight for every possible child. The context vector is:

cᵢ = ∑ₖ₌₁ⁿ aᵢₖ eₖ

Here i identifies the sentence being updated, k indexes a possible child, and n is the number of sentences. The summation sign ∑ collects the terms as k ranges from 1 through n. The marginal aᵢₖ is the probability that i is the parent of k. The semantic vector for sentence k is eₖ. Adding these vectors after weighting them gives the child context cᵢ for sentence i.

The next operation combines the new context with the original sentence representation.

e′ᵢ = tanh(Wᵣ [eᵢ, cᵢ])

Here e′ᵢ is the updated semantic vector for sentence i, and eᵢ is its initial semantic vector. The prime marks the update. The brackets concatenate that initial vector with cᵢ, the context from possible children. The learned matrix Wᵣ maps the concatenation to a new representation, and tanh applies the componentwise nonlinearity. Keeping the original vector in the update gives the classifier access to what the sentence itself says as well as what it has gathered through attention.

In the regular classification setup, max pooling follows these updates. For each feature coordinate, pooling takes the largest value across the sentence representations. A linear layer uses the pooled document vector to predict the class y. The task uses cross-entropy, which penalizes the system when it assigns a low probability to the correct class. An informative feature can influence the document decision wherever in the text it reaches a large value. This offers a route from a sentence to the prediction even if that sentence has little weight as a parent or as the root.

The authors also fix a masking error in the original implementation. The error concerns which attention scores and marginals are included in the matrix-tree computation. Their main version incorporates both the masking correction and the change to child-based updates. They run the original code as a comparison, which makes it possible to check whether the main findings depend on having made those changes.

Comparing the original order with a shuffle

The sentence-order experiment preserves the document encoding mechanism and changes what the system is asked to predict. It receives paired inputs containing the same sentence material. The positive member is the original document order, and the negative member comes from a random permutation of those sentences. The architecture produces a coherence score for each member. Changing the sentence order changes the sequence seen by the recurrent encoder and the configurations the attention mechanism can favor.

The paired setup uses a max-margin ranking loss in place of cross-entropy. The training objective calls for the original version’s score to exceed that of the permutation by a margin. The comparison within a document is the supervision. It puts pressure on the encoder to capture something sensitive to order, while leaving it free to use whatever distinguishes the original from a permutation. There is no requirement that the selected tree reproduce the relation that a reader would assign to any particular pair of sentences.

Making the prediction depend more on the tree

The authors test three changes on writing quality with topic control. The first removes the document-level bidirectional LSTM. The sentence encoder still provides vectors for the document stage, but the stage has lost the recurrent operation that mixes context across positions before the tree attention. One question is whether the scores and the child-based updates will take on more of the work of combining sentences. The comparison concerns this document-level layer, so it leaves the lower-level sentence construction available.

The second change lets the attention pass information upward again after the first update. In the first pass, sentence i receives the original semantic vectors of its possible children. In the next pass it can receive the updated vectors of those children. An updated child now contains contributions from its own possible children. Repeating the operation opens paths over which information from further down can reach a sentence higher in the tree. The calculation still uses the marginal attachment weights. It remains a soft propagation over possible links.

The repeat operation described in the paper can be written as follows. Its displayed equation repeats the parent index on the vector inside the sum. The child index below makes the summation agree with the authors’ description of passing children’s updated vectors upward.

c′ᵢ = ∑ₖ₌₁ⁿ aᵢₖ e′ₖ

Here c′ᵢ is the new context vector for parent candidate i. The index k ranges from 1 through n, the number of sentences, and ∑ signifies addition over those positions. The weight aᵢₖ is again the marginal for the parent i and child k. The vector e′ₖ is the updated representation of that child after the earlier pass.

The parent representation is then updated again.

e″ᵢ = tanh(Wᵣ [e′ᵢ, c′ᵢ])

Here e″ᵢ, marked with a double prime, is the representation of sentence i after the additional pass. The single-prime vector e′ᵢ is its representation from the first update. The new child context is c′ᵢ. Square brackets concatenate these vectors, Wᵣ denotes the learned transformation in the update equation, and tanh supplies the componentwise nonlinearity. The paper also evaluates repeated passes beyond this illustrated update.

The third change replaces max pooling with a sum weighted by the probability of each sentence being the root. It tests a more direct connection between the attachment computation and the vector supplied to the document decision. Using z for that pooled vector, the operation described in the paper is:

z = ∑ᵢ₌₁ⁿ aᵣᵢ e″ᵢ

Here z is the document representation after pooling. The index i ranges from 1 to n, the number of sentences, and the summation adds the weighted vectors. The root index is r, and aᵣᵢ is the attention probability that sentence i attaches as the root. The vector e″ᵢ denotes the representation being pooled after the updates in the paper’s expression. Through the weight, sentences with higher root probabilities contribute more directly to the result.

Preparing the data and selecting a run

For Yelp and Debates, the authors follow the earlier preprocessing approach with a change to the word embeddings. Vocabulary inclusion for the embeddings has no minimum frequency cutoff in their experiments. For the new datasets, Stanford Core NLP supplies sentence splitting and tokenization. These choices determine what counts as a word position inside a sentence and what the document encoder sees as its sequence of sentence positions.

Training uses Adagrad at a learning rate of 0.05. WQ, WQTC, and WSJSO use global-norm gradient clipping with a ratio of 1.0, which places a bound on the size of the gradient applied in an update. The batch size is 32 except in WSJSO, where paired training uses 16. The report puts the training budget at no more than eight hours using a GeForce GTX 1080 Ti graphics card.

Each experiment is repeated across four starts with different initial weights. Within a run, the selected checkpoint is the one with the strongest development performance during the training window. The selected checkpoint then supplies the test predictions. The tree analyses use the development set. This puts the end-task accuracy and the tree diagnostics on explicitly different splits. The authors made their implementation and data available through the structured project.

Experiments and results

What each dataset asks the system to do

Yelp is a review rating task. Labels run from 1 to 5, from least to most favorable, and the prediction is an exact rating class. The preprocessed data contain 266,522 training documents, 33,333 development documents, and 33,317 test documents. The task gives a system many opportunities to learn how opinions are stated, including cases where a reviewer refers explicitly to the rating. It also provides a large comparison dataset from the architecture’s earlier evaluation.

Debates uses transcripts of speeches on bills in the U.S. House of Representatives. The binary label represents whether the speaker voted for or against the bill. The data contain 1,050 training speeches, 102 development speeches, and 374 test speeches. The target is a recorded vote rather than a judgment of rhetorical organization. A speech can nevertheless contain multiple reasons and a clear statement of stance, creating an opportunity to compare a task-relevant sentence with the relations the system learns around it. The corpus comes from earlier research on support and opposition in Congressional floor debates.

Writing quality, abbreviated WQ, uses New York Times science articles. The labels distinguish very good writing from typical writing. In assembling the corpus, the earlier study started with 63 articles that expert journalists had identified as high-quality writing. It expanded the favorable class by including other science articles by the authors of those pieces. The paper gives 4,253 articles for the expanded group and 19,520 for the group drawn from other authors. Ferracane and colleagues undersample the typical category to balance the classes and use an 80/10/10 training, development, and test split. Their post-preprocessing counts are 6,195 training articles, 775 development articles, and 763 test articles. The labeling scheme and the earlier role of discourse-associated features come from What Makes Writing Great?.

WQTC is the topic-controlled version of writing quality. For every article, the source corpus lists the ten articles closest to it in topic. The authors use that information when sampling examples, making topic a less readily available way to distinguish the label groups. The resulting splits have 6,241 training articles, 777 development articles, and 794 test articles. The target still concerns the writing-quality labels. The change concerns the construction of the comparison dataset, so a change in outcome can be read in light of which lexical distinctions the sampling makes less useful.

Wall Street Journal Sentence Order (WSJSO) draws its newspaper documents from the Penn Treebank’s Wall Street Journal section. The original orders and their permutations give the paired inputs described in the method. The split contains 1,950 training documents, 247 development documents, and 241 test documents. Their generated pairs number 35,165 for training, 4,392 for development, and 4,383 for testing. The pair counts specify the scale at which order discrimination is learned and evaluated. The document counts specify how much underlying source material supplies those comparisons.

Baselines, accuracy, and variation

The main comparison includes the original Liu and Lapata code, the authors’ revised full architecture, the revised architecture with document attention removed, and the version that removes structured attention at both scales. The full original and full revised versions test whether the findings survive the differences in implementation. The removal comparisons address where in the hierarchy attention helps. All of these are comparisons within a family of document encoders, giving the attention variants a common setting.

Accuracy measures correct decisions on the test set. In classification, a correct decision matches the document’s label. In the ordering task, it favors the original over the shuffled order. The paper reports the maximum and mean test accuracy across the four runs, along with the standard deviation. The maximum reveals what the strongest initialization achieved under this procedure. The mean is the basis for comparing performance across starts. The paper highlights values within one standard deviation of the best-performing setting. This convention describes how close some results are at the scale of the variation observed across runs.

The earlier paper’s reported numbers are supplied for overlapping tasks. Liu and Lapata report 68.6 test accuracy for Yelp and 76.5 for Debates from individual runs. The new experiments apply the repeated-run protocol to the earlier code as well as to the revised versions. This makes it possible for an apparent gain found in an individual run to coexist with a much smaller or differently directed effect in the new comparisons.

Reviews, speeches, and writing quality

On Yelp, the original code’s mean test accuracy is 68.27, with a standard deviation of 0.19. The revised full version reaches 68.23, with a standard deviation of 0.23. Removing document attention yields 68.13, with a standard deviation of 0.17, and removing both levels yields 68.05, with a standard deviation of 0.13. The authors interpret the document-level comparison as showing little difference. Both the original and revised full versions have a maximum test accuracy of 68.51, which also illustrates why the maximum alone gives a limited view of the variants.

Debates gives the clearest adverse result for document-level attention. The revised full version reaches a mean test accuracy of 77.81, with a standard deviation of 1.80. With document attention removed, the mean is 81.42 and the standard deviation is 1.08. The best test run for that setting reaches 82.89. Removing sentence attention as well yields a mean of 77.34, with a standard deviation of 1.79. This pattern gives the placement of attention a practical consequence. The system can benefit from word-level composition within sentences even as the additional tree-constrained operation across sentences lowers its accuracy.

Attention settings on Debates mean test accuracy

Keeping sentence attention while removing document attention gives the highest mean accuracy.

Attention settings on Debates mean test accuracyOriginal Liu and Lapata code: 79.48Original Liu and Lapata code79.48Revised full architecture: 77.81Revised full architecture77.81Sentence attention only (this paper): 81.42Sentence attention only (this paper)81.42Both attention levels removed: 77.34Both attention levels removed77.34
The numbers
System or settingaccuracy %
Original Liu and Lapata code79.48
Revised full architecture77.81
Sentence attention only (this paper)81.42
Both attention levels removed77.34

For WQ, the original code obtains a mean test accuracy of 82.69, and the revised full version obtains 82.70. Removing document attention gives 82.80. Removing both attention layers gives 83.16, with a standard deviation of 1.25. The highest maximum, 84.27, also belongs to the setting without either level of structured attention. The authors read this comparison as offering little evidence that structured attention helps on this dataset. The close results make the lexical analysis of the root particularly relevant to understanding what the full architecture has picked up.

Topic control changes the comparison. The revised full version reaches a maximum of 82.49 and a mean of 81.11 on the WQTC test set, with a standard deviation of 0.95. The version without document attention has a maximum of 80.60 and a mean of 79.25, with a standard deviation of 0.94. Removing both levels yields a mean of 76.16, with a standard deviation of 1.25. WQTC is the dataset on which the authors see a benefit from the document-level mechanism. It is also the setting they select for further changes to the architecture.

Attention settings on WQTC mean test accuracy

The revised full architecture gives the highest mean among the attention removal comparisons.

Attention settings on WQTC mean test accuracyOriginal Liu and Lapata code: 79.63Original Liu and Lapata code79.63Revised full architecture (this paper): 81.11Revised full architecture (this paper)81.11Sentence attention only: 79.25Sentence attention only79.25Both attention levels removed: 76.16Both attention levels removed76.16
The numbers
System or settingaccuracy %
Original Liu and Lapata code79.63
Revised full architecture (this paper)81.11
Sentence attention only79.25
Both attention levels removed76.16

Distinguishing original from shuffled sentences

WSJSO accuracy is high across the variants. The original code’s mean test accuracy is 95.29, with a standard deviation of 0.84. The revised full version reaches 94.76, with a standard deviation of 1.11. With document attention removed, the mean is 95.11 and the standard deviation is 0.42. Removing both kinds of attention gives a mean of 94.68 and a standard deviation of 0.37. The original code’s maximum is 96.17. The comparison provides little evidence of a benefit from adding document attention to the revised sentence encoder.

This ordering result matters because the positive and negative inputs use the same sentences. Correctly choosing the original requires sensitivity to something about their arrangement. The accuracy establishes that the encoder has access to a useful ordering cue under this permutation procedure. Whether the useful cue corresponds to a hierarchy of rhetorical relationships requires looking at the trees themselves. The authors’ analysis finds a stable choice for where to place the root in the revised version, alongside a much weaker account of the rest of the text.

Taken together, the test results make a stronger case for keeping attention within sentences than for adding it across sentences. The paper identifies WQ as the exception to the general benefit of the sentence-level component. For document attention, the direction varies with the task. The result on WQTC makes it possible to ask a particularly informative follow-up question. When the document component helps a prediction, how close is its tree to what a discourse parser would assign to the same material?

What the ablations show

What changes when attention is removed

The removal experiments distinguish the two levels at which the architecture uses structured attention. Removing only document attention tests what the tree-constrained component contributes after sentence vectors are available. Removing it at both levels makes the comparison also sensitive to the method of composing words into sentence vectors. The contrast is sharpest on Debates. Deleting document attention improves the mean test accuracy, while deleting attention within sentences as well loses that benefit. An experiment that removed both layers together would obscure the difference between their effects.

The ablations also put the original code in context. The revised version routes information from children to parents and fixes masking. The original version still has broadly shallow decoded trees and similar trends in task performance. On the Debates development set, the revised architecture produces 38% vacuous trees, compared with 40% for the original code. On Yelp the corresponding rates are 73% and 68%. The updates change some outcomes, especially for WSJSO, where the revised architecture gives 100% and the original gives 56%. The broad tendency towards root-dominated trees appears under both implementations.

What the decoded trees reveal

A tree can satisfy the formal constraints and still provide very little hierarchy. The authors call a tree vacuous when it has the pattern of a prominent root with the other sentences attached directly to it. In such a configuration, the system has effectively selected a sentence as the center of the document. The branches supply little information about intermediate groupings. In other trees the pattern may be less extreme while retaining a high proportion of leaves, meaning nodes that have no children of their own.

The authors look at height, the proportion of leaves, normalized arc length, and the rate of vacuous trees. Height describes how far down the tree paths extend. The leaf proportion describes how much of the tree sits at the ends of those paths. Normalized arc length describes how far apart the linked sentences are in document order on a common scale. These statistics answer complementary questions. A low tree with many leaves suggests little intermediate organization. Long links can indicate that a central node gathers sentences from across the document. The vacuous-tree rate captures how often the inspection finds the most extreme pattern.

For Yelp, the revised architecture’s mean development tree height is 2.049, its leaf proportion is 0.825, and its normalized arc length is 0.433. The high rate of vacuous trees goes together with links that reach across sizable portions of the text. For WQ, the development height is 2.909 and the leaf proportion is 0.958, with 42% vacuous trees. WQTC gives a height of 4.035 and 14% vacuous trees, though its leaf proportion is still 0.931. The topic-controlled sample produces fuller trees by some measures while retaining the broad pattern of many terminal sentences.

The paper’s Debates example shows how such a structure can arise. The opening sentence declares opposition to the bill. The closing sentence urges a vote against the legislation. A classifier has an opportunity to recover the target stance from a small amount of the speech. The decoded example illustrates the larger pattern of a prominent sentence dominating the tree, with much less indication of how the remaining parts of the speech work together. In visual inspection more generally, roots tend to come from the first two or last two sentences.

WSJSO makes the gap between a plausible root and a plausible tree especially clear. The paper reports that on correctly ordered documents the root is always the first sentence. That is a credible place for the central sentence of a news document. The revised architecture also gives a mean development tree height of 2.288, a leaf proportion of 0.892, and a normalized arc length of 0.426. Its vacuous-tree rate is 100%. The system can use a strong cue about where the document begins, and the same tree statistics give little reason to infer that it has found the organization of the rest.

What the roots appear to be selecting

The authors investigate why the root so frequently becomes the center of the whole representation. They calculate positive pointwise mutual information, abbreviated PPMI, for an association between a word and its occurrence in the root sentence. The measure captures whether a word appears there more than would be expected from its prevalence. Restricting attention to positive association identifies words disproportionately tied to roots. Looking at the most associated words makes it possible to compare the cues the tree attends to with the target the classifier has been trained to predict.

In Yelp, highly associated words include “star,” “rating,” and “underwhelmed.” The results also include “sterne,” the German word for stars, and “uuu,” which the authors attribute to a prolific reviewer. These words show that the learned selection can respond both to ordinary rating language and to the recurring conventions of particular writers. A sentence containing such a cue can help determine the rating even when its attachments add little information about the rest of the review.

In Debates, words associated with root sentences include “oppose,” “vote,” and “majority.” Expressions of stance, names for political groups, and terms used in addressing other members can all help identify the kind of speech being made. The association analysis gives a corpus-level counterpart to the single example in which the speaker states opposition at the opening and urges a vote against the bill at the close. It supports the interpretation that the attention is drawn to sentences with accessible evidence for the target.

In WQ, the words point toward a different source of predictive information. Terms such as “silicon,” “venture,” and “capital” cluster around a technology topic. Those associations give the authors a concrete reason to revisit how the dataset is sampled. If the topic distribution differs between label groups, a system can use article subject matter to help choose a label. WQTC reduces that opportunity by sampling with topical similarity in mind. Its stronger document-attention comparison is consistent with the system using additional signals when an obvious source of lexical evidence is less available.

What the revised architectures change on WQTC

The more detailed architecture comparisons stay on WQTC. This is the setting where the full attention layer helps and where vacuous trees are already less frequent. The authors examine whether greater dependence on tree-constrained composition will produce fuller trees, and how much the changes cost in mean test accuracy. Their reference for tree shape is an RST parser applied to the WQTC development material. The conversion uses nuclearity to derive unlabelled dependencies and collapses links inside sentences. The parser is the linear-time bottom-up discourse parser.

Learned and parsed WQTC development trees by mean height

Removing the document encoder yields the tallest learned trees, while the parsed RST trees are substantially deeper.

Learned and parsed WQTC development trees by mean heightRevised full architecture: 4.035Revised full architecture4.035Document LSTM removed (this paper): 11.51Document LSTM removed (this paper)11.51Document LSTM removed with extra propagation: 10.430Document LSTM removed with extrapropagation10.430Document LSTM removed with repeated propagation: 9.588Document LSTM removed with repeatedpropagation9.588Document LSTM removed with root-weighted pooling: 7.364Document LSTM removed with root-weightedpooling7.364Parsed RST reference: 25.084Parsed RST reference25.084
The numbers
System or settingtree height
Revised full architecture4.035
Document LSTM removed (this paper)11.51
Document LSTM removed with extra propagation10.430
Document LSTM removed with repeated propagation9.588
Document LSTM removed with root-weighted pooling7.364
Parsed RST reference25.084

Removing the document LSTM gives the clearest change in the learned trees. The leaf proportion goes from 0.931 in the full architecture to 0.769, and the normalized arc length goes from 0.396 to 0.353. The vacuous-tree rate is 4% in the reduced version. Test accuracy moves in the opposite direction. The reduced version has a mean of 77.80, with a standard deviation of 1.72, compared with the full version’s 81.11 and 0.95. This supports the authors’ hypothesis that the recurrent layer had been doing useful composition across sentences. Taking it away increases the need for the attention layer to distribute information, with a cost to prediction.

Replacing max pooling with a root-weighted sum after removing the recurrent layer gives further evidence about the decision stage. Mean WQTC test accuracy is 75.57, with a standard deviation of 2.52. The development trees have a leaf proportion of 0.856 and a normalized arc length of 0.359. Their vacuous-tree rate is 3%. The authors associate the shallower trees in this setting with the fact that the final operation still pools contributions across sentences. Root weighting changes which sentence vectors are emphasized. It leaves the output able to combine material from multiple positions through the root marginals.

Adding an extra round of propagation to the version without the document LSTM gives a mean WQTC test accuracy of 77.11, with a standard deviation of 2.18. The development leaf proportion is 0.790, normalized arc length is 0.349, and the vacuous-tree rate is 3%. This produces deeper trees than the full architecture and somewhat shallower trees than removing the recurrent layer alone. Combining the extra pass with root-weighted pooling gives a mean test accuracy of 74.78, with a standard deviation of 2.58. That combination illustrates why making attention more influential can have a mixed effect. How information reaches the decision and what the decision needs are separate from how orderly a decoded tree looks.

With 4 levels of propagation, the version without the document LSTM recovers the full architecture’s level of test performance. Its WQTC mean is 81.71, with a standard deviation of 0.70, and its maximum is 82.75. Its development trees retain a lower leaf proportion, 0.811, and a lower normalized arc length, 0.353, than the full architecture. The vacuous-tree rate is 3%. The authors treat the accuracy as comparable to the full version and suggest that extra parameters may make further gains harder to obtain. They report unstable training beyond 4 levels.

The appendix also reports mean parent entropy. This is a measure of how spread out the possibilities for a sentence’s parent are, with greater entropy corresponding to less concentration on a single choice. The WQTC development value is 0.774 for the full architecture, 1.876 after removing the document LSTM, 0.349 with an extra propagation pass, and 1.60 with 4 levels of propagation. The RST-derived comparison has 2.711. These entropy values add a view of parent choice alongside the statistics on decoded trees. For example, the extra-pass setting has a tall decoded tree even though its reported parent entropy is low. Depth and concentration answer different questions.

The RST comparison puts all of the changes in perspective. Alongside their greater height, the parser-derived trees have a leaf proportion of 0.567, a normalized arc length of 0.063, and a vacuous-tree rate of 0%. The wider separation on arc length matters for news discourse. A typical right-branching analysis can attach a sentence to a more immediate parent as a passage develops. The induced trees frequently link sentences across longer spans and leave many of them without children. Repeated propagation recovers prediction quality and improves several diagnostics, while the distance from the reference remains visible across the set of measures.

Limitations

Limits identified by the authors

The authors confine their conclusion to the kind of structure induced by the attention mechanism and the available task supervision. The experiments show how the evaluated systems behave when trained for classification or ordering and when given greater architectural pressure to use their attachments. The authors see a need for objectives that go beyond classification, together with some form of supervision that guides the trees toward discourse. Their suggestion of using discourse trees as training guidance is a hypothesis arising from the results. The experiments themselves evaluate changes in attention and composition.

The baseline reproduction covers part of Liu and Lapata’s original evaluation. The authors omit IMDB because the earlier system had failed to improve on prior work there. They omit Czech Movies because the earlier discussion used Czech’s freer word order to show the relevance of non-projective sentence trees, whereas the new study concerns trees over documents. The original sentence-level inference dataset falls outside that scope as well. The conclusions therefore concern the overlapping document tasks that were retested and the additional writing-quality and ordering tasks.

Another explicit caution is that the RST trees are an approximation to ground truth. They come from an existing parser, and the conversion to sentence-level dependencies removes information. RST starts with units that may lie within a sentence and records distinctions about the relations between spans. The comparison turns those analyses into unlabelled sentence attachments. It is a test of broad structural resemblance under a shared representation, with a reference that itself depends on parsing and conversion.

The architectural improvements also have a practical limit in the experiment. Extra rounds of propagation initially offer a way to include material from further down the tree, and the run with 4 levels preserves accuracy while giving fuller trees. The authors report unstable training when they go beyond that setting. The evidence about the usefulness of repeated propagation accordingly concerns the range over which they were able to train the system reliably.

Limits visible in the evaluation setup

The tasks reward behavior that can be useful with limited rhetorical understanding. In rating and stance prediction, explicit cue words are part of the input. In sentence-order discrimination, every negative example is created by a random permutation. Such a permutation can disrupt clues about openings, endings, and adjacent sentences even when the hierarchy of ideas is left unexamined by the scorer. The task provides strong evidence about discrimination under this particular corruption procedure. It leaves open how the same architecture would handle subtler changes that preserve obvious boundary cues while disrupting an argument or a passage’s internal development.

The writing-quality labels have a particular construction. Experts identify the seed articles, and authorship expands the favorable group. Consequently, the label can correlate with recurring features of a writer’s articles, including topics and phrasing. Topic control addresses one plausible source of correlation using a list of similar articles. The comparison still concerns the corpus’s operational definition of writing quality. It cannot settle which features expert readers would focus on in an independent judgment of every article. The switch from WQ to WQTC also changes the sampled data, so its effect is best read within the reported dataset designs.

A decoded tree offers a strong, interpretable diagnostic of the score distribution, but the predictor uses marginals and contextual vectors. Poor resemblance between the best tree and the RST reference places a limit on reading that tree as a discourse parse. It leaves open how much information related to discourse may be present elsewhere in the encoder, or spread across attachments that do not appear in the decoded output. Conversely, an individual arc that appears plausible to a reader gives little evidence about how much that arc contributed to the final prediction. Recovering those contributions would require a closer analysis of the weighted computations.

The RST comparison relies mainly on aggregate properties such as height, leaves, and link distance. A large mismatch across these properties gives several reasons to doubt that the induced structures follow the same organizational patterns. Matching such statistics would be a weaker result by itself. Trees can have similar shapes while assigning different parents to individual sentences. Because the reference comparison is unlabelled, the evaluation also leaves open meaning-level questions such as whether a specific link expresses support, contrast, or some other relation. The test addresses a necessary part of the stronger claim about learning rhetorical organization.

The detailed architecture modifications are evaluated on WQTC, which the authors select because document attention has a measurable benefit there and the trees are less often vacuous. The result for repeated propagation therefore comes from that particular task and dataset. Different label cues or document genres could change the balance between recurrent context, propagation, and pooling. The original attention removals cover a wider range of tasks, while the mechanism comparisons give a closer look at only the setting that motivated them.

Finally, the standard deviations describe variability under changes in initial weights. The authors keep the rest of the training procedure fixed and select checkpoints on development performance. This gives a clearer picture of repeatability than an isolated best run. The comparison still concerns those splits and that protocol. In cases where the means are close relative to the reported variability, the paper’s cautious reading is appropriate. The strongest conclusion across the experiments is specific to what the diagnostics measure. A task objective that rewards a correct document decision can produce trees whose regularities are mainly useful for that decision.

What came after

Discourse trees and alternative forms of supervision

The authors end by proposing that a tree intended to represent discourse should receive more guidance about what its attachments mean. Several citing works address the problem of obtaining that guidance at scale. Their titles identify the direction of the work. They establish a connection to the question Ferracane and colleagues posed, while the details of how each citing study used the earlier experiments remain open.

Predicting Discourse Structure using Distant Supervision from Sentiment places prediction of discourse structure alongside a source of supervision based on sentiment. Distant supervision here points to using a signal available for a related task to guide a harder target. Ferracane and colleagues’ attention trees give a reason to examine the distinction carefully. A sentiment task can favor terms that disclose a rating. A discourse prediction task has to account for how the text’s units are organized. The title identifies which of those outcomes is the target of Predicting Discourse Structure using Distant Supervision from Sentiment.

The MEGA RST work names two outputs of treebank construction, structure and nuclearity, and describes its supervision as scalable and drawn from sentiment. Nuclearity matters to Ferracane and colleagues because it is the basis for deciding which units become central when an RST tree is converted to dependencies. A resource that describes both structure and nuclearity concerns information that the classifier’s label leaves implicit. The link to the earlier evaluation lies in the attempt to make this kind of structural signal available for MEGA RST Discourse Treebanks.

Large Discourse Treebanks from Scalable Distant Supervision continues the resource-construction direction indicated by that title. Its emphasis on scale speaks to the difficulty of acquiring expert annotations, which is part of the original motivation for latent induction. A discourse treebank provides a target for studying learned attachments in addition to the task labels. The title establishes large treebanks and distant supervision as the focus of Large Discourse Treebanks from Scalable Distant Supervision.

There is also a direction in which discourse parsing itself is the named problem. Guz and colleagues describe a neural parsing approach using context, structure, and large-scale pretraining. This carries forward the question of what information an encoder can supply to decisions about attachments, with parsing as the explicit focus. Ferracane and colleagues’ document LSTM comparison clarifies why the role of context matters. A contextual representation may make a task easier at the same time that the task places little demand on tree learning. The later title puts both context and structure in the foreground of Unleashing the Power of Neural Discourse Parsers.

Structured representations for other document tasks

Nan and colleagues’ work names document-level relation extraction as its task and latent structure refinement as its approach. Document-level relation extraction belongs to information extraction. At the level of research questions, the connection is that a representation can organize evidence spread across a document to serve a prediction. Ferracane and colleagues separate performance on that prediction from the interpretation of the underlying structure. That distinction provides a way to read a later title that explicitly connects learned structure with reasoning for a specific document task. Reasoning with Latent Structure Refinement

StructSum connects structured representations to summarization, one of the tasks that Ferracane and colleagues cite as motivation for studying discourse. The target changes the significance of a prominent sentence. In rating or stance classification, one explicit sentence can nearly state the answer. In summarization, the organization of salient content across the document is itself relevant to deciding what the representation should preserve. The later work’s title establishes structured representation as its approach to the task. StructSum

The original paper also discusses a contemporaneous summarization study by Liu and colleagues. It describes an iterative structured-attention algorithm related in spirit to the extra propagation passes. In that study’s design, summary sentences serve as roots, making several roots possible by construction. Ferracane and colleagues point out that the reported trees have low height and low edge agreement with RST. This is a concrete case in which the structure intended to serve a downstream task is defined differently from a conventional discourse hierarchy. It also shows why the evaluation question travels with the architecture. A useful summary-centered organization and an RST analysis can have different organizing principles.

Devatine and colleagues connect discursive structure with political bias prediction and explanation. The title puts explanation alongside an end-task label, which makes the meaning of the structure especially relevant. The earlier analysis of Congressional speech roots gives a point of comparison for the questions that arise in political language. A sentence can bear strong lexical evidence about a speaker’s position. An explanation based on discursive structure asks how evidence about the text’s organization bears on the output. The stated connection to political bias comes from An Integrated Approach for Political Bias Prediction and Explanation.

A broader role for structural evaluation

Araújo and colleagues’ title places the evaluation of sentence representations in a Spanish benchmark setting. The unit of representation and the language differ from the document-level English tasks in Ferracane and colleagues’ experiments. The shared methodological question is what tests can show about information encoded in a representation. The earlier paper pairs downstream accuracy with tree diagnostics because each measures a different property. The later title identifies representation evaluation as its subject in Evaluation Benchmarks for Spanish Sentence Representations.

The citing work on situated discourse approaches structure in a setting defined by the discourse situation. Ferracane and colleagues’ decision to use RST as a common tree reference was made for a particular kind of document encoder. Situated discourse broadens the question of which kind of structure a representation ought to recover. The title identifies structure in that setting as the subject of Modelling Structures for Situated Discourse.

Ni and colleagues’ work provides a systematic survey of deep learning for dialogue. A survey has a different role among the citing works from a study that constructs trees or applies structured representations to a document prediction. It places the earlier study in a wider literature on systems that process language across utterances. For Ferracane and colleagues, a text’s sequence offers both easy-to-detect position cues and possible relations that extend beyond adjacent units. That general problem of representation helps explain the relevance of the paper to a survey of dialogue systems. Recent Advances in Deep Learning for Dialogue Systems

Across these directions, the distinction introduced by the original evaluation remains concrete. A constituency of tasks can motivate structure because evidence must be combined across a text. Treebanks and discourse parsers instead provide ways to specify and check the organization itself. Ferracane and colleagues show what it takes to connect those aims empirically. The task decision, the information paths available to the predictor, and the attachments recovered for inspection each need evidence appropriate to what they are claimed to represent.

Cite

Cite as Elisa Ferracane, Greg Durrett, Junyi Jessy Li and Katrin Erk. 2019. Evaluating Discourse in Structured Text Representations. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/p19-1062

@inproceedings{ferracane2019evaluating,
  title = {{Evaluating Discourse in Structured Text Representations}},
  author = {Elisa Ferracane, Greg Durrett, Junyi Jessy Li and Katrin Erk},
  booktitle = {Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1062},
  url = {https://doi.org/10.18653/v1/p19-1062}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/ferracane-2019-evaluating-discourse-structured-text-representations/