Elamur Research

A Joint Model for Document Segmentation and Segment Labeling

Paper · 2020 · Joe Barrow, Rajiv Jain, Vlad Morariu et al.

Summary

A topic change in a document can be easier to spot if you know what the surrounding passages are about. Deciding what a passage is about, in turn, is easier once you know which sentences belong to it. Barrow and colleagues study these interdependent decisions in documents whose section breaks and headings must be recovered from the text. The task matters wherever those divisions affect how people read or use a document. In a clinical narrative, for example, a diagnosis can carry different implications depending on whether it appears in the patient’s history or in the account of the present visit.

The authors introduce the Segment Pooling LSTM, or S-LSTM. It represents each sentence as a vector, reads those vectors in document order, and predicts which sentences open new sections. A separate component then gathers the sentence vectors inside each proposed section and builds a representation for assigning its label. Training uses supervision for both decisions. At first, the labeler sees sections with their reference boundaries. Later it sees the sections the boundary predictor actually produces. A procedure that matches spans by sentence overlap supplies labels even when a proposed section cuts a reference section short or combines material from adjacent ones.

The principal experiments use WikiSection articles about cities and diseases in English and German. One task assigns a label from a fixed set of topics. The other predicts words from the original heading. Across the WikiSection datasets, the authors report an average reduction of more than 30% in segmentation error for the heading-word task. On German disease articles in that task, S-LSTM reaches 18.6 on the paper’s segmentation error scale, compared with 32.9 for SECTOR, and raises heading-word mean average precision from 36.7 to 46.1. The single-label results also favor S-LSTM on boundary prediction, although a sequence tagger earns the highest classification F1 on English city articles.

The authors test the relationship between the tasks directly on German disease articles. Learning to recognize section starts helps the labeler even when it receives the reference sections at evaluation. Adding section labels to training also helps a system whose job is to locate boundaries. Training on imperfect proposed sections brings a further improvement over training the labeler exclusively on reference sections. Transfer tests extend part of the result to additional Wikipedia collections. The clinical textbook test measures boundary prediction alone, since it supplies no section headings.

Deep dive: A Joint Model for Document Segmentation and Segment Labeling

Barrow and colleagues show how learning section boundaries and topic labels together improves document segmentation and labeling on Wikipedia. · about 32 minutes to read

The problem and its context

Finding the extent of a topic

A reader can frequently tell that a document has moved from one subject to another without seeing a heading. The decision draws on what has already been said, what follows, and how those passages fit together. The paper turns this observation into a prediction task. Given the sentences of a document, a system must determine where each section begins. It must also say what each resulting section covers. The output is an ordered division of the text into contiguous spans, with topical information attached to those spans.

The distinction between a sentence’s subject and a section’s subject matters here. A sentence may introduce an example, qualify a claim, or refer back to something discussed earlier. Its vocabulary can differ from the rest of the passage while its function still depends on that passage. Conversely, neighboring sections can use much of the same vocabulary while organizing the material around different questions. In a disease article, a shared disease name would be compatible with successive sections on different aspects of the disease. A predictor can therefore benefit from the document context around a sentence when deciding whether it opens a new span, and from the combined content of a span when deciding what label to assign.

Clinical text gives the paper a practical reason to care about both outputs. If a medical dictation is converted into a structured report, breaks indicate which statements belong together and labels give the groups a function. The same mention of a diagnosis can be interpreted differently in a history section and an intake section. The introduction cites this distinction in connection with medical coding. It also describes segmentation for finding relevant passages in text or speech whose structure is implicit, a use within information retrieval and search.

The reading example in the introduction makes a related point at the document level. Before reading a text carefully, a person can skim its organization and form expectations about where particular material will appear. A break makes the extent of a passage visible. Its heading adds a clue to what the passage will contribute. Both pieces of information can be missing in informal material. The paper asks how far the text alone can support recovering them, using documents whose original organization gives the researchers a way to check the predictions.

Earlier approaches based on coherence

The paper describes a line of work that treats boundaries as places where the continuity of a topic weakens. TextTiling uses patterns of term co-occurrence to find cohesive stretches of a document. The underlying clue is that words tend to recur around a discussion, and that the pattern can shift as the document moves elsewhere. The segmenter can use those changes even where no training collection identifies the correct break in each article. That is the approach associated with TextTiling.

Other systems in the paper’s account use richer kinds of evidence for continuity. TopicTiling represents passages through topic vectors and looks for changes in their coherence. GraphSeg constructs a graph of semantic relatedness using lexical features and word vectors, then draws on sets of mutually connected passages to form segments. SITS considers the identities of speakers in dialogue, allowing a speaker’s tendency to change the subject to enter the analysis. BayesSeg can incorporate features such as cue phrases into a probabilistic account of how the document is organized. These approaches differ in what they treat as evidence for a topic shift, as illustrated by BayesSeg.

