Doc-GCN: Heterogeneous Graph Convolutional Networks for Document Layout Analysis

Siwen Luo, Yihao Ding, Siqu Long, Josiah Poon, Soyeon Caren Han

Introduction

Document Layout Analysis (DLA) is a critical step in digitizing unstructured documents, such as PDFs and scanned images, into machine-readable formats. While traditional methods have approached DLA primarily through computer vision (CNNs) or natural language processing (BERT), these paradigms often fail to capture the complex relational context inherent in document structures. Doc-GCN introduces a novel framework that treats document segments as nodes in a heterogeneous graph, explicitly modeling the spatial and hierarchical relationships between components.

The Relational Context Problem

In a standard document, the identity of a segment is often defined by its neighbors. For instance, a "Figure Caption" is distinguished from standard text not just by its content, but by its proximity to a "Figure." Previous models frequently ignored these relational cues, as well as specific characteristics like text density and syntactic structure. Doc-GCN addresses this by integrating four distinct feature aspects—syntactic, semantic, density, and appearance—to provide a holistic understanding of document layout.

The Doc-GCN Architecture

The core of Doc-GCN lies in its ability to process a document page as a set of nodes and edges. The model constructs six different graphs across four feature aspects:

  1. Density-aspect Graphs: These encode the ratio of tokens to area and absolute character counts, helping the model distinguish dense paragraphs from sparse tables.
  2. Appearance-aspect Graph: Visual features such as font style and color are extracted using a pre-trained Faster R-CNN.
  3. Syntactic-aspect Graphs: Grammatical structures are captured via a constituency parser, identifying whether a segment is a simple noun phrase (common in titles) or a complex sentence.
  4. Semantic-aspect Graph: Linguistic meaning is captured using BERT embeddings.
The Doc-GCN framework integrates syntactic, semantic, density, and appearance features through a heterogeneous graph structure.

Each graph is processed through Graph Convolutional Network (GCN) layers, where node embeddings are updated based on their neighbors. These multi-aspect features are then merged via node-level max pooling and concatenated into a final vector for classification by a multi-layer perceptron (MLP).

Experimental Evaluation

Doc-GCN was evaluated against three major benchmarks, consistently outperforming both visual-heavy and text-heavy baselines:

  • PubLayNet: Achieved an overall 98.63% F1-score, representing a significant improvement over Faster R-CNN (96.96%).
  • FUNSD: Reached an 85.49% F1-score, substantially higher than BERT-base (79.02%) and RoBERTa-base (81.69%).
  • DocBank: Achieved a 91.83% F1-score, outperforming LayoutLM-base (86.16%).

Qualitative analysis showed that Doc-GCN is particularly adept at disambiguating similar-looking elements, such as correctly identifying "List" items that other models misclassified as standard "Text."

The Power of Heterogeneity

A key finding of the research is that no single feature aspect is sufficient on its own. While semantic and appearance features are strong individual performers, the addition of density and syntactic features provides the necessary boost to reach state-of-the-art performance levels.

Ablation study showing the performance impact of combining different feature aspects across three benchmarks.

As shown in the ablation studies, the full integration of all four aspects (Syn, Sem, Dens, Appr) yields the highest precision, recall, and F1-scores across all datasets. This confirms that modeling documents as heterogeneous graphs effectively captures the multi-modal nature of document layouts.

Conclusion

Doc-GCN demonstrates that relational context is vital for accurate document layout analysis. By leveraging heterogeneous graphs to combine visual, linguistic, and structural information, the model sets a new standard for the field. Future work may involve exploring dynamic graph construction to move beyond fixed heuristics and further improving robustness against OCR errors in scanned documents.

Summary updated

BibTeX
@inproceedings{luo2022doc,
  author = {Siwen Luo and Yihao Ding and Siqu Long and Josiah Poon and Soyeon Caren Han},
  title = {{Doc-GCN: Heterogeneous Graph Convolutional Networks for Document Layout Analysis}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=_BGAFmhvMRK},
}
Figure