Elamur Research

A Transformer Based Approach towards Identification of Discourse Unit Segments and Connectives

Paper · 2021 · Sahil Bakshi and Dipti Sharma

Summary

A sentence can contain several pieces of information that do different jobs in a text. Before a system can work out how those pieces fit together, it needs to identify where they begin. A related problem is finding the words that explicitly signal a connection between pieces of text. Bakshi and Sharma tackle both problems in the DISRPT 2021 shared task. Their system, SegFormers, marks the beginnings of elementary discourse units in corpora that divide a text into units, and marks the spans of explicit connectives in corpora that annotate those signals. Both are entry points to discourse analysis, where the larger question is how parts of a text contribute to a coherent whole.

The system treats both jobs as decisions about individual tokens, the pieces of text it receives as input. It uses multilingual BERT to build a representation of each token in its sentence, then applies a linear classification layer to assign a label. This arrangement lets a decision depend on surrounding words while keeping the output tied to a specific position. The authors also handle a practical mismatch. BERT can divide an input word into smaller pieces, so a label attached to the original word has to be aligned with the resulting sequence. For plain tokenized documents, the system first predicts sentence boundaries so that it can process the text in shorter inputs.

The shared task covers 16 datasets, 11 languages and 3 annotation frameworks. The authors evaluate against a bidirectional LSTM baseline and compare their results with the best scores from the previous shared task. Their detailed results give SegFormers an F1 score of 97.09% for elementary discourse-unit segmentation on the treebanked English RST-DT test set, and 95.23% on its plain tokenized counterpart. For connective detection, the English Penn Discourse Treebank reaches 91.16% F1 in the plain setting. The authors report improvement over the previous shared-task results on 15 out of the 16 datasets overall. The Persian RST corpus was new to the task and received its first shared-task scores.

Segmentation generally scores higher when the system receives the annotated sentence boundaries that come with treebanked input. The Chinese portion of the Spanish–Chinese RST Treebank shows the largest decline the authors identify when those boundaries are replaced with predicted ones. The pattern varies across corpora. French ANNODIS scores higher with plain input, and English connective detection yields nearly the same F1 in both formats. These comparisons show where results depend on the way text is prepared for SegFormers. They leave open how much of the overall gain comes from multilingual pretraining, the choice of encoder, or the way the classification task is set up.

Deep dive: A Transformer Based Approach towards Identification of Discourse Unit Segments and Connectives

SegFormers uses multilingual BERT to find discourse-unit boundaries and explicit connectives, and tests how sentence boundaries affect each task. · about 31 minutes to read

The problem and its context

Finding the pieces of a coherent text

A discourse parser deals with structure beyond the grammar of an individual sentence. It aims to describe how a text develops and how its parts contribute to that development. In the authors’ account, segmentation is a prerequisite for this kind of analysis. A parser needs units it can relate to one another, and a system that identifies those units determines what material is available to the later stages. The paper situates that work within natural language processing.

The distinction between a sentence and a discourse unit matters from the beginning. Sentence boundaries provide a way to divide input into manageable passages. Discourse boundaries serve a different purpose. They mark the pieces into which an annotation framework divides the text so that rhetorical or discourse relations can be described. A sentence can contain internal discourse boundaries, so knowing where the sentence begins leaves some of the task to do. Conversely, even a correct set of discourse boundaries tells a reader only where the pieces are. A subsequent analysis still has to determine how they relate.

The paper motivates this work through applications such as question answering, summarization and sentiment analysis. Each can benefit from a representation that connects meaningful pieces of text. In a question-answering system, for example, the structure of a passage can help organize the material from which an answer is drawn. For summarization, dividing a passage into meaningful pieces gives a later stage units to consider when selecting what to retain. The shared-task experiments evaluate the initial identification step. Their scores measure the units or signals recovered from the text, leaving the performance of downstream applications as a separate question.

A boundary in one framework, a span in another

The authors work with corpora annotated under Rhetorical Structure Theory, or RST, Segmented Discourse Representation Theory, or SDRT, and the Penn Discourse Treebank framework, or PDTB. An annotation framework determines what human annotators mark and, in turn, what a system has to predict. The shared task puts those different targets into a comparable computational setting without treating them as interchangeable instances of linguistic annotation.

In the RST and SDRT data, the annotated units are non-overlapping spans that together cover a document. RST calls its basic pieces elementary discourse units, or EDUs. In these corpora, the shared task asks for the start of each unit. The order of those starts determines how the intervening text is grouped, since a unit extends until the next begins or the document ends. A prediction is therefore anchored at a particular token, although its consequence is a division of a larger passage.

The PDTB data assign a different job to the system. They mark the full span of a connective that signals a discourse relation explicitly. Such spans occur selectively, and the text outside them remains outside the connective annotation. The system needs to find the words that belong to the signal. Recovering only a likely starting word would leave out part of the target wherever the annotation includes more material. The paper traces this task to the corpus introduced in the Penn Discourse Treebank 2.0.