When reference breaks are scarce, finding structure through regularities in the text is attractive because it can work without articles annotated for training. Wikipedia makes a different design possible. An article’s section structure can supply the targets, while its text serves as input after the visible section breaks are withheld. This use of naturally organized documents makes it possible to teach a system where sections start and, if headings are retained as targets, to teach it how section content corresponds to topical descriptions.

SECTOR uses that source of supervision to predict topics at the sentence level. Its subsequent segmentation stage examines the coherence of the internal sentence representations. A sentence receives topical information before the final spans are settled, so the location of a break depends on how the representations change across the text. This is the closest comparison in the paper for a system that returns both breaks and labels. Its architecture gives the authors a way to ask whether the unit of classification should be the sentence or the proposed section. SECTOR

Earlier approaches based on boundaries and sequence tags

Another route is to supervise the boundary decision itself. TextSeg learns where sections begin from Wikipedia articles with known structure. This gives a direct training objective for the positions of breaks. A system trained in this way can learn signals that tend to occur at transitions, including phrases used to open a different part of an article. Its objective is placement of the breaks, so an evaluation of topical labels requires another mechanism. The paper uses it as the principal earlier supervised comparison for direct boundary prediction. Text Segmentation as a Supervised Learning Task

Clinical sectioning had also been approached as a supervised task. The related work describes a logistic-regression system that predicts sections without evaluating their labels and a separate clinical system that does both jobs in a pipeline. In the pipeline, the document is divided first and the classifier then takes those divisions as input. This gives the labeler whole spans to examine, but the classification objective is learned separately from the boundary objective. Barrow and colleagues ask what each task can contribute to the other during training.

There is also a precedent at the scale of words. In Inside–Outside–Beginning tagging, a tag specifies how an item participates in a span. In a typed version of the scheme, the tag can also encode the kind of span. A conditional random field, or CRF, can score sequences of tags while accounting for transitions between them. The paper traces this combination through phrase chunking and named entity recognition.

The authors adapt that idea as a comparison for assigning a single topic to each section. The difficulty grows when a section can have several labels simultaneously. Each label is attached to the same section, so a sequence representation needs to keep the breaks consistent across labels. Accounting for transitions across the label space at each position becomes expensive in the formulation discussed in the paper. S-LSTM handles the combination at the span level. The sequence of boundary decisions defines the spans, and the classifier returns the applicable labels for each span. The single-label sequence tagger follows the design of Neural Architectures for Named Entity Recognition.

The closest concurrent problem the paper identifies is outline generation. That work seeks to divide a document and generate headings, potentially within a hierarchy. It evaluates segmentation by exact match and scores a generated heading when its span has been correctly found. Barrow and colleagues use tasks with predetermined label vocabularies and evaluate both boundaries and labels in ways that can give credit when a proposed span only overlaps the intended one. That difference in evaluation is central to their training design. Once a system can earn credit for the right label on an imperfect span, the question becomes how to teach it to make that prediction.

The method, step by step

From words to contextual sentence vectors

The input to S-LSTM is a document already divided into sentences. The output of its first stage is a sequence of vectors, with a vector in the same position as each input sentence. These vectors are the shared representation used to locate section starts and to classify sections. The authors make the sentence encoder replaceable in the architecture. The experiments use a recurrent encoder with a particular method of aggregating its states across a sentence.

The encoder begins with a word vector for each word. The paper uses fixed FastText embeddings for both English and German. Each has 300 dimensions, and a trainable linear layer projects it to 200 dimensions before the recurrent encoder processes it. Keeping the original embeddings fixed leaves the projection free to adapt to the task while preserving the incoming vectors. The pretrained vectors are FastText word embeddings.

The recurrent encoder is a bidirectional long short-term memory network, abbreviated LSTM. A recurrent network updates an internal state as it passes through a sequence. For a sentence encoder, the items in that sequence are words. Bidirectional processing reads the sequence from both ends, so the resulting states can reflect context on either side of a word. The architecture then has to turn the collection of states for a sentence of arbitrary length into a vector of fixed size.

The paper uses concatenated pooling for that conversion. It takes the coordinatewise maximum across the sequence of hidden states and the coordinatewise mean, and joins those summaries with the final hidden states. The maximum can retain a strong feature even when it occurs at only one position. The mean summarizes how the features are distributed across positions. The final states carry information accrued during the recurrent passes. Concatenation puts these sets of values next to one another so that each summary is available to the next stage.

The resulting vector is a representation of the sentence in the context of its own words. There is a separate opportunity to incorporate document context in the next recurrent stage, which moves through sentences. Keeping track of the levels helps explain the design. The first recurrence reads word order within a sentence. The next reads sentence order within a document. Later, the section pooler revisits the sentence vectors within a span whose extent can change as the boundary predictor improves.

How S-LSTM finds and labels document sections

The steps in order.

How S-LSTM finds and labels document sectionsStep 1: Project word embeddings into the encoder’s input space1. Project word embeddings into the encoder’s input spaceStep 2: Encode each sentence as a vector2. Encode each sentence as a vectorStep 3: Predict where new sections begin3. Predict where new sections beginStep 4: Group sentence vectors into section spans4. Group sentence vectors into section spansStep 5: Pool each span into a section vector5. Pool each span into a section vectorStep 6: Score the possible labels for each section6. Score the possible labels for each section

