ANTS: A Framework for Retrieval of Text Segments in Unstructured Documents
Paper · 2022 · Brian Chivers, Mason P. Jiang, Wonhee Lee et al.
Summary
An annual report can discuss employees in several places, yet an accounting researcher may need the particular passage the company presents as its human capital disclosure. Finding that passage is harder than looking up a heading. Companies use different titles, combine different workforce topics, and allot different amounts of space to them. A sentence elsewhere in the report may sound like part of the disclosure, while a sentence inside it may have little to say about employees by itself. Brian Chivers and colleagues propose Assisted Neural Text Segmentation, or ANTS, to recover a passage of this kind from a small collection of manually marked reports.
The authors test ANTS on 393 Form 10-K filings from S&P 500 companies. Workers first mark the disclosure in each filing. For a given training run, ANTS learns from a small subset of these reports. It turns the marked and unmarked text into overlapping samples and trains the final classification layer of a pretrained BERT encoder. On an unseen report, it scores sentences individually and in neighboring groups. A final selection rule uses both sets of scores to return a continuous passage. This last step puts the researchers’ knowledge of the filing into the procedure. The desired disclosure appears as a single section, so its sentences should be recovered together.
With 5 training reports, the method recovers at least part of the disclosure in 96% of unseen reports. The paper separately measures how closely the returned passage matches the marked section. Once performance levels off around 5 training documents, the mean Jaccard index, which compares the sentences shared by the two spans with all sentences covered by either span, ranges from 0.75 to 0.79 when the method uses both individual and neighboring scores. With individual scores alone, it ranges from 0.43 to 0.48. The contextual procedure retrieves more of the disclosure, while the individual-sentence procedure has higher precision.
The comparison also shows why examples should be counted at the level of the researcher’s work. Sliding windows create many inputs from a few marked reports, and training on those windows gives more consistent results across different choices of reports than training on whole sentences. The demonstration concerns one kind of disclosure in one collection of filings. Its broader proposal is to make section retrieval easier by combining reusable language representations, a small amount of manual marking, and a selection rule adapted to the passage a researcher needs.
Deep dive: ANTS: A Framework for Retrieval of Text Segments in Unstructured Documents
ANTS learns from a few labeled annual reports to locate human capital disclosures and uses surrounding sentences to recover more of each section. · about 34 minutes to read
The problem and its context
What the researcher wants to retrieve
A company’s annual report is both a regulatory document and a source of evidence about the company. Its text describes operations, management, and financial performance. It also gives researchers language they can examine for themes, style, and expressions of sentiment. Which words a firm uses and which subjects it discusses may matter to an investigation. Before any of that analysis begins, the researcher has to decide which part of the report belongs in the evidence.
The case in this paper arises from a reporting requirement. In November 2020, the Securities and Exchange Commission began requiring registrants to include information about their human capital resources in Form 10-K. Accounting researchers can use those disclosures to study how firms describe their workforce, including whether they report particular diversity measures. The immediate retrieval job is to identify the passage presented as the disclosure. Once that text has been isolated, it can be read or analyzed for any of the questions that gave the researcher a reason to collect it.
A requirement to disclose information still leaves companies room to present it in different ways. One firm might use a heading about human resources, while another uses a heading about talent or employee engagement. The material underneath can combine hiring, compensation, benefits, diversity, and culture in different proportions. A target defined by its function in the report can therefore vary in name, length, and internal organization. The filings have enough regularity for a human to identify a disclosure as a passage, yet the paper describes enough variation to make uniform extraction difficult.
There is also a difference between the subject of a sentence and the job it does in a document. A statement about employees can appear outside the official disclosure. For a researcher assembling examples of workforce language, that statement may be relevant evidence. For a researcher collecting the official sections, its location puts it outside the requested result. Conversely, a sentence may belong to the section even though it conveys little about the workforce when read in isolation. The paper’s objective depends on both the language and the place of a passage in the report. It is a passage-level problem in information retrieval.
The word segmentation can suggest a complete map of a document, with every topic assigned its own interval. Here the desired output is narrower. The researcher specifies the kind of passage to look for, and the system tries to recover its boundaries. The rest of the report serves as the place where that passage has to be found. The final output preserves the authored order and the intervening sentences. These properties matter when a passage will be read as a unit or used as the basis for subsequent information extraction.
Why text measures leave retrieval work to do
The authors start from methods that social scientists and business researchers already use. A dictionary can turn a long report into a score by counting occurrences of carefully chosen words. The financial-text example in the paper uses a vetted list of words expressing uncertainty to approximate the extent of prospective discussion. The LIWC example assigns words to psycholinguistic categories, allowing broad themes such as anxiety or religion to be measured. In each case, the researcher can build a feature that summarizes aspects of a document.
These methods serve a different purpose from marking the beginning and end of a disclosure. Language for the same subject can vary enough that a word list misses relevant passages. A word can also bear on different subjects in different contexts. In the authors’ illustration, a discussion of diversification has a different meaning for workforce research when it concerns a supply chain. A list can count the relevant expression in either case. Recovering a section requires attention to what the words are doing together and to the sequence of passages that contains them.
The paper also points to methods that represent connections between words. Such representations can help researchers study relationships in language or how those relationships change over time. The earlier work cited for this line of development is Efficient Estimation of Word Representations in Vector Space. Its relevance to the discussion is the use of word embeddings.
Other computational methods estimate which subjects are prevalent in a collection or within a document. Those subjects can help a researcher characterize a body of text. A particular research concept may nevertheless be distributed across the themes the procedure discovers, or the returned themes may make distinctions at a different level from the researcher’s question. The authors discuss this difficulty in connection with topic modeling.
The paper situates BERT in a further line of work. Pretrained encoders can be adapted for categorization, summarization, or answering questions drawn from a text. Their availability gives researchers a way to draw on patterns learned before a specific study begins. A researcher still needs examples that convey the definition of relevance for the new study, and a way to convert a sequence of local predictions into useful passage boundaries. The architectural family behind BERT is the Transformer.
Manual selection addresses both of those needs directly. Research assistants or crowd workers can read the text with the study’s instructions in mind and mark the intended passages. The authors view the recruitment, instruction, and repeated application of this labor as a cost. They use crowd workers to create marked filings for their demonstration and ask how much of that marking would be needed as input if the system were used to process further documents. That makes the number of manually marked reports a practical part of the research question.
What earlier segmentation work contributes
The related work identifies several reasons to divide text into passages. Passage divisions can support retrieval and summarization, while topic segmentation can describe how the subject changes across a document. Some methods treat the document as a sequence. Others represent a hierarchy of topics and subtopics. The paper cites SECTOR as an example of earlier work on coherent topic segmentation and classification.
A particular family of approaches looks for points where the topic changes. The work by Lukasik and colleagues considers tokens on both sides of a possible break. As described by Chivers and colleagues, the local-context approach can compete with more elaborate hierarchical approaches. The implication for the ANTS problem is that information near a location can carry useful evidence about it. In the filing task, however, a transition has to bound a passage of a specified kind before the boundary is of interest. The existence of a topic shift by itself says little about whether the transition leads into or out of the required disclosure.
Yoong and colleagues address text tiling, the division of a document or dialogue into coherent stretches. In the account given by the ANTS paper, their BERT-SEP approach uses both the relationship between adjacent sentences and information from the wider document. It outperforms the graph-based and bidirectional recurrent approaches considered in that work. Lo and colleagues organize sentence encoders within a higher-level architecture and report stronger semantic coherence on their segmentation task. These studies supply examples of the value of using information at several textual scales. ANTS draws on the same general observation when it looks at nearby sentences during prediction.
Other studies cited by the authors are closer to the problem of adapting an existing language representation with limited supervision. Zhang and colleagues divide regulatory filings and property leases into paragraphs and train BERT to identify content elements at that level. As reported by the ANTS paper, using fewer than 100 documents yields an F1 score similar to using that study’s full training collection. Araci’s FinBERT study adapts BERT using financial news and reports a benefit over other pretrained approaches on sentiment classification for financial phrases with as few as 250 training examples. These figures describe the respective earlier tasks. They do not establish how many labeled filings the ANTS procedure needs.
Together, the earlier studies explain the starting point for this paper. A pretrained encoder offers a way to adapt general language representations to a research definition of relevance. Local context offers a way to interpret sentences that carry weak evidence by themselves. The remaining problem is to combine those elements into a procedure that returns the particular passage a researcher wants from each report. In the ANTS demonstration, the expectation of a single continuous disclosure gives the final selection rule a concrete form.
The method, step by step
From a marked report to a predicted span
ANTS starts with a human decision about what the target looks like in a complete report. For each training filing, annotators identify the disclosure as an interval. The words inside that interval provide positive examples, and text outside it supplies negative examples. The classifier learns to score short samples according to this distinction. At prediction time, its scores are interpreted in report order so that nearby evidence can support a common passage.
The workflow operates at several different scales. A whole filing is the unit a worker marks and the unit set aside for evaluation. An overlapping run of tokens is the usual training input. An individual sentence or a group of neighboring sentences is the prediction input. The final result is a span with sentence boundaries. Keeping these roles distinct helps explain how a small number of labeled documents can support many training inputs while the task remains the recovery of a passage.
From labeled filings to extracted disclosure sections
The steps in order.
Marking the documents and making training examples
The authors used Amazon Mechanical Turk workers to identify Human Capital Disclosure sections, abbreviated HCD, in Form 10-K filings. In each document the HCD is treated as a continuous span. A positive label means the text belongs to the annotated disclosure. A negative label means it falls elsewhere in the filing. These are labels about section membership. They allow a sentence about hiring or benefits outside the disclosure to serve as a negative example, because a passage in that location falls outside the retrieval target.
The distinction is applied to the text before the classifier sees individual training inputs. The marked span supplies positive material, while the remainder supplies negative material. A reader looking for a procedure that labels every workforce statement would set a different annotation objective. Under this paper’s objective, marking the boundaries supplies the class labels for material within each part of the document. It avoids asking workers to make a fresh relevance decision for every short input the training process will construct. The link between a worker’s decision and the subsequent labels is an example of linguistic annotation.
The paper reports that the marked disclosures contain ∼1000 tokens on average in the collected sample. Even when the report is lengthy, positive training material comes from the relatively small portion marked as HCD. The authors expand the set of examples that can be made from that material by moving a fixed-width window through each labeled portion. The successive windows overlap because the starting location moves by one token each time. A part of the disclosure is thus encountered with different neighboring words and in different positions within the input.
The authors use a width of 34 tokens, the median sentence length measured in tokens in their sample. This gives a typical training input a length rooted in the filings, while freeing the input from the punctuation boundaries that define complete sentences. The same window procedure is applied to material from either class, with labels inherited from the part of the report being sampled. The unit in this procedure is the token, the text element produced by tokenization.
The window construction can be expressed using the notation for width that the paper introduces.
Wⱼ = (tⱼ, …, tⱼ₊ₙ₋₁)
Here Wⱼ is the window beginning at token position j within a labeled stretch. Each t denotes the token at the position given by its subscript. The ellipsis stands for the consecutive tokens between the first and last entries. The subscript n represents the width called N in the paper, and j + n − 1 identifies the last position included. The equals sign defines the window as the ordered sequence inside the parentheses. The procedure advances j one position at a time while a full window is available.
y(Wⱼ) = 1 if Wⱼ comes from the disclosure
0 if Wⱼ comes from negative text
Here y is the class assigned to the window, and Wⱼ retains its meaning as the input beginning at position j. The equals sign gives the target label. The label 1 marks an example from the annotated disclosure. The label 0 marks an example from outside it. The two lines describe the alternatives determined by the annotation.
Window width embodies a practical choice. A shorter sample yields more possible starting positions and less language in each input. Some examples may then be too brief for the classifier to distinguish the target. A wider window includes more context but leaves fewer full examples to extract from a fixed amount of labeled material. The paper motivates 34 tokens by the median length rather than by reporting a search over alternative widths. That rationale explains why its training samples are on approximately a sentence scale, even though they frequently begin and end within sentences.
The sliding procedure increases the number of examples without increasing the number of independent reports. A phrase that occurs once in the report can recur in successive windows because of overlap. This gives the classifier several presentations of that phrase, while the range of companies and disclosure styles still comes from the underlying filings. The distinction between training inputs and annotated documents is essential to the study’s claim about low supervision. The authors measure the amount of manual input in reports and vary that quantity in the experiments.
Adapting BERT to the filing task
BERT supplies a representation of each input. A final classification layer uses that representation to distinguish the two labels. The paper describes its adaptation as fine-tuning and specifies that only the final layer is trained. The weights in the rest of BERT stay fixed throughout that operation. The parameters learned for this study are therefore those that connect the existing representation to the distinction the annotators marked.
For binary classification, the implementation comes from the software described in Transformers. The authors use a batch size of 32, specifying how many examples go into a training batch, and a learning rate of 1e −5, which controls the scale of parameter updates. They train for 4 epochs. An epoch is a pass through the training set. Validation loss is used to select the checkpoint carried forward for prediction, with the lowest-loss epoch chosen within each run.
The train and validation division is 9:1. After this division, the authors under-sample the negative examples in the training portion. In under-sampling, some candidate examples from one class are set aside so that class occurs at the desired frequency in the retained training data. Here the retained ratio is 3:1 for negative to positive examples. The choice addresses the imbalance created by a lengthy report with a comparatively short labeled disclosure. The authors describe the balancing for training, while validation serves as the basis for choosing an epoch.
There is a separate division at the document level for the experiments. A random sample of marked filings supplies the training-side material for a run, and the other filings serve as test documents for that run. The corresponding comparison between sentence training and window training uses the same choices of underlying reports. This allows the authors to examine how the way examples are made affects prediction on the filings that were held out. The division for validation has a different role, within the material used to develop the classifier for a particular run.
The paper’s notation for the repeated runs can be written as follows.
Modelᵢ, i = 1, …, M
Modelᵢ denotes the fitted classifier for the run indexed by i. The equals sign introduces the values taken by that index, and the ellipsis represents the intervening indices up to M, the total number of runs for a setting. The authors use M = 20 in their experiments. Each member of the series is tied to its own sampled training filings and corresponding set of remaining filings.
The initial development used graphics processors on Google Colab, and the final training used a single graphics processor on Stanford’s Sherlock cluster. The authors make the ANTS implementation available through Stanford. The practical setup uses both software for the classifier and a separate procedure for turning its scores into a span. Even with the same trained classifier, changing that final procedure can change which part of a report is extracted.
Scoring sentences in isolation and in context
For a new report, the authors use Python’s NLTK package to divide the text into sentences. They choose sentences as the preferred boundaries for the eventual passage because they are natural places to break a document. Training on token windows and predicting on sentences is a deliberate pairing. At training time, the windows let each label give rise to many samples. At prediction time, sentences provide the positions at which scores can be assigned and endpoints can be selected.
The simplest pass gives the classifier each sentence individually. The result is the series the paper calls 1-block scores. Each value reflects the classifier’s response to the language of the sentence by itself. The scores are described as probabilistic. In the paper’s display of a filing, high values indicate similarity to the language seen in positive training material. That relationship helps explain why the score can be informative while still leaving the section boundary uncertain.
The contextual pass supplies groups of 5 sentences. The group slides through the report with a step of 1 sentence. Its score is used as evidence for the sentence in the middle of the group, so neighboring text can inform the classification of that center position. These are the 5-block scores. The paper’s explanation is particularly concerned with short sentences. A short statement may carry little evidence of what section it belongs to, while adjacent statements make a shared subject clearer.
The two scoring passes can be expressed in terms of the input each sends to the same classifier.
aⱼ = f(sⱼ)
Here aⱼ is the individual score at sentence position j. The function f denotes scoring with the trained classifier, and sⱼ is the sentence occupying that position. The parentheses specify the text supplied to f. The equals sign assigns the resulting score to aⱼ.
bⱼ = f(sⱼ₋₂, …, sⱼ₊₂)
bⱼ is the contextual score associated with the center sentence at position j. The function f is the same scorer. The arguments inside the parentheses denote one input containing the ordered sentences from position j − 2 through position j + 2, with the ellipsis indicating the intervening sentences. The equals sign assigns the score from this group to the center position. This is the arrangement where a complete 5-sentence group is available.
The two values at a position answer related questions from different amounts of text. The individual score responds to the wording of that sentence. The group score can reflect evidence distributed over its surroundings. A high contextual score can therefore arise because the neighbors contain language typical of the disclosure, even if the center sentence contributes little on its own. Likewise, a distinctive sentence outside the official disclosure can receive a high individual score. The next step has to decide what these signals imply for the report as an ordered whole.
Selecting the continuous passage
The paper illustrates the need for a selection rule with an example filing. The score plot contains peaks inside the human-marked disclosure and peaks outside it. An example score of 0.9995 represents a strong response to disclosure-like language, while 0.01 illustrates a low response. An outside sentence at 0.997 shows that a very strong response can occur beyond the official passage. The authors also point to an example at 0.58 to illustrate an intermediate value. A score plot with this shape gives evidence about language at many locations. The passage boundaries require a further decision.
The authors distinguish several situations the rule should handle. A disclosure can contain a low-scoring sentence because its wording provides little context. A sentence can also be weakly related to the topic while still forming part of the company’s section. Both belong in the requested passage. Conversely, a sentence may describe employees in a way that resembles the training examples and still appear elsewhere in the report. Collecting every strong local match would mix sentences from the official disclosure with workforce-related material drawn from other locations.
The selection procedure begins with a threshold calculated from the individual scores produced under a given fitted run and parameter setting. The authors compile those scores, keep values at or below 0.5 for the threshold calculation, and take their median. They then use this threshold for the runs they seek in each document.
τᵢ = median({a ∈ Aᵢ : a ≤ 0.5})
Here τᵢ is the threshold associated with fitted run i under the chosen setting. Aᵢ denotes the collection of individual-sentence scores compiled for that run, and a denotes a score from that collection. The membership symbol ∈ identifies where a comes from. Inside the braces, the colon introduces the restriction and ≤ means less than or equal to. The number 0.5 sets the inclusion cutoff for the values used to calculate the threshold. The median is the middle of the retained distribution, and the equals sign assigns it to τᵢ.
As the authors describe the next operation, the procedure finds the longest uninterrupted run of 1-block scores below that threshold. It then finds the longest uninterrupted run of 5-block scores below the threshold that overlaps the first run. Overlap means the two runs cover at least one common sentence position. The endpoints of the second run define the returned passage. The first run thus supplies a location in the report, and the contextual run supplies the boundaries that will be used in the result.
The description of the threshold rule is worth reading closely. The paper characterizes high values in its illustration as evidence of language like that in the positive examples, while its procedural account selects runs of values that fall below the threshold. Those descriptions leave the score convention at the selection step unclear. The reported procedure specifies the direction as below and makes the continuity and overlap requirements explicit. Its architectural point is clear even with that ambiguity. The final result comes from a rule applied to ordered scores at both input scales and incorporates an expectation about the form of the target.
Experiments and results
The filings and the held-out comparisons
The evaluation draws on 393 Form 10-K filings that companies in the S&P 500 submitted between November 2020 and the end of March 2021. A worker-marked HCD section provides the reference span for each report. The dates place the sample in the period after the new reporting requirement began. Within the sample, the authors describe variation in section titles, the topics combined within a disclosure, and the location of the passage. This gives the experiments reports with a shared extraction objective and different presentations of the target.
At each tested training size, the authors draw random subsets of the available reports and fit a classifier on each subset. The reports left over from a given draw are used to measure that run’s predictions. This matters for interpreting the main figure. Its points describe different fitted runs and the held-out documents appropriate to each run. The experiment shows how performance varies with the choice and amount of training material in this collection. As the training subset changes, the precise membership of the test portion can change with it.
The experiment varies the amount of training material from 1 to 19 documents in steps of 2. There are 20 fitted runs at each size. In the plots, a point represents the mean across a run’s test reports for a given metric. A dashed line shows the trend in the mean across the repeated runs. The points show whether different sampled sets of the same size give comparable outcomes. The line shows the general trajectory as the number of manually marked reports increases. Both features are important when the practical question is how much manual marking a researcher needs.
The primary baselines are variants of the same workflow. One trains on complete sentences from the positive and negative text and uses individual-sentence scores to select a passage. Another trains on windows and uses the same individual-sentence scoring approach for selection. The full reported setup trains on windows and uses both individual and contextual scores to choose the passage. These variants are arranged so that the paper can examine the training representation and the use of neighboring sentences in separate comparisons.
The first comparison matches the train and test documents for the sentence-trained and window-trained runs. The authors report keeping the remaining hyper-parameters fixed and use only 1-block scores at prediction time in both variants. The next comparison starts with window training in both conditions and alters the information used in selection. The experiments are consequently most informative about choices within ANTS. The worker annotations supply the reference for scoring the outputs.
How the passage is scored
The unit for measuring overlap is the sentence. Precision asks how much of the returned passage is actually in the reference disclosure. Recall asks how much of the reference disclosure the system has returned. The Jaccard index measures the degree to which the two spans cover the same sentence positions. These measures answer different questions when an estimated boundary cuts off part of the disclosure or extends into neighboring material.
Precision can be expressed as follows for a case in which a passage is returned.
Precision = |P ∩ G| / |P|
P is the set of sentence positions in the predicted passage, and G is the corresponding set for the worker-marked disclosure. The intersection symbol ∩ keeps positions that appear in both. The vertical bars indicate the number of positions in the enclosed set. The slash divides the number correctly included by the number returned, and the equals sign gives that value the name precision. Extra text in the predicted passage enlarges its denominator and contributes no shared positions.
Recall = |P ∩ G| / |G|
P again denotes the predicted positions, and G denotes the reference positions. The intersection ∩ supplies the correctly recovered positions. The vertical bars count them in the numerator and count all reference positions in the denominator. The slash and equals sign express the division that defines recall. The measure rises when the selected span covers more of the disclosure. Expansion beyond the marked boundaries gives it no additional credit.
Jaccard index = |P ∩ G| / |P ∪ G|
The sets P and G have the same meanings. The intersection symbol ∩ identifies the shared positions. The union symbol ∪ collects all positions present in either span. The vertical bars count the positions, the slash represents division, and the equals sign defines the index. A missed sentence inside the reference can contribute to the union while being absent from the intersection. An extra sentence in the returned passage can do the same. The index thus reflects both forms of disagreement.
The authors calculate these metrics separately for each test document, then take the mean for the fitted run. When the procedure returns no HCD passage, the paper assigns that document zero for every metric. This treatment makes failed extractions part of the reported averages. Because the unit being averaged is the document’s score, a long disclosure does not automatically receive more influence over a run’s mean than a short one. Within the score for a particular filing, however, the sizes of the predicted and marked passages determine the effect of a boundary error.
The paper also reports the share of held-out reports for which some part of the HCD is captured. This is a document-level success measure based on overlap occurring at all. A partial extraction can succeed by that measure and still have a low recall or Jaccard score. Conversely, a highly accurate span contributes one successful case to the document-level measure. The distinction is central to interpreting the headline result in the context of evaluation and benchmarks.
How much training data the task needs
For the setup using windows and both scoring scales, the plots show a noticeable increase in performance as the training set grows below 5 documents. Around 5 documents, the gains begin to level off. The spread between repeated runs also decreases as more documents are included and settles at about the same point. In this collection, initial additions to the training set improve expected performance and make results less dependent on the particular filings sampled.
The authors report a 3.4% difference in mean Jaccard index between training with 5 documents and training with 19 documents in this configuration. That figure describes the difference stated by the paper for the two training sizes. It is a separate comparison from the ranges used to describe the benefit of contextual scoring. The reported trajectory suggests that the earliest labeled documents have substantial value and that additional examples beyond the observed leveling point give smaller gains on these filings.
At 5 training documents, the authors report that the method captures part of the target in 96% of unseen documents. Here the quantity measured is the fraction of test reports with some overlap, and the training quantity is counted in whole filings. Within those filings, the classifier trains on many overlapping examples. The length or quality of the recovered passage is assessed separately by precision, recall, and Jaccard. A research task that needs to preserve the exact disclosure would depend on those overlap measures as well as the rate of finding it.
The window-trained variant that uses individual scores alone also levels off after around 5 training documents. Complete-sentence training has a less settled pattern. The mean tends to improve as more reports are added, but the distribution across random samples remains wide over much of the tested range. That variability becomes important when the method will be trained once by a researcher who has only a handful of reports to mark. A higher mean describes the expected quality under the experiment’s sampling procedure, while a tighter spread indicates greater consistency across plausible choices of those reports.
What surrounding sentences change
Once performance levels off, the reported mean Jaccard values range from 0.43 to 0.48 for the window-trained setup using only individual scores. With both individual and contextual scores, they range from 0.75 to 0.79. These are ranges of reported mean performance for the held-out filing task after the plateau. The chart compares their reported lower endpoints on the same metric. The endpoints summarize settings across the plateau and should be read as bounds of the reported ranges.
Lower endpoints of mean Jaccard ranges on held-out Form 10-K disclosures after performance levels off
Using neighboring sentences yields the higher reported lower endpoint for passage overlap.
The numbers
| System or setting | Mean Jaccard index |
|---|---|
| Window training with individual sentences only | 0.43 |
| Window training with individual and contextual scores (this paper) | 0.75 |
The paper traces the stronger overlap to better recall. The final procedure using contextual scores retrieves more of the annotated disclosure. The individual-score procedure has higher precision, which indicates that a greater share of the text it returns belongs inside the reference span. In the authors’ account, the contextual procedure sometimes reaches beyond the edges while recovering more of what lies within them. For a study that can tolerate limited neighboring material, the additional coverage can be worth this cost.
The contextual pass also takes more time at prediction because groups of sentences are scored in addition to individual sentences. The paper describes this as a tradeoff between computation and coverage. Both variants use the same type of manual labels and the comparison adds no labeled documents for contextual scoring. The gains demonstrate what can change after training when a procedure brings additional context into the decision about passage boundaries.
What the ablations show
More examples from the same reports
The comparison between sentence training and window training examines how much depends on the way examples are constructed. Both variants receive annotations from the same sampled filings. They are evaluated on the same remaining filings for matched runs and use the same individual-sentence procedure to select the output. The change is whether the classifier sees complete sentences as its training examples or overlapping stretches of tokens derived from the labeled parts of each report.
The most visible difference is the spread of results. In the sentence-trained condition, the Jaccard index can range from zero to around 0.7 across runs at a given size. The authors note such a wide spread from training sizes of 7 documents through 19 documents. A researcher could therefore have a training sample of a size that often yields a useful classifier and still obtain weak extraction from a particular set of reports. The spread shows how much the quality of sentence training depends on the sample itself.
In the window-trained condition, results for samples of comparable size cluster more tightly. The paper also reports better overall performance across precision, recall, and Jaccard, although the change in spread stands out more sharply. Because the held-out filings and the decision rule are matched in this comparison, the contrast supports the use of window training under the paper’s conditions. The authors attribute the improvement to the substantial increase in effective training examples that can be derived from the same annotated text.
Windowing changes more than the number of inputs. It shifts which words appear together and where they occur within an example. It also uses a fixed length, whereas complete sentences vary in length. The comparison therefore shows the effect of choosing the window construction as a whole. A study intended to separate the contribution of sample count from that of input length would need a different comparison. The plots give direct evidence that the authors’ windowed training procedure is more stable for this task.
The effect of adding marked documents
The size series makes the amount of human supervision an experimental variable. With windowed training and contextual prediction, much of the observed improvement occurs before the curves settle around 5 training reports. Reduced dispersion is part of that finding. A training set at the low end of the series yields more variable results across sampled filings. With several marked reports, the classifier has examples drawn from more than one presentation of the disclosure, and the observed results become steadier.
This experiment measures the combined consequence of adding the reports sampled under the paper’s procedure. A larger sample expands the annotated text available for windowing and can also encompass more ways of discussing the target. The paper does not assign the observed gain to particular titles, companies, or kinds of writing. Its practical implication is tied to the training distribution it tests. In this sample, the observed performance becomes less sensitive to which filings supply the annotations after a small number of reports has been marked.
The training-size series and the sentence-versus-window comparison reinforce each other. The plateau is clear for the windowed variants and difficult to see for sentence-only training because outcomes remain dispersed. Counting annotated documents by itself would miss this dependence on example construction. The amount of manual work needed for reasonably repeatable retrieval depends in part on what the system can learn from each label.
Where contextual scoring helps
The prediction comparison keeps windows as the training representation and changes what happens when a filing is processed. The simpler variant selects a section using individual scores. The contextual variant adds scores for overlapping groups and uses their agreement in location with the individual-score run. The resulting gain belongs to this combined contextual scoring and selection procedure. The experiment evaluates that package through its output spans.
The direction of change fits the authors’ account of short or locally uninformative sentences. A passage can include sentences that would contribute little evidence if each were scored alone. The addition of neighbors lets the system use material around those sentences, and the continuity rule returns the intervening text as part of the span. An improvement in recall is the expected kind of effect if this procedure closes gaps or extends a short prediction farther through the disclosure.
The precision result indicates an accompanying boundary cost. If neighboring language supports a continuation near the edge, the returned passage can also incorporate sentences the annotation places outside it. The individual-score rule gives a more selective output by the paper’s precision measure, while the combined rule recovers a greater share of the target. The Jaccard improvement shows how that exchange works out when missed and extra sentences both count against the overlap in the chosen evaluation.
The comparison does not isolate whether a different number of neighboring sentences would give the same tradeoff, or how much of the observed benefit depends specifically on requiring the contextual run to overlap the individual one. It shows that the 5-block rule as implemented gives a stronger overlap result than selecting with individual scores alone. For interpreting the evidence, the relevant causal change is the entire added step from contextual inputs to the choice of endpoints.
What high scores outside the disclosure reveal
The authors also analyze sentences that sound like disclosure text but fall beyond the official boundaries. They group the text in each document according to the reference section and the individual-sentence classifier. The first group comprises sentences within the HCD marked by workers. The second contains outside sentences that the 1-block classifier calls positive. The third contains outside sentences the same classifier does not call positive. This grouping looks at individual predictions and the reference location. It can therefore include outside sentences that a final continuity rule would leave out of the recovered passage.
The authors remove common English stop words and use Scikit-learn to build a matrix for each group. The representation emphasizes terms according to their frequency and their distribution in the text used to make the matrices. It is the representation known as TF-IDF. The authors then compare the matrices with cosine similarity, a measure of how closely their weighted representations align in direction.
The similarity between the marked disclosure text and the outside text labeled positive is 0.88. The corresponding similarity between disclosure text and the outside text left negative is 0.38. The similarity between the two groups of outside text is 0.42. These values are for the text-similarity analysis, separate from the passage-retrieval metrics. The high similarity for the first pair supports the authors’ interpretation that the individual scorer often detects vocabulary associated with the HCD even when the passage falls beyond the section boundary.
This analysis gives a concrete way to understand why the same sentence can be an error for one task and evidence for another. Its classification as a false positive follows from the definition of the target as the official passage. Its similar vocabulary may still make it worth examining for a researcher interested in workforce discussion across the report. The cosine values support the language resemblance at the level of the comparison. They do not establish whether any individual outside sentence contains a useful disclosure or whether it would qualify under a broader annotation scheme.
Limitations
Limits and trade-offs the authors describe
The authors present the filing study as a proof of concept. Their test looks for one Human Capital Disclosure section per annual report, and the rule selecting the output reflects that arrangement. The classifier provides evidence at sentence positions, while the final rule embodies the expectation that pertinent material forms a continuous interval. The authors discuss adapting the rule when the length, position, or number of desired passages differs. Those variants are proposed applications of the framework.
The paper also makes the coverage tradeoff explicit. Using neighboring sentences brings more of the reference text into the returned span and can include additional material outside it. The authors consider these edge errors tolerable for their use case and say that the procedure can be tuned to suit other uses. A researcher relying on a passage for close analysis of the company’s official wording would experience that tradeoff differently from a researcher who plans to inspect the retrieved text before using it. The reported precision and recall describe the costs on the evaluated filings.
Additional contextual scoring lengthens the prediction phase. The authors explain the extra work qualitatively and report the improvement in overlap, without giving a numerical timing comparison for the variants. The practical argument for the method is therefore about getting better retrieval without marking more reports, while accepting additional prediction work. The paper does not quantify the total time that a research group would save after annotation, scoring, extraction, and any review of the results.
The discussion also recognizes that the same filing can contain relevant language outside the section. That is a consequence of the distinction between the official disclosure and the wider subject of human capital. The authors see the outside material as potentially worth studying. Their implemented output flags the selected section, and the similarity analysis characterizes groups of outside sentences. Measuring workforce-related content more broadly or using retrieved sentences to derive a score for a theme remains a proposed extension.
What follows from the evaluation setup
The repeated runs vary the training reports within one collection of S&P 500 filings from November 2020 through March 2021. The stable portion of the training curve describes this collection and the authors’ annotation objective. Other filing periods, groups of companies, disclosure requirements, or types of documents could change how much relevant language transfers from a small training sample. The study establishes that the observed results are possible for this particular retrieval problem. The amount of supervision needed elsewhere remains an empirical question.
The document target also supplies a favorable condition for a continuous-span rule. Each reference HCD in the sample is treated as a single passage. A document with pertinent language distributed among several sections would pose a different selection problem. Forcing the same output there could leave relevant portions unrecovered or include intervening text that serves another purpose. The authors recognize the value of tailoring the rule to domain knowledge. The evidence here covers the form tested in the filings.
The reference boundaries come from trained crowd workers. The article describes the creation and use of these annotations, and the reported overlap is agreement with the resulting spans. Details about agreement among workers or uncertainty at particular endpoints are not supplied. This matters because a sentence at a transition can be ambiguous to a person as well as difficult for a classifier. The results measure fidelity to the marked passages available for the study. They do not provide an independent estimate of how readily different annotators would agree on every boundary.
A separate issue concerns the distribution of data during training and validation. Overlapping windows intentionally share many tokens. The paper reports a 9:1 split used for training and validation and a separate division between the sampled input reports and the remaining test reports. It gives no detailed account of how neighboring windows are allocated within the former split. Validation loss is used for choosing an epoch, and the held-out report scores are the main evidence for retrieval quality. These roles should be kept distinct when interpreting the performance.
The threshold description likewise leaves implementation details open. The median is defined on a compiled subset of individual scores, while the discussion of positive examples and the stated below-threshold selection rule use score directions that are difficult to reconcile without further detail. The treatment of tied runs and of contextual inputs near document edges is also unspecified in the description. These gaps matter for reproducing exact endpoints from the written method. They leave the comparison of the paper’s reported variants intact as an account of what was observed in its experiments.
Finally, the headline percentage has a specific meaning. In the 5-document setting, 96% refers to held-out filings in which the returned text covers some part of the marked disclosure. Exact recovery of both boundaries is a stricter outcome, and the paper describes boundary quality through precision, recall, and Jaccard. Its controlled baselines also compare choices within ANTS. The results show the benefits of window training and contextual selection in that workflow. A comparison with another passage-retrieval system, rules based on report headings, or the cost and agreement of a separate manual extraction effort would answer questions beyond those experiments.
What came after
There are no documented follow-up studies to trace here. The paper itself leaves several directions open, including examining workforce language elsewhere in a filing and studying how companies discussed human capital before the SEC requirement. It also suggests that a passage-selection rule could incorporate knowledge about the expected location, length, or number of target segments in a different collection. These are applications the authors propose. The reported evidence remains the retrieval of continuous human capital disclosures from the annual reports they studied.
Cite
Cite as Brian Chivers, Mason P. Jiang, Wonhee Lee, Amy Ng, Natalya I. Rapstine and Alex Storer. 2022. ANTS: A Framework for Retrieval of Text Segments in Unstructured Documents. Proceedings of the Third Workshop on Deep Learning for Low-Resource Natural Language Processing.
@inproceedings{chivers2022ants,
title = {{ANTS: A Framework for Retrieval of Text Segments in Unstructured Documents}},
author = {Brian Chivers, Mason P. Jiang, Wonhee Lee, Amy Ng, Natalya I. Rapstine and Alex Storer},
booktitle = {Proceedings of the Third Workshop on Deep Learning for Low-Resource Natural Language Processing},
year = {2022},
doi = {10.18653/v1/2022.deeplo-1.5},
url = {https://doi.org/10.18653/v1/2022.deeplo-1.5}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chivers-2022-ants-framework-retrieval-text-segments/