The existence of an explicit signal is itself a distinction. Discourse relations can also be implicit. A reader may understand how adjacent pieces of a passage fit together even when no expression announces the connection. The connective task concerns expressions that are present in the text and marked in the annotations. The shared task also introduced relation classification, but SegFormers addresses unit segmentation and connective detection. Its predictions supply locations that can be used in a fuller account of discourse structure.

From syntactic cues to learned representations

The paper describes earlier methods that drew heavily on sentence structure. Rule-based segmenters used cues such as phrase boundaries, clause structure and lexical expressions to find likely unit starts. In the work by Le Thanh and colleagues, syntactic evidence and cue phrases helped identify units within sentences. The method then used constraints about adjacency and textual organization when searching for a segmentation of the larger text. The search retained candidate analyses as it went, allowing choices within sentences to be considered together with the requirements of text-level segmentation.

Other work let observations in the annotated corpus determine the strength of those clues. Soricut and Marcu used probabilistic methods on English RST-DT. The authors place later neural work by Subba and Di Eugenio in the same line of investigation because it also uses RST-DT for discourse segmentation. Their account shows how an established corpus made it possible to change the decision procedure while retaining the annotation target. Soricut and Marcu’s sentence-level discourse parsing study

Some earlier systems were already making decisions at the token level. Sporleder and Lapata’s classifier drew on part-of-speech tagging, syntactic chunks and information about clauses. Fisher and Roark made use of features from sentence-level parse trees. Braud and colleagues examined the role of dependency information by introducing a segmenter that relied only on parts of speech. In that history, using token positions as decision points predates SegFormers. The change in this paper is how the information used at those positions is obtained. A pretrained encoder supplies contextual representations in place of a manually specified inventory of syntactic cues at the classifier input.

Syntax also mattered for connective detection. The paper describes work by Pitler and Nenkova that used syntactic features to identify connectives, distinguish their discourse uses and disambiguate the relations they signal. That work illustrates why a list of candidate words would be an incomplete solution. A detector has to consider the function of an expression in context. For Hindi, Jain and Sharma combined subtree extraction with linear tagging to identify connectives and their arguments, using data from the Hindi Discourse Relation Bank. The English and Hindi examples show different ways earlier work brought local structure to bear on decisions about explicit signals. Pitler and Nenkova’s study of connective disambiguation

Neural segmentation and multilingual evaluation

The paper describes a shift toward sequential neural approaches. In one approach, Li and colleagues used a bidirectional recurrent encoder and a pointer network to select boundary positions. The encoder reads the input in both directions, and the pointer component selects positions from that input. Wang and colleagues proposed an end-to-end segmenter that combined a bidirectional LSTM with a conditional random field. The recurrent component represented the sequence, and the conditional random field gave the system a mechanism for scoring label sequences together. The paper also discusses Wang and colleagues’ use of a fixed attention neighborhood, intended to keep unrelated material from influencing a boundary decision.

Work using attention was already part of the broader discourse-parsing literature described by the authors. It included hierarchical approaches and an investigation by Lukasik and colleagues that applied a Transformer approach to both discourse segmentation and document segmentation. The latter used RST-DT for the discourse task and Wiki-727K for the document task. The distinction is pertinent because a document can be divided into larger sections or into elementary discourse units, and those targets specify different kinds of boundary even when both are learned from text. Attention-based hierarchical discourse parsing and supervised text segmentation

The authors also place their work alongside multilingual segmentation by Braud and colleagues and earlier segmenters developed for individual languages. The shared-task setting brings those concerns together. A system has to contend with different languages, different quantities of annotated material and different conventions for what counts as a unit or a connective. Multilingual coverage alone does not make the target uniform. The annotation framework can change the prediction task even when the language stays the same.

A further issue, which the authors identify in work by Ji and Eisenstein and by Feng and Hirst, is whether the system receives gold sentence boundaries. Gold boundaries are the reference boundaries in the annotated data. They give a system reliable input divisions before it attempts discourse segmentation. When the input is a plain tokenized document, a sentence division must be obtained separately if the architecture requires it. Comparing those conditions matters because a discourse segmenter can inherit errors made during input preparation. Ji and Eisenstein’s text-level discourse parsing study and Feng and Hirst’s bottom-up discourse parser

The method, step by step

Turn the annotation into a decision at each position

SegFormers starts from a sequence of input tokens. In training, the sequence comes with reference labels drawn from the corpus. For RST or SDRT segmentation, the relevant positive decision is whether the token starts a discourse unit. For the PDTB task, the output has to identify the tokens that make up the annotated connective span. The architecture is shared across these tasks at the level of the procedure. It builds a representation for each position and classifies that position according to the prediction target of the corpus. This is an instance of text classification with a decision for each position in a text.