From sentence vectors to proposed sections

The section predictor reads the sequence of sentence vectors with another bidirectional LSTM. Its unit of prediction is the sentence. At each position it chooses between B, meaning the beginning of a new section, and I, meaning a sentence inside a section. The recurrent context allows the decision at a sentence to draw on the surrounding document. The output is a sequence of boundary indicators, from which the system can form its proposed spans.

The reference section starts determine the targets for this task during training. A sentence that opens a reference section gets the beginning tag, and the rest of that section gets the inside tag. The authors train the predictor with binary cross-entropy. This loss penalizes the system according to the probability it assigns to the observed outcome. The paper distinguishes its approach from the related boundary predictor in TextSeg by using the two classes directly, without estimating a separate decision threshold called tau in the earlier formulation.

A crucial consequence of grouping by boundary tags is that the input to section classification depends on the predictions. A break placed too early sends some sentences into the following group. Omitting a break combines material that belongs to separate reference sections. Predicting a break inside a reference section divides that material across groups. The section pooler must turn whatever span it receives into a representation suitable for classification, including when the evidence inside that span is incomplete or covers more than one topic.

From proposed sections to labels

For each span, S-LSTM gathers the vectors of its constituent sentences. The pooler then produces a vector for the span as a whole. This is a second sequence-to-vector problem, now over sentences. Averaging is the simple alternative evaluated in the paper. With mean pooling, each sentence contributes directly to a coordinatewise average. The full system instead uses an LSTM with concatenated pooling, allowing the section representation to depend on the ordered sequence of sentence vectors.

There is one classifier output for each section vector. In the fixed-vocabulary task, the target is a single topic category. In the heading task, multiple words can be correct at once. The paper uses cross-entropy for the single-label case and binary cross-entropy for the multilabel case. The boundary tags and the grouping operation have the same roles in both tasks. Switching to heading words changes what the classifier must score and how its loss is calculated.

The distinction between the reference heading and the target representation is important. The heading task reduces the title to a bag of words, meaning that the target records which vocabulary items belong to the heading and drops their order. The system can score several terms highly for the same section. It is therefore possible for the classifier to capture part of the reference heading, or to rank an appropriate word above an inappropriate one, without reconstructing the exact title. These are decisions about a set of labels within text classification.

The pooler can use evidence spread across a span. In an article about a city, one sentence might supply a place name already familiar from the rest of the article, while nearby sentences supply the information that distinguishes the section’s topic. A classifier that sees the pooled representation gets access to the combination. The architecture does not require each sentence to have its own topic prediction before it can be assigned to a span. The boundary predictor and the pooler use the sentence vectors for different purposes.

Teaching the classifier on reference and predicted spans

Early in training, the inferred breaks can be unreliable. This presents a problem distinct from learning the label vocabulary. A section can be so incomplete or topically mixed that its reference target gives little guidance about what a well-formed section looks like. The authors start by giving the pooler the reference spans. This is their use of teacher forcing, a training practice in which the known answer takes the place of an earlier prediction that would ordinarily supply a later stage’s input.

In this phase, the boundary predictor still learns from the true beginning and inside tags. The change concerns which breaks the classifier uses to gather its sentences. With teacher forcing, the classifier’s span corresponds directly to a reference section, and its target is the label attached to that section. The two tasks can train together while the classifier learns from spans whose contents are consistent with the headings used to supervise them.

A classifier trained exclusively in this way sees a different distribution of spans when deployed. At evaluation, it must label the sections that have been predicted from text. A classifier might have learned that a full section contains several corroborating sentences, for example, and then receive only the opening part of such a section. The paper’s exploration stage exposes the classifier to this situation during training. The boundary predictor proposes the breaks, and classification proceeds on the resulting spans.

A predicted span needs a training target even when its boundaries are wrong. The authors derive that target by aligning proposed sections with reference sections. Overlap is measured in the underlying sentences: the algorithm compares how much of the sequence of sentences is shared by the two spans. This makes it possible to assign labels to a prediction even if neither its start nor its end is exactly right.

Aligning the two segmentations

The alignment is greedy and operates in two passes. It begins with the reference spans. Each is paired with the predicted span that shares the most text with it. This ensures that every reference section contributes to at least one pairing. The procedure then finds predicted spans that received no partner in the first pass and gives each the most overlapping reference span. After the second pass, every predicted span also has a partner. The procedure described in the paper compares overlap locally for each pairing.

The arrangement handles both common directions of boundary error. Suppose a missing break has made a proposed section cover two reference ones. Each reference section can choose that same proposed span. During exploration, the aligned reference labels all count as correct for the proposal. If an extra break cuts one reference section into pieces, its largest overlapping predicted piece can be selected in the first pass. Another piece that remains unpaired can be linked to the same reference section in the second pass. The aligner supplies supervision in each case while leaving the boundary predictor’s proposal available for its own learning objective.

