Skip to main content
QUICK REVIEW

[Paper Review] Table understanding in structured documents

Martin Holeček, Antonín Hoskovec|arXiv (Cornell University)|Mar 22, 2019
Handwritten Text Recognition TechniquesComputer Science35 references34 citations
TL;DR

This paper proposes a novel graph-based neural network model for end-to-end table detection and structured information extraction in layout-heavy business documents like invoices, treating table detection as a wordbox labeling problem using positional embeddings, textual features, and graph convolutions. The model achieves 93% F1 on line-item table detection and 66% micro-F1 on 35 other structured fields, demonstrating strong generalization across diverse invoice layouts and types.

ABSTRACT

Abstract--- Table detection and extraction has been studied in the context of documents like reports, where tables are clearly outlined and stand out from the document structure visually. We study this topic in a rather more challenging domain of layout-heavy business documents, particularly invoices. Invoices present the novel challenges of tables being often without outlines - either in the form of borders or surrounding text flow - with ragged columns and widely varying data content. We will also show, that we can extract specific information from structurally different tables or table-like structures with one model. We present a comprehensive representation of a page using graph over word boxes, positional embeddings, trainable textual features and rephrase the table detection as a text box labeling problem. We will work on our newly presented dataset of pro forma invoices, invoices and debit note documents using this representation and propose multiple baselines to solve this labeling problem. We then propose a novel neural network model that achieves strong, practical results on the presented dataset and analyze the model performance and effects of graph convolutions and self-attention in detail.

Motivation & Objective

  • To address the challenge of detecting and extracting structured information from layout-heavy business documents such as invoices, where tables often lack borders and have ragged columns.
  • To develop a fully trainable, end-to-end system that generalizes across diverse invoice layouts, languages, and formats without manual layout configuration.
  • To jointly learn line-item table detection and extraction of specific information from other table-like structures using a unified model.
  • To evaluate model generalization on unseen invoice types and layouts, ensuring scalability beyond training data.
  • To release a new, publicly available dataset of pro forma invoices, invoices, and debit notes for future research.

Proposed method

  • Represent the document page as a graph of wordboxes, incorporating positional embeddings, trainable textual features, and spatial relationships between boxes.
  • Reformulate table detection as a multi-label wordbox classification task, where each wordbox is predicted as belonging to a specific table or field (e.g., line-item, total amount, recipient address).
  • Use a neural network architecture combining 1D convolutional layers, multi-head self-attention, and graph convolutional layers to model sequential and spatial dependencies.
  • Incorporate features from neighboring wordboxes (up to one on each side) to enhance local context understanding, with symmetric relations enabled by multi-head attention.
  • Train the model using binary cross-entropy loss with sigmoid activations, and evaluate using F1 scores for line-item detection and micro-F1 for rare, non-line-item classes.
  • Apply focal loss to improve performance on rare classes, particularly for line-item header detection, while monitoring trade-offs with overall performance.

Experimental results

Research questions

  • RQ1Can a single, trainable neural network model detect line-item tables and extract specific information from other tables in invoices with no fixed layout or borders?
  • RQ2How effective is graph convolution and self-attention in enabling generalization to unseen invoice layouts and formats?
  • RQ3To what extent do positional features, neighboring wordbox context, and textual embeddings contribute to model performance?
  • RQ4Does joint learning of line-item detection and other structured field extraction improve overall performance and generalization?
  • RQ5How does the model perform on rare classes and unseen invoice types compared to baseline methods?

Key findings

  • The proposed model achieved 93% F1 score on line-item table detection, demonstrating strong performance on the most critical task in invoice understanding.
  • The model achieved 66% micro-F1 on 35 non-line-item structured fields, indicating effective generalization across diverse information types despite class imbalance.
  • The inclusion of multi-head self-attention significantly improved generalization to unseen invoice types, reducing training epochs from 27 to 13.
  • Using one neighbor per wordbox yielded optimal performance, with two neighbors improving line-item body detection, suggesting the importance of symmetric local context.
  • Focal loss improved line-item header detection but reduced performance on other classes, indicating a trade-off in handling rare labels.
  • The model generalized well to anonymized datasets, indicating that it learns to detect structured, evenly spaced word regions without relying on specific text content.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.