The position of the decision and the source of information for that decision are different things. The classifier produces a label for a token, but that token’s representation can incorporate information from the words around it. Such context matters because the same word can appear in different constructions and serve different purposes. A position near an annotated boundary can also look more or less plausible depending on the material to either side. The token-level design identifies where the prediction is made while leaving the encoder responsible for representing the context.

For unit segmentation, a set of correctly placed starts determines the division of the input in the annotation scheme. A misplaced start can both interrupt a unit and leave a neighboring unit without its correct beginning. For connective detection, the corresponding concern is whether the predicted span covers the expression recorded in the annotation. Working with positions gives the system a common interface for these outputs. The interpretation of a label still depends on whether the corpus asks for starts or for connective spans.

Prepare sentence inputs

The organizers supply two forms of data. The treebanked .conllu files include gold dependency parses and annotated sentence boundaries. A dependency parse describes grammatical relationships among words, while the sentence boundaries delimit the sequences that SegFormers receives. The plain .tok files already contain tokens, but their sequences extend across documents. They leave the system without the annotated sentence divisions available in the treebanked condition. Dependency parsing describes the kind of syntactic information carried by the richer files.

The paper describes treebanked inputs as suitable for BERT because the sequence lengths stay under its 512-token threshold. Plain document sequences can exceed that threshold. The authors follow the approach of Muller and colleagues and use the StanfordNLP sentence splitter to obtain sentence inputs from those documents. The splitter’s output supplies the grouping of tokens for the encoder. The later token classifier still decides where discourse units begin or which positions form a connective.

This preprocessing is part of the system evaluated on plain documents. It can affect what the encoder sees together. If a predicted sentence ends early, tokens that would ordinarily share a sentence input can appear in separate inputs. If a sentence division is missed, a larger stretch of text is processed together, subject to the input limit. These are consequences of the design, rather than errors the paper counts individually. The architecture description identifies sentence division as the practical difference between the input routes and reports no use of dependency arcs as classifier features.

Align the labels after WordPiece

The distinction between the shared task’s tokens and the encoder’s tokens is important. The corpus assigns its labels to the tokens in its files. BERT’s WordPiece tokenizer prepares a sequence in the vocabulary expected by the encoder. A word that is missing as a whole from that vocabulary can be represented by smaller pieces that are present. The paper uses this mechanism of subword tokenization to retain an input representation for such words.

Splitting a word changes the number of positions in the sequence fed to the encoder. The original labels were assigned before that split. If the label sequence were passed along unchanged, the position in the labels could diverge from the position in the input as soon as a word was divided. A label for a later word could then supervise the wrong position. The length mismatch is thus also a correspondence problem. A useful alignment has to preserve which original part of the text each prediction concerns.

The tokenizer provides offsets for the split words. These offsets record how the generated pieces correspond to the input text. SegFormers uses that information to adjust the label encodings so they match the tokenized sequence. The paper explains this alignment at the level of the procedure. The precise treatment of continuation pieces, including which positions receive a training label or participate in the loss, is left unspecified. The same distinction matters when interpreting the output. WordPiece determines the encoder’s working positions, while the shared task judges the annotated boundaries and connective spans in the corpus.

How SegFormers produces discourse labels

The steps in order.

How SegFormers produces discourse labelsStep 1: Read treebanked sentences or plain tokenized documents1. Read treebanked sentences or plain tokenized documentsStep 2: Split plain documents into predicted sentences2. Split plain documents into predicted sentencesStep 3: Convert input tokens into WordPiece tokens3. Convert input tokens into WordPiece tokensStep 4: Align training labels using tokenizer offsets4. Align training labels using tokenizer offsetsStep 5: Encode each sentence with multilingual BERT5. Encode each sentence with multilingual BERTStep 6: Classify token positions with a linear layer6. Classify token positions with a linear layerStep 7: Output unit starts or connective spans7. Output unit starts or connective spans

Encode the sentence and classify its positions

The encoder is the multilingual version of BERT, which the paper describes as pretrained on 104 languages. Pretraining supplies parameters already adapted to representing text before the discourse labels are introduced. The pretraining is self-supervised, meaning that the training signal is derived from the input text. The shared-task annotations then supply supervision for the positions and spans that SegFormers is meant to find. The authors use fine-tuning to adapt the pretrained encoder to that task.

BERT is based on the Transformer and attention. Attention allows the representation of a position to depend on other positions in the input sequence. In SegFormers, the sentence prepared for the encoder defines the available context. The encoder produces a hidden representation for each position. Here, a hidden representation is a vector of values produced by the encoder that the classifier can use as evidence. The linear layer reads those values and produces scores for the labels appropriate to the task. The encoder and the output layer therefore play distinct roles. One builds a contextual representation of the input, and the other turns that representation into a discourse decision. Attention Is All You Need

The authors motivate per-token classification by arguing that it gives the system a way to learn from each individual position and can reduce the influence of irrelevant text on a decision. The reported architecture still uses contextual information. Its classification layer reads a separate hidden representation at each position, and that representation already reflects surrounding tokens. The paper presents the architecture and data flow in prose and a diagram. It gives no formal equations for the classifier or the label alignment.