This many-to-many relation accommodates different numbers of predicted and reference sections. One-to-one matching would leave a difficulty as soon as the two segmentations contained different numbers of spans, requiring some spans to go unused or to be handled outside the match. Greedy overlap gives all of them a role. Its first pass preserves coverage of the reference document structure, and its second gives the classifier a target for every proposed span.

The same alignment rule is used in classification evaluation. That choice creates a connection between what the classifier learns to do during exploration and what the heading metrics reward. An aligned label can be recognized even when the predicted segment has a boundary error. The boundary metric still records the consequences of the misplaced break. Together the two scores can describe a prediction that is topically useful while still being an imperfect reconstruction of the document.

At ordinary prediction time, the classifier uses the proposed sections directly. Reference sections are necessary for supplying supervision during training and for computing the evaluation scores. The system’s ability to return labeled sections for a new document follows from the boundary and classification stages that precede the matching against a reference.

Learning from both objectives

The authors combine the boundary loss and the section classification loss in a weighted training objective.

L(X, y; θ) = α · Lseg(X, yseg; θseg) + (1 − α) · Lcls(X, ycls; θcls, aligner)

Here L is the total loss, X is the input document, y is its collection of training targets, and θ denotes the trainable parameters. Lseg is the loss for predicting sentence-level section starts. Its targets are yseg, and θseg denotes the parameters used by that part of the system. Lcls is the section classification loss, with reference section labels ycls and parameters θcls. The aligner determines the spans used for classification and their supervision, either by supplying reference spans during teacher forcing or by matching predicted spans to reference spans during exploration. The coefficient α weights segmentation, and 1 − α is the complementary weight on classification. The multiplication dots apply those weights to their respective losses, and the plus sign adds the terms.

The sentence encoder feeds both tasks. As a result, boundary supervision can help shape a representation that is later used in section classification. Classification supervision can also shape the sentence vectors that the boundary predictor reads. The architecture provides this connection through the shared computation, even when teacher forcing supplies the classifier’s spans. After the switch to exploration, the boundary predictor also determines which groups of sentence vectors the classifier sees. The paper describes this setup through the shared objective and the targets assigned to the selected spans. It gives no continuous formulation for differentiating through the discrete placement of a break.

The paper keeps the training settings the same across tasks and datasets. It reports a learning rate of 0.001 and weight decay of 0.9 for Adam.

The recurrent hidden layers have size 200, and trainable weights use Xavier normal initialization. The authors use a dropout probability of 0 after every layer other than the final classification layers.1 throughout. During training, this regularization randomly suppresses some activations, so predictions are learned with some of their usual inputs unavailable. The paper uses the same probability at each application of dropout.

In the exploration variants, teacher forcing lasts for 10 epochs. An epoch is a pass through the training data. Once that initial stage is over, the paper uses predicted spans and overlap alignment for classification training. This schedule lets the boundary predictor first learn how sections tend to start and lets the pooler first see coherent reference groups. The later stage then exposes the labeler to the actual grouping errors it may encounter. A comparison system continues to use reference spans for classification throughout training, allowing the authors to examine what the switch adds.

Experiments and results

What the datasets ask the system to predict

WikiSection is the main evaluation collection. Its articles come from two subject areas, diseases and cities, in English and German. Wikipedia’s structure supplies the reference segments, and the dataset retains both the original heading and a normalized label. The normalized labels are used for the task called WikiSection-topics. There are 27 available topics for English diseases, 25 for German diseases, 30 for English cities, and 27 for German cities. Each section in this task is evaluated against a single normalized topic.

The other task, WikiSection-headings, uses words in the section titles. The researchers remove stopwords, numbers, and punctuation from the headings, then keep vocabulary items that appear at least 20 times in the training data. Headings for subsections contribute their own terms and also include the words of their governing section heading. The paper illustrates the idea with the title of its dataset subsection, whose label also incorporates the surrounding experimental setup heading. The supervision therefore preserves some information about a subsection’s parent through its words, while the expected output remains a set of terms.

The usable heading vocabularies contain 179 terms for English diseases, 115 for German diseases, 603 for English cities, and 318 for German cities. These are the vocabulary sizes the authors say they confirmed with the dataset’s creators when reproducing the earlier work. The paper draws attention to the discrepancy between those sizes and the larger ones previously reported. This matters when interpreting the experiment: the classifier ranks terms within the filtered collections used here, and its scores describe that specific heading prediction task.

The two tasks use the same kind of boundary reference, so they also let the authors ask how changing the labels affects segmentation. Topic assignment uses compact inventories of category names. Heading prediction uses larger target sets and accepts several terms for an individual section. The step from one task to the other changes the difficulty and form of the section classification objective while leaving the document’s editor-defined breaks available for comparison.

