NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Subtl.ai at the FinSBD-2 task: Document Structure Identification by Paying Attention

Abhishek Arora, Aman Khullar, Sarath Chandra Pakala, Vishnu Ramesh, Manish Shrivastava2020

TL;DR

This paper introduces a novel deep learning architecture for accurately identifying sentences, lists, and items within noisy financial PDF documents. By combining bidirectional LSTMs with an attention mechanism, the model achieves competitive performance on the FinSBD-2 task, offering a robust solution for extracting structured information from challenging document formats.

What Problem Does This Paper Address?

Extracting structured information from documents is a fundamental task in Natural Language Processing (NLP), crucial for applications like information retrieval, translation, and sentiment analysis. However, real-world documents, especially those originating from scanned PDFs, are often "noisy." This noise can manifest as inconsistent formatting, missing punctuation, or unusual layouts, making it difficult to reliably identify the boundaries of basic text units like sentences, lists, and individual items. Traditional rule-based methods struggle with this variability, requiring extensive manual effort and often failing to generalize. This paper tackles the challenge of accurately segmenting sentences, lists, and items from such noisy financial PDF documents, a task that is particularly difficult due to the inherent complexity and lack of standardization in financial reporting.

Methods

The proposed methodology is a hybrid approach combining deep learning with heuristic-based techniques.

  1. Sentence Boundary Detection:
    • Token Classification: Two unidirectional Long Short-Term Memory (LSTM) encoders are used to process potential sentence split tokens (e.g., '.', '\n', ':'). These encoders take Part-of-Speech (POS) tags of surrounding tokens as input, allowing the model to learn contextual patterns. A linear layer then classifies these tokens as either positive (indicating a potential split) or negative.
  2. Sentence Classification: An attention-based LSTM network is employed to determine if a segmented sentence is "well-formed." This model uses pre-trained GloVe embeddings and an attention mechanism to weigh the importance of different words within a sentence, generating a sentence vector for classification.
  3. Merge Algorithm: To handle cases where the initial segmentation might be incorrect, a merge algorithm is used. If a sentence is initially classified as not well-formed, it's merged with the preceding or succeeding sentence and re-evaluated. This iterative merging helps to correct errors and ensure the final output consists of truly well-formed sentences.
  4. Lists and Items Identification:
    • Heuristics: For lists and items, the authors employ a combination of heuristic rules. These rules are based on observed patterns in the training data, such as alphanumeric prefixes (e.g., "1.", "a.") or Unicode bullet points.
  5. Aggregation: Items are aggregated into lists based on co-occurrence within a certain window of sentences and incremental patterns (e.g., "1." followed by "2.").
  6. End Point Identification: The sentence classifier is leveraged to help identify the end of the last item in a list, by adding text blocks incrementally until the classifier deems it well-formed.

Datasets

The study utilizes the dataset provided for the FinSBD-2 2020 Shared Task. This dataset consists of:

  • Training Data: 5 noisy financial PDF documents.
  • Validation Data: 1 noisy financial PDF document.
  • Test Data: 2 noisy financial PDF documents.

The dataset includes raw text extracted from PDFs, along with corresponding JSON files that provide ground truth annotations for sentences, lists, and items, including their start and end indices. Spatial coordinates are also provided, though the paper focuses on text-based segmentation.

Key Insights and Ideas

  • Hybrid Approach Effectiveness: The paper demonstrates that combining deep learning for sentence boundary detection with heuristic-based methods for list and item identification can be effective, especially when dealing with noisy, unstructured documents.
  • Importance of Contextual Information: The use of bidirectional LSTMs with POS tags for token classification highlights the value of capturing local context around potential split points.
  • Attention for Sentence Quality: The attention-based LSTM for sentence classification is crucial for discerning "well-formed" sentences from potentially fragmented or incorrectly segmented text.
  • Content Coverage as a Practical Metric: The introduction of a "sentence coverage" metric, which measures overlap rather than exact character match, is a valuable contribution for industry researchers who prioritize understanding the overall content rather than strict precision. This metric provides a more realistic evaluation for practical applications.

Key Results

The proposed model achieved competitive results on the FinSBD-2 task:

  • F1 Score: An average F1 score of 0.213 was obtained on the 2 test documents. For sentences specifically, the average F1 score was 0.65.
  • Sentence Coverage: An encouraging average sentence coverage of 86.5% was achieved on the test documents, indicating a high degree of overlap between predicted and ground truth sentences.
  • List and Item Coverage: For lists and items, the F1 scores were significantly lower (due to the strict matching requirement), but the sentence coverage metric showed an average overlap of 18% for lists and 15.5% for items. This suggests that while exact boundary matching is challenging for lists/items, the general identification of their content is more robust.

Limitations and Future Work

  • List and Item Identification Accuracy: The authors acknowledge that the F1 scores for lists and items are not high, primarily because the strict start-and-end index matching metric doesn't fully capture the nuances of their identification. The sentence coverage metric provides a better, though still modest, indication of performance.
  • Heuristic Dependence: The reliance on heuristics for list and item identification, while practical, might limit generalization to documents with highly unusual list/item formatting.
  • Future Work: The paper suggests that a deep learning model could be developed to learn a wider variety of features for detecting lists and items, potentially improving their accuracy. This would further enhance the performance of downstream NLP applications that rely on this structured data.

Summary updated

BibTeX
@misc{arora2020subtl,
  author = {Abhishek Arora and Aman Khullar and Sarath Chandra Pakala and Vishnu Ramesh and Manish Shrivastava},
  title = {{Subtl.ai at the FinSBD-2 task: Document Structure Identification by Paying Attention}},
  year = {2020},
}
Figure