This setup also clarifies the difference between the final system and earlier approaches that score boundary or label sequences with additional machinery. SegFormers’ reported output layer is linear. The description does not specify a pointer network, a conditional random field or a separate stage that builds the complete discourse structure. The contextual interactions in the encoder carry much of the burden of making a plausible decision at each position. How well the simpler output layer performs is a question the authors address through shared-task evaluation.

Train the bidirectional baseline

The authors implement a bidirectional long short-term memory network, or LSTM, in PyTorch as a baseline. It takes the input tokens, looks up a vector for each one, and processes the sequence in both directions. Reading forward and backward gives the hidden representation at a position access to preceding and following material. A final linear layer reads the hidden states and predicts the labels. Both systems can therefore use context in making a token-level decision, although they obtain that context through different encoders and start from different representations.

The baseline uses 300 dimensional word embeddings initialized at random. A word embedding is the vector that represents a token before the recurrent processing begins. The paper specifies a hidden layer with 100 dimensions and dropout of 0.5. Dropout is a training operation that reduces reliance on particular activations by omitting them on some updates. The model trains with Adam at a learning rate of 1e-3, using one example per batch. The learning rate controls the scale of parameter updates, and the batch size determines how many examples are processed together for an update.

The authors use negative log-likelihood loss for this baseline. In this setting, it penalizes the system when it assigns low probability to the annotated label. They train for 5 epochs, with an epoch denoting a pass through the training data. This provides a recurrent comparison under a specified regime. The baseline differs from SegFormers in its initial text representations, its sequence encoder and its training settings, so the comparison concerns the two complete systems.

Fine-tune SegFormers

SegFormers uses Hugging Face’s PyTorch implementation of multilingual BERT. Its reported best configuration uses a training batch size of 8. The authors experiment with padding and truncation lengths, the learning rate and the number of training epochs. Padding supplies placeholder positions so that shorter sequences can be processed in the same batch as longer ones. Truncation controls how much of an input can be retained when it would exceed a chosen length. These settings matter because incoming sentence lengths vary and the encoder has a fixed maximum input length.

The authors obtain their best results by padding each batch to its longest member. That choice allows the padded length to vary with the sentences grouped together. They use AdamW with a learning rate of 1e-5 and train for 5 epochs for the reported best F1 scores. The paper identifies the selected settings and describes the kinds of changes explored. It leaves the separate scores for the other configurations unreported.

The organizers provide training, development and test partitions. The training partition supplies examples with labels that can be learned, and the development and test partitions give separate opportunities to evaluate the result. The baseline table gives development and test scores explicitly. In the final results, the paper says that the organizers average precision, recall and F1 over 5 runs. The settings and data routes together describe the pipeline being evaluated. The paper leaves some implementation details, particularly those concerning label alignment and decoding, at the level of the architecture description.

Experiments and results

The corpora and the comparison conditions

DISRPT 2021 contributes 16 datasets spanning 11 languages. Of these corpora, 11 use RST, 2 use SDRT and 3 use PDTB. The segmentation results combine the RST and SDRT corpora because both ask for unit beginnings. The connective results use the PDTB corpora because they ask for explicit connective spans. The English corpora illustrate how much the task can vary within a language. English RST-DT and GUM ask for RST boundaries, STAC asks for discourse-unit starts in an SDRT corpus, and the English Penn Discourse Treebank asks for connective spans. The English SDRT corpus comes from work on discourse structure and dialogue acts in STAC.

The training sets differ substantially in size. English PDTB has 1,061,229 training tokens and 1,156,657 tokens overall. The Chinese portion of the Spanish–Chinese RST Treebank has 9,655 training tokens and 15,496 tokens overall. Its training data come from 32 documents. English RST-DT, which supplies the strongest SegFormers segmentation result, has 166,854 training tokens in 309 training documents. These counts describe opportunities to learn the shared-task labels. The counts also come from different corpora with different annotation targets, so they provide context for the scores without isolating the effect of training volume.

Other cases give a sense of the range inside the segmentation evaluation. The Dutch RST corpus has 17,562 training tokens, and French ANNODIS has 22,515 training tokens. The Basque RST corpus has 30,690 training tokens, while the Persian RST corpus has 52,497. Persian was added as a surprise language when the test data were released. Its result measures performance on a newly included corpus and establishes a shared-task result for it. Earlier shared-task scores provide historical comparisons for established corpora. Dutch multilayer discourse annotation

The Chinese Discourse Treebank, the Mandarin Chinese corpus used for connective detection, poses a separate issue of access. It was unavailable freely, so the authors did not produce a local baseline result for it alongside the other corpora. The organizers ran the system and supplied the final scores during evaluation. This gives the final connective table coverage of the Chinese corpus, alongside English and Turkish. The Chinese RST corpus is a separate dataset, and its segmentation results answer a different question.