The transfer evaluation asks a separate question about using what was learned on one article collection elsewhere. The English WikiSection disease and city tasks supply training data for those runs. Target evaluations use Wiki-50, Cities, Elements, and the Clinical Textbook dataset. Wiki-50 contains 50 randomly sampled Wikipedia articles with sections and headings. Cities and Elements also supply section breaks and headings. The clinical collection provides boundaries without headings, so the authors can compare segmentations there but have no topical classification targets for that test.

How boundaries and labels are scored

The boundary measurement is Pk, with lower values indicating closer agreement with the reference. Imagine moving a window along the document’s sentence sequence. At each position, the evaluator asks whether the sentences at the window’s ends belong to the same segment. It asks that question on the reference segmentation and again on the predicted one. A disagreement is counted when the two answers differ. The metric is the fraction of window positions at which the answers disagree, with a raw scale between 0 and 1. The paper sets the window width, k, to half the average reference segment size and reports values on the displayed scale used below.

A missed or extra boundary can therefore affect several window positions. A slightly misplaced break can still leave many of the pairwise judgments intact. This is the sense in which Pk gives partial credit. It measures the consequences of the boundary sequence for nearby pairs of sentences. A reader should distinguish it from the fraction of section starts misplaced and from exact agreement on complete spans. The paper uses the same evaluation idea for the systems it compares.

Classification starts by matching predicted and reference spans through the overlap procedure. For single-label topics, the authors report F1 and mean average precision, abbreviated MAP. F1 combines precision and recall, bringing together the correctness of the labels returned and coverage of the targets. MAP evaluates the ranking assigned to possible labels, rewarding systems that place correct labels earlier. The paper micro-averages its metrics, so the reported figures aggregate the decisions across the evaluation instead of giving each topic a separate equal contribution.

For the heading task, the paper reports precision at the first rank position, written Prec@1, and MAP. The first asks whether the highest-ranked word is one of the correct heading terms. MAP also considers where other correct terms occur in the ranked output. The distinction matters when a short heading contains several meaningful words. A system can retrieve a suitable first word while placing the remaining reference terms low in the list. Comparing both measurements gives a better picture of the ranking than either on its own.

The comparison systems

The WikiSection boundary results include C99, TopicTiling, and TextSeg. They provide reference points for earlier segmentation methods and for learning section starts directly from supervised examples. The C99 comparison comes from Advances in domain independent linear text segmentation.

For classification as well as boundaries, the authors compare with the SECTOR configurations that use pretrained embeddings, using the topic and heading versions in their respective experiments. They also implement an LSTM-LSTM-CRF system for the single-label task. The CRF system predicts labels through a sequence tagging formulation, giving the paper a comparison with another way to represent typed segments. On the additional datasets, the baseline selection includes GraphSeg, BayesSeg, and pretrained versions of TextSeg and SECTOR. The paper indicates where a TextSeg result used the target dataset’s training portion, since that changes the interpretation of a transfer comparison.

WikiSection topics

S-LSTM records the lowest published Pk in the single-label comparison for each of the WikiSection collections. On English disease articles, it scores 20.0, compared with 23.9 for the CRF system, 24.3 for TextSeg, and 26.3 for SECTOR. On German disease articles, S-LSTM scores 18.8, the CRF system 23.6, and SECTOR 27.5. The city comparisons are closer against the CRF. On English city articles, the Pk values are 9.1 for S-LSTM and 9.7 for the CRF. On German city articles, the corresponding values are 9.5 and 10.2.

For English disease topic classification, S-LSTM obtains F1 of 59.3, compared with 57.2 for the CRF system and 55.8 for SECTOR. On German disease topics, S-LSTM reaches 55.6 and the CRF reaches 51.4, while SECTOR reaches 48.9. The German city F1 results are 76.5 for S-LSTM, 74.0 for the CRF, and 71.0 for SECTOR. The English city evaluation provides the exception to the general F1 ordering between the two joint approaches.

WikiSection English city topics F1 by system

The CRF tagger leads on topic F1, with S-LSTM ahead of SECTOR.

WikiSection English city topics F1 by systemSECTOR: 71.6SECTOR71.6LSTM-LSTM-CRF: 77.5LSTM-LSTM-CRF77.5S-LSTM (this paper): 76.1S-LSTM (this paper)76.1
The numbers
System or settingF1
SECTOR71.6
LSTM-LSTM-CRF77.5
S-LSTM (this paper)76.1

S-LSTM’s MAP scores for topics are 72.4 on English diseases, 69.0 on German diseases, 83.5 on English cities, and 84.5 on German cities. SECTOR’s corresponding scores are 69.4, 65.1, 81.0, and 81.1. The CRF comparison has no MAP entries, so its English city F1 lead concerns the classification measure that is available for both systems. Taken together, the city figures illustrate that the system with the strongest boundaries can differ from the system with the highest F1, even with classification evaluated on aligned spans.

WikiSection headings

On the heading-word task, the boundary finding is again consistent across the collections. S-LSTM’s Pk is 19.8 for English disease articles, 18.6 for German disease articles, 9.0 for English city articles, and 8.2 for German city articles. The corresponding SECTOR values are 30.7, 32.9, 17.9, and 19.3. The paper reports an average Pk reduction of over 30% across WikiSection on this task. It also notes that S-LSTM’s segmentation scores remain close across the topic and heading tasks even though the section classifier has a different kind of target.

WikiSection German disease headings segmentation error by system

S-LSTM has the lowest boundary error on the German disease heading task.

WikiSection German disease headings segmentation error by systemC99: 42.7C9942.7TopicTiling: 45.4TopicTiling45.4TextSeg: 35.7TextSeg35.7SECTOR: 32.9SECTOR32.9S-LSTM (this paper): 18.6S-LSTM (this paper)18.6
The numbers
System or settingPk
C9942.7
TopicTiling45.4
TextSeg35.7
SECTOR32.9
S-LSTM (this paper)18.6

The classification gains over SECTOR vary in size. On English disease articles, S-LSTM obtains Prec@1 of 53.5 and MAP of 60.3, compared with 50.5 and 57.3 for SECTOR. On German disease articles, S-LSTM obtains 36.2 on Prec@1 and 46.1 on MAP. SECTOR’s scores are 26.6 on Prec@1 and 36.7 on MAP. These results describe ranking heading words for the predicted segments after alignment. They include the effect of any changes in the spans themselves.

On English city articles, S-LSTM earns Prec@1 of 73 and MAP of 71.3. SECTOR earns 72.3 and 71.1, respectively. Thus the clear English city boundary gain occurs alongside a much closer comparison on the ranking of heading words. On German city articles, S-LSTM’s Prec@1 is 74.1 and its MAP is 75.1, compared with 68.4 and 70.2 for SECTOR. Viewed across these datasets, the boundary score and the heading metrics give complementary information about where the predictions change most.

The paper shows a randomly selected English city test document to illustrate what the scores mean in a concrete prediction. It marks which breaks coincide with the reference, which were added spuriously, and which were missed. The figure also displays the most highly ranked terms alongside the proposed spans, using the reference span with the largest overlap to judge those terms in the illustration. S-LSTM has no spurious breaks in that example and makes fewer visible heading-word errors than SECTOR. The illustration shows how an individual document can benefit, while the aggregate results measure the comparison over the collections.

Transfer beyond the training collections

On Wiki-50, the S-LSTM trained on English WikiSection cities obtains Pk of 22.7 and MAP of 16.6. The city-trained SECTOR obtains Pk of 40.5 and MAP of 13.4. TextSeg, trained on the corresponding target training data, is stronger on boundary prediction at 18.2. GraphSeg obtains 63.6 on Pk, and BayesSeg obtains 49.2. The comparison therefore supports the advantage over systems without target training in this table and also shows the stronger result available with target supervision.

The Cities transfer test is similar in that respect. The English-city S-LSTM obtains Pk of 21.2 and MAP of 54.2. The English-city SECTOR scores 33.3 on Pk and 53.6 on MAP. TextSeg, again with the corresponding training data, posts the lowest boundary error of 19.7. The paper’s transfer claim for the two Wikipedia city-trained systems is clearer on segmentation than on the heading rankings in this collection, where their MAP scores are close.

On Elements, the disease-trained S-LSTM is the strongest configuration shown for both measures. Its MAP is 19.1. The city-trained S-LSTM obtains MAP of 11.0, while SECTOR obtains 9.5 when trained on English diseases and 7.9 when trained on English cities. The boundary comparison also favors the disease-trained version of S-LSTM. Showing both English training sources matters because the name of a system by itself leaves out one of the choices that changed the result.

Elements transfer segmentation error by system and training source

The disease-trained S-LSTM has the lowest boundary error on Elements.

Elements transfer segmentation error by system and training sourceGraphSeg: 49.1GraphSeg49.1BayesSeg: 35.6BayesSeg35.6TextSeg: 41.6TextSeg41.6SECTOR from English diseases: 43.3SECTOR from English diseases43.3SECTOR from English cities: 41.0SECTOR from English cities41.0S-LSTM from English cities: 34.5S-LSTM from English cities34.5S-LSTM from English diseases (this paper): 30.2S-LSTM from English diseases (thispaper)30.2
The numbers
System or settingPk
GraphSeg49.1
BayesSeg35.6
TextSeg41.6
SECTOR from English diseases43.3
SECTOR from English cities41.0
S-LSTM from English cities34.5
S-LSTM from English diseases (this paper)30.2

On the Clinical Textbook data, the disease-trained S-LSTM obtains Pk of 36.1, close to 36.5 for the disease-trained SECTOR. TextSeg is stronger at 30.8, while BayesSeg records 57.8. The clinical result qualifies the broader transfer finding. The final system does well in the Wikipedia transfer comparisons against methods without corresponding target training. The clinical comparison gives a mixed ordering and evaluates boundaries alone.

What the ablations show

Training on the sections the system will produce