The two input conditions concern how the text reaches the system. The treebanked .conllu condition supplies annotated sentence divisions. The plain .tok condition begins with tokenized documents and uses predicted sentence divisions before running the encoder. A corpus can thus yield a pair of F1 scores under the same annotation target. This comparison describes the practical effect of using the plain-input route, including its sentence preparation, on that corpus.

What the scores measure

Precision measures how much of the predicted material agrees with the reference annotation. Recall measures how much of the reference annotation the system recovers. For discourse-unit segmentation, these correspond to agreement on positive boundary decisions and to coverage of annotated starts. Taking the harmonic mean of recall and precision gives the F1 score. A detector needs both reliable predictions and good coverage to score well. The paper reports all of these measures for the final system, with a run average supplied by the organizers.

The baseline table adds accuracy, which counts correct decisions across all positions. It is possible to agree with the annotation at many ordinary positions while missing a sizable share of the targets. The Turkish PDTB baseline illustrates how the metrics can diverge. Its test accuracy is 98.693%, while its test F1 for connective identification is 66.292%. The figures describe different aspects of performance. Accuracy reflects all labeling decisions, and F1 focuses attention on identifying the annotated items.

The paper supplies means separately for segmentation and connective detection. Those means make it possible to summarize each task across its corpora under a given input format. The per-corpus results remain important because the average can conceal substantial variation in how systems respond to predicted sentence boundaries. The precision and recall columns also help interpret a change in F1. A falling F1 can accompany a decline in both components or a shift that improves one while hurting the other.

The recurrent baseline

The bidirectional LSTM has development and test results on 15 datasets. On the Dutch RST corpus, its segmentation F1 is 85.362% on development and 85.308% on test. The latter is the strongest baseline segmentation F1 in the test table. English RST-DT yields 83.874% on development and 83.990% on test. At the other end of the segmentation results, the Chinese portion of the Spanish–Chinese RST Treebank yields 66.995% on development and 65.979% on test.

The authors connect the weak Chinese RST result to its small training set. The relatively small number of documents gives a system with randomly initialized word embeddings limited annotated experience. That explanation is plausible within the paper’s setup. The result is a comparison among corpora that differ in several respects, so it leaves the effect of data volume intertwined with language, annotation and the contents of the corpus.

Several baseline segmentation results show high precision paired with substantially lower recall. On Basque RST, test precision is 95.974% and test recall is 61.216%. On Russian RST, the corresponding values are 84.391% and 60.262%. The authors interpret this pattern as a sign that the baseline primarily finds generic discourse boundaries. The reported metrics show that many of its predicted starts are correct while many annotated starts remain unrecovered. An analysis of individual boundaries would be needed to identify which constructions or positions account for those misses.

In connective detection, the English PDTB baseline has a test precision of 78.870%, a test recall of 76.578% and a test F1 of 77.707%. The corresponding Turkish test scores are 62.632% precision, 70.405% recall and 66.292% F1. This contrast illustrates that the balance between precision and recall depends on the corpus, even within the same annotation family. The English baseline has higher precision than recall on test. In Turkish, recall is higher than precision, so its difficulty includes a greater share of predictions that do not match the reference.

Discourse segmentation with SegFormers

In the treebanked segmentation evaluation, SegFormers obtains a mean F1 of 90.93% across the RST and SDRT corpora. The mean precision is 90.74% and the mean recall is 91.24%. English RST-DT is the strongest entry in the detailed table, with 96.15% precision, 98.04% recall and 97.09% F1 on the test data. The authors identify it as a state-of-the-art result to the best of their knowledge. Their related-work discussion cites a reported RST-DT result of 94.3% F1 from Wang and colleagues. That earlier figure places the new result in the line of work the authors discuss, while the shared-task tables document the specific conditions of the SegFormers result.

Other strong treebanked scores include 96.39% F1 for Dutch RST, 96.20% for English STAC and 94.97% for German RST. The ordering of these corpora differs from their ordering in the recurrent baseline. This is consistent with the two systems making different use of the available text and training information. The score on STAC is particularly sensitive to the input route within SegFormers itself. Its F1 on plain input is 87.69%.

With the plain document input, mean segmentation F1 is 88.96%, with mean precision of 88.42% and mean recall of 89.65%. English RST-DT still leads the plain segmentation table at 95.23% F1. Dutch RST gives 95.07% and German RST gives 94.79%. For these corpora, the plain setting retains much of the performance seen with annotated sentence divisions. The range of movement is wider across the rest of the segmentation evaluation.

English RST-DT test segmentation F1 by SegFormers input format

SegFormers finds discourse-unit starts more reliably with annotated sentence boundaries.

English RST-DT test segmentation F1 by SegFormers input formatPlain tokenized input: 95.23Plain tokenized input95.23Treebanked input (this paper): 97.09Treebanked input (this paper)97.09
The numbers
System or settingF1 %
Plain tokenized input95.23
Treebanked input (this paper)97.09