The authors compare the full S-LSTM on WikiSection-headings with a version that keeps teacher forcing throughout training. Both use the recurrent section pooler. This isolates the change from classifying only clean reference spans during training to classifying proposed spans after the warm-up. Evaluation in both cases uses the predicted sections, with their labels evaluated after alignment.

Adding exploration improves Pk on every collection in this comparison. On English disease articles, for instance, the teacher-forced variant records 20.8 and the exploratory system records 19.8. On German disease articles, the values are 19.1 and 18.6. English city Pk moves from 9.2 to 9.0, and German city Pk from 8.5 to 8.2. The boundary objective is still present in both variants. What changes is the material entering the classification branch, which gives the shared sentence representation different learning signals.

The classification measurements also improve throughout this comparison. For German disease headings, Prec@1 goes from 34.7 with teacher forcing alone to 36.2 with exploration, and MAP rises from 44.8 to 46.1. On English disease headings, the respective MAP scores are 59 and 60.3. The English city measurements move from 72.7 to 73 on Prec@1 and from 70.8 to 71.3 on MAP. German city MAP goes from 74.4 to 75.1. These are improvements for the complete switch in training procedure, which includes supplying predicted spans and assigning their targets through the aligner.

The authors also describe what happened when they tried exploration from the beginning. The boundary predictor failed to converge and overall performance was poor. They give no numerical results for these early-exploration runs. The report identifies a practical dependency in the successful setup: learning from imperfect sections was helpful once the system had learned something about where sections begin. Forcing reference spans during the initial stage supplied cleaner classification examples while the boundary predictions were still developing.

What the learned pooler contributes

The comparison for pooling changes how section vectors are constructed while keeping teacher forcing in place throughout training. The recurrent section pooler is compared with a coordinatewise mean of the sentence vectors. Because the exploration setting is held fixed, this comparison is the one that directly addresses the contribution of the richer pooler. It covers all four collections in the heading task.

The city results show its clearest classification gains. On English city headings, recurrent pooling yields Prec@1 of 72.7 and MAP of 70.8, compared with 69.7 and 67.2 for mean pooling. On German city headings, the recurrent version yields 73.8 and 74.4, compared with 64.1 and 66.7 for the mean. Their Pk results move in the same direction. On German city articles, for instance, the recurrent pooler’s system scores 8.5 against 10.2 for the mean-pooling variant. Since the classifier and boundary predictor share sentence features, a difference in how classification uses those features can accompany a difference in segmentation.

The disease results are mixed on classification. On English disease headings, the recurrent version records 52.1 on Prec@1 and 59 on MAP, while mean pooling records 52.3 and 59.5. For German disease headings, the recurrent version’s Prec@1 of 34.7 exceeds the mean’s 34.4, but its MAP of 44.8 is below the mean’s 45. Both disease collections favor recurrent pooling on Pk, at 20.8 versus 21.2 for English and 19.1 versus 19.8 for German.

The discussion in the paper describes the improvement in heading classification from recurrent pooling as applying across the four collections. The entries support a more specific reading. Boundary error favors the recurrent version throughout this comparison, both classification measures favor it on cities, and the disease ranking metrics give different verdicts. The full system with exploration and recurrent pooling earns higher heading scores than either ablated version throughout the table. The combination result and the isolated pooler comparison answer different questions, and the latter is the evidence for attributing a change specifically to pooling.

What each task teaches the other

The paper tests complementary supervision directly on the German disease heading task, whose vocabulary has 115 terms. In the first controlled comparison, the section labeler receives reference boundaries during training and evaluation. One version learns only to classify those spans. The other also trains a boundary predictor. Exploration is disabled, so both labelers are evaluated on the same clean spans. With boundary training added, Prec@1 rises from 42.3 to 43.3 and MAP from 52.1 to 53.3.

That design removes the possibility that the labeler’s score rose simply because it received better predicted sections at evaluation. Both versions see the reference segments for classification. The difference comes from adding boundary supervision while learning the representation used for the label task. It is especially informative alongside the main experiment, where a classification improvement can reflect better spans as well as better labeling of those spans.

The reverse comparison adds classification supervision to boundary training. With boundary prediction alone, Pk is 21.8. When the system also learns to label the sections, Pk is 19.1. The joint version obtains Prec@1 of 34.7 and MAP of 44.8 for heading classification in this setup. Those are scores for the heading comparison that accompanies boundary prediction, while 43.3 and 53.3 above describe label evaluation with the reference spans supplied. The classification figures belong to different test conditions.

Taken together, the controls show both directions of the effect within this dataset. Boundary supervision helps classify fixed sections, and label supervision helps locate section starts. The evidence comes from changing the learning objective within the architecture. It complements the comparison against the CRF, which compares different architectures on the single-label task. That broader comparison favors S-LSTM on all reported boundary scores and most F1 scores, with the English city F1 result marking where the tagger remains stronger.

Limitations

Limits identified by the authors

The paper tests a recurrent sentence encoder and leaves other encoders for future work. The authors are particularly interested in whether a transformer-based encoder could improve sentence representations. They also identify a practical issue with that extension. Encoding a whole document with a system such as BERT can exceed what fits on a GPU unless computation is split across devices. The paper’s architecture allows the encoder to be replaced, but the experiments establish the reported behavior for the recurrent configuration. The alternative the authors discuss is BERT.

The paper also leaves hierarchical segmentation open. Wikipedia makes relationships between sections and subsections available, and the heading preprocessing can pass parent heading words into a subsection’s target. The prediction itself is a flat sequence of spans. It has no output assigning a proposed subsection to a parent or distinguishing several levels of boundary. The authors suggest studying hierarchy as a further supervision source. The demonstrated benefit of learning breaks and labels together does not establish how a system would learn or use nested structure.

The training schedule is another limit visible in the authors’ own analysis. They found that supplying predicted spans from the start led to poor training. Their successful experiments give the classifier a period of teacher forcing before exposing it to imperfect proposals. The paper demonstrates this schedule and reports the failed alternative qualitatively. It does not provide a broader comparison of switch points that would establish how sensitive the results are to the length of the warm-up.

Limits of the tasks and comparisons

The main data come from Wikipedia articles organized by human editors. The reference breaks tell the evaluator how the article was divided, and the reference headings supply what to call those parts. Reported agreement is therefore agreement with an observed editorial choice. A different topical grouping might also make sense to a reader, particularly where the transition is gradual or one paragraph supports adjacent themes. The paper does not gather alternative human segmentations against which to examine such cases.

The labels define two specific versions of document understanding. The topic task uses compact category sets tied to the respective collections. The heading task scores frequent, filtered heading words. A term that occurs fewer than 20 times in the training headings is excluded from the latter vocabulary. Even a high heading ranking score therefore leaves open how the same approach would handle uncommon terms or compose a new title with natural word order. The paper’s outline-generation comparison puts that distinction in context, since generating headings is a different output task.

The classification metrics allow useful predictions on overlapping spans, but overlap itself can admit several interpretations. In exploration, a predicted section can inherit labels from multiple reference sections when it merges them. This supplies training signal and reflects that those topics occur inside the proposed span. It also means that success on aligned labels can coexist with a poor division of the text. The separate Pk score is important for evaluating that case. Likewise, Pk depends on disagreements at the chosen window width. It cannot establish how many complete spans would pass an exact boundary check.

There is also a difference between getting a correct classification score and recovering from a particular kind of boundary error. The exploration ablation evaluates the full policy of exposing the classifier to predicted spans and assigning labels by overlap. It leaves unanswered how much of the benefit comes from examples that split a true section, examples that merge neighboring sections, or examples whose boundaries are only slightly displaced. The method handles all of these cases through the same rule, while the reported experiments compare their effects in aggregate.

The direct tests of complementary supervision give a cleaner view of the learning objectives, at the cost of narrower coverage. They use German disease articles, one heading vocabulary, and the teacher-forced variants. The broader benchmarks support the performance of the assembled approach. Whether the isolated gains from adding each companion objective are equally large in different languages, article collections, or styles of section writing remains open. The deviations in the pooling comparison likewise make the effect of a component depend on which dataset and metric are under discussion.

The transfer experiments move between datasets using English WikiSection training sources. They test neither training in one language and evaluating in another nor a wide range of document genres. In the clinical test, no reference headings are available. The evidence there concerns finding breaks in a clinical textbook, and TextSeg has the stronger Pk result. Clinical dictation and medical coding motivate the research, but the paper does not measure clinical heading accuracy, the quality of a converted clinical report, or the effect of either output on coding.

Finally, the main tables present point estimates. They give no variability across independent runs that would help assess close differences, such as the English city heading MAP comparison against SECTOR. Larger and more consistent changes, such as the WikiSection heading boundary results, are visible directly in the reported values. The smaller ones describe the measured runs, leaving their stability across repeated training unquantified.

What came after

No later citing work is identified for this paper. The authors themselves leave two extensions open: stronger sentence encoders and the hierarchy of sections and subsections. The encoder question concerns what evidence is available to recognize a transition or describe a section. The hierarchy question changes what the system would have to predict, since the organization would include relationships among spans as well as their locations and labels. Both follow from the paper’s treatment of document structure. They remain questions proposed by the authors, with the experimental findings confined to the flat segmentation and labeling tasks examined here.

Cite

Cite as Joe Barrow, Rajiv Jain, Vlad Morariu, Varun Manjunatha, Douglas Oard and Philip Resnik. 2020. A Joint Model for Document Segmentation and Segment Labeling. Proceedings of the 58th 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/2020.acl-main.29

@inproceedings{barrow2020joint,
  title = {{A Joint Model for Document Segmentation and Segment Labeling}},
  author = {Joe Barrow, Rajiv Jain, Vlad Morariu, Varun Manjunatha, Douglas Oard and Philip Resnik},
  booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.29},
  url = {https://doi.org/10.18653/v1/2020.acl-main.29}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/barrow-2020-joint-model-document-segmentation-segment/