The Persian RST evaluation supplies a result for each format on the newly introduced corpus. SegFormers obtains 92.32% F1 with treebanked input and 91.90% with plain tokenized input. The component measures move in opposite directions. Precision is 90.53% with the treebanked files and 94.20% with the plain files, while recall is 94.18% with the treebanked files and 89.70% with the plain files. The similar F1 scores reflect different operating behavior. The plain route recovers a smaller share of annotated boundaries while making a greater share of correct positive predictions.

The paper gives a direct historical comparison for the plain tokenized Basque RST data. SegFormers scores 88.52% F1, compared with the earlier shared-task best of 84.06%. That comparison holds the reported input format and corpus fixed. It is distinct from the comparison between the two SegFormers input formats, in which the Basque score is 87.94% F1 with treebanked input. Basque therefore figures in two claims. The system improves the previous plain-format result, and its own plain-format result is also higher than its treebanked one.

Plain tokenized Basque RST segmentation F1 on the shared task

SegFormers exceeds the previous shared-task best for this corpus and input format.

Plain tokenized Basque RST segmentation F1 on the shared taskPrevious shared-task best: 84.06Previous shared-task best84.06SegFormers (this paper): 88.52SegFormers (this paper)88.52
The numbers
System or settingF1 %
Previous shared-task best84.06
SegFormers (this paper)88.52

The results section reports improvement over the earlier shared task in the treebanked setting, with French ANNODIS as the exception it identifies. For plain document input, the authors report better scores on 14 out of the 16 datasets, and identify French ANNODIS and the Chinese portion of the Spanish–Chinese RST Treebank as the cases below the earlier best. These are comparisons against earlier shared-task results. French ANNODIS can improve when SegFormers goes from one input format to the other and still fall short of the corresponding historical comparison.

The authors describe the performance on Chinese RST as the most pronounced decline when moving to plain input. Its F1 is 81.29% in the treebanked setting and 71.70% in the plain one. The plain-input precision of 65.52% accompanies recall of 79.17%. In the treebanked setting, precision is 79.89% and recall is 82.74%. The change is visible especially in the reliability of the proposed starts. How it arose cannot be determined from the score columns alone, since the paper gives no breakdown by sentence-split error or boundary type.

Explicit connective detection

The PDTB connective results cover English, Turkish and Mandarin Chinese. The highest F1 in the table is 91.16% on plain tokenized English PDTB. The treebanked English score is 91.14% F1. The treebanked run has 89.72% precision and 92.61% recall, while the plain run has 90.37% precision and 91.96% recall. A similar F1 in the two conditions therefore accompanies a different precision and recall balance. The evidence supports describing the English result as stable at the level of rounded aggregate scores reported by the paper.

SegFormers connective detection F1 on the plain PDTB datasets

English gives the highest plain-input F1, followed by Turkish and Mandarin Chinese.

SegFormers connective detection F1 on the plain PDTB datasetsMandarin Chinese CDTB: 84.27Mandarin Chinese CDTB84.27Turkish TDB: 90.19Turkish TDB90.19English PDTB (this paper): 91.16English PDTB (this paper)91.16
The numbers
System or settingF1 %
Mandarin Chinese CDTB84.27
Turkish TDB90.19
English PDTB (this paper)91.16

Turkish PDTB reaches 90.79% F1 with treebanked input and 90.19% with plain input. Its recall values, 91.16% in the treebanked condition and 91.04% in the plain condition, are close. Precision moves from 90.42% to 89.36%. For the Mandarin Chinese Discourse Treebank, the organizer-supplied scores give 86.25% F1 for treebanked data and 84.27% for plain data. In this case, precision is 85.04% with treebanked input and 85.24% with plain input, while recall moves from 87.50% to 83.33%. The balance of the change thus differs between the Turkish and Chinese corpora.

The connective table gives mean F1 of 89.39% for treebanked input and 88.54% for plain input. These means summarize the results for the connective task as a group. They also show that the general input-format pattern holds at the level of the mean even though English PDTB slightly favors the plain condition. The apparent advantage of treebanked input varies across both the task and the corpus. The connective and segmentation means describe different targets and therefore answer separate questions about the performance of the system.

What the ablations show

The paper reports no component ablation with matched settings. Its closest controlled comparison is the evaluation of SegFormers in treebanked and plain input conditions on the same corpora. The paper also reports preprocessing and training choices explored during development, compares the complete Transformer system with a recurrent baseline, and discusses where precision and recall account for different patterns in F1. These analyses reveal how performance varies with the input route and the system as a whole.

What changes when sentence divisions are predicted

The two input formats are especially useful because each pair of results concerns the same annotation task on the same corpus. For a segmentation corpus, both scores are for its discourse-unit starts. For a PDTB corpus, both concern its connective spans. The documented change in the input route is from using the supplied sentence divisions to producing divisions with the StanfordNLP splitter. The authors infer from the general pattern that gold sentence boundaries help. That interpretation is consistent with the architecture, since a sentence division determines which tokens the encoder can use as context for one another.

The individual score pairs show why this is a general tendency rather than a rule for every corpus. The conspicuous treebanked advantages in English STAC and Chinese RST coexist with cases in which plain data produce a higher F1. French ANNODIS has 87.39% F1 with treebanked input and 88.34% with plain input. Its precision is higher with plain input, while its recall is higher with treebanked input. Basque RST also favors plain input in F1. Portuguese RST yields 93.35% F1 in both conditions, and English PDTB shows a small movement toward plain input.

The discussion in the paper names Basque and Spanish RST as exceptions to the general treebanked advantage. The displayed Spanish scores favor the treebanked condition for both of its RST entries. The Spanish RST Treebank scores 91.66% F1 on treebanked data and 90.25% on plain data. The Spanish portion of the Spanish–Chinese RST Treebank scores 84.89% and 83.19%, respectively. The figures support the broader tendency in the authors’ discussion and point to Basque and French ANNODIS as the segmentation corpora with higher plain scores.

There is also a distinction between receiving a treebanked file and using its dependency annotations. The treebanked files supply gold syntax, and some descriptions of the condition refer to that syntax. In the architecture as described, the input sequence goes through a tokenizer and then BERT. The paper identifies sentence boundaries as the explanation for the general advantage and does not specify dependency features as additional inputs. The comparison therefore informs expectations about the supplied sentence divisions and the predicted-split pipeline. It cannot assign a measured contribution to dependency arcs or other syntactic features.

Which conclusions the baseline supports

The baseline comparison shows that the full SegFormers system can recover more annotated targets while keeping precision high. Basque is a clear case. The recurrent baseline has high precision and much lower recall, while the treebanked SegFormers result has 87.23% precision and 88.65% recall. Its higher F1 comes with a more even balance and greater coverage, despite the drop in precision. This example gives substance to the distinction between a system that proposes relatively few boundaries successfully and one that identifies a larger share of the boundaries in the annotation.

The comparison cannot attribute that change to a single architectural choice. The recurrent baseline starts from randomly initialized embeddings. SegFormers starts from multilingual pretraining and uses a different encoder, batch size, optimizer and learning rate. Its preprocessing includes a word-to-subword alignment step as well. Both systems use a linear classifier over contextual representations. A comparison that isolates the effect of the classification formulation would have to hold the encoder, training regime and input preparation constant while varying the output formulation. The paper reports the performance of the complete designs.

The authors’ explanation in terms of learning at individual positions is consequently best understood as a motivation supported by the competitiveness of the end-to-end result. It shows that the discourse tasks can be approached successfully with token decisions based on a pretrained encoder. It leaves open whether a different decoding method on the same representations would give similar or better results. The earlier literature serves as context for this design choice, but it provides no directly matched alternative decoder inside the experiments.

What the tuning report establishes

The tuning report identifies batch-dependent padding as part of the best configuration. It also specifies the optimizer, learning rate and duration of training for that configuration. Those facts establish which settings accompanied the reported scores. The paper describes trying different padding and truncation lengths and changing the rate and duration of training, but supplies no comparative scores for those trials. The magnitude of each setting’s contribution remains unknown.

The same distinction applies to the Mandarin Chinese RST result. The finding that the smallest training corpus has a relatively weak baseline and a marked decline under plain input makes it a revealing case for further analysis. The paper reports its data size and the outcomes under both input formats. It supplies no run in which the amount of training data is varied for that corpus, and no audit linking a predicted discourse boundary to a particular sentence-splitting error. The evidence identifies the gap in performance and suggests a plausible explanation without measuring the separate causes.

Limitations

Limits and future work identified by the authors

The authors explicitly describe an input-length limit. Treebanked sentence inputs fit the reported 512-token threshold, while plain document inputs can exceed it. Their solution is to split the documents automatically into sentences. This brings plain documents into the input pipeline and also makes the quality of sentence division part of the evaluation. The authors report a general benefit from gold boundaries while acknowledging departures from that pattern. Sentence splitting addresses the length problem by determining what text is presented together to the encoder.

The authors also identify a coverage constraint for Chinese connective detection. Since the Chinese Discourse Treebank was unavailable freely, the organizers evaluated SegFormers and returned the scores. The final table consequently contains a result that the authors could not obtain directly in the same way as the English and Turkish results, and the baseline table lacks a corresponding Chinese connective entry. The organizer-supplied scores establish performance in the shared task for that corpus. A direct baseline comparison remains unavailable there.

The paper ends by describing work in progress on a curated Hindi dataset and a system for Hindi connective identification. This follows naturally from the authors’ emphasis on diversity in languages and annotation settings. The completed evaluation concerns the datasets of the shared task. The Hindi effort is a stated direction and carries no result in this paper.

Limits of the experimental design

The range of languages establishes breadth of evaluation. It does not by itself establish transfer to a language without task-specific annotations. SegFormers begins with multilingual pretraining, and the shared-task datasets come with training, development and test partitions. The data and evaluation described in the paper leave several questions open, including how the system would perform if a language were withheld during task training, and how much benefit came from joint multilingual task supervision as opposed to the pretrained encoder. The language coverage should be understood through the actual benchmark conditions.

Corpus differences also limit explanations for the ranking of results. Language, annotation framework, dataset size and the type of text vary together. English PDTB provides a large connective-detection training set, whereas the Chinese portion of the Spanish–Chinese RST Treebank provides a much smaller segmentation set. A comparison between those corpora would change the task as well as the training volume. Even within the RST corpora, differing text and annotation practices may accompany changes in size. The paper’s corpus statistics help explain why a result might be difficult to obtain, but the experiments do not isolate the effect of each difference.

The sentence-based input route limits what the encoder can see at a given position. WordPiece tokens can draw on context within their prepared input, and the description does not specify a mechanism for exchanging encoder context across sentence inputs. This matters for interpreting the phrase “document level” in the results. The plain condition starts from document-length sequences, then divides them for processing. Its scores evaluate a system applied to documents through sentence inputs. They leave the value of direct cross-sentence context unmeasured.

The architectural account is detailed enough to explain why sub-word alignment is needed, but it leaves practical choices unspecified. A precise recreation would need to know exactly how continuation pieces are labeled or masked during training and how their outputs are mapped back to original corpus tokens. The paper also gives no separate accounting of the cases where automatic sentence splitting produces an overlong input. These details could affect how a reimplementation handles rare words, long sentences and the boundaries of multi-token connective spans.

The paper reports averages over 5 runs, but it does not give variation across those runs. A small separation between reported F1 values, such as the English PDTB format comparison, cannot establish which configuration would consistently win. The tables also lack a statistical test for differences discussed in the results. Large and small score movements are both visible in the reported figures. Their repeatability at the level of individual corpora remains uncertain.

There are discrepancies in the presentation of some results. The abstract gives 97.02% F1 as the best result for treebanked English RST-DT, while the detailed results table and the test-set discussion give 97.09%. The detailed figure has an explicit split and associated precision and recall, so it is the one used for the RST-DT comparison above. In the English PDTB baseline discussion, the prose gives an F1 of 78.629%. The split-labeled table gives 78.692% on development and 77.707% on test. Keeping the table values tied to their columns preserves the distinction between development and test performance.

The overall improvement claim also needs to be read with the results for individual corpora in view. The paper reports improvements on 15 out of the 16 datasets overall and marks Persian RST as newly introduced. Persian’s first scores establish a starting point for future comparison. The strongest directly supported historical comparisons are those with an identified earlier value under a specified condition, such as the plain Basque result. The broad claim describes the authors’ assessment across the shared task, while the data for individual corpora determine what kind of comparison each one allows.

Finally, the evaluation measures discourse-unit starts and explicit connective detection. A downstream use would need to establish whether improved identification changes relation classification, a document-level discourse analysis or performance in a separate application. Those outcomes are outside the experiments. SegFormers demonstrates the viability of using token-level classification for the shared-task identification problems, and its strongest claims concern those measured outputs.

What came after

ThinkStruct: RST-Aware Attention for Logical Reasoning in Machine Reading Comprehension cites SegFormers and brings Rhetorical Structure Theory into attention for logical reasoning in reading comprehension. Its stated task is further along the processing chain. SegFormers learns to identify elementary units in RST data, while ThinkStruct treats rhetorical structure as information relevant to reasoning about a passage.

The relationship is clearest at the level of the questions the two works ask. Bakshi and Sharma measure how accurately a system can recover the starts of annotated discourse units under different input conditions. ThinkStruct asks about the use of rhetorical structure in reading comprehension. The citation connects that downstream use of discourse structure with earlier research on identifying its elementary pieces. The documented connection establishes the shared interest in RST. It leaves open whether ThinkStruct uses SegFormers to obtain boundaries or adopts any particular part of its preprocessing and classification pipeline.

Cite

Cite as Sahil Bakshi and Dipti Sharma. 2021. A Transformer Based Approach towards Identification of Discourse Unit Segments and Connectives. Proceedings of the 2nd Shared Task on Discourse Relation Parsing and Treebanking (DISRPT 2021).

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

@inproceedings{bakshi2021transformer,
  title = {{A Transformer Based Approach towards Identification of Discourse Unit Segments and Connectives}},
  author = {Sahil Bakshi and Dipti Sharma},
  booktitle = {Proceedings of the 2nd Shared Task on Discourse Relation Parsing and Treebanking (DISRPT 2021)},
  year = {2021},
  doi = {10.18653/v1/2021.disrpt-1.2},
  url = {https://doi.org/10.18653/v1/2021.disrpt-1.2}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bakshi-2021-transformer-based-approach-identification-discourse/