Skip to main content
QUICK REVIEW

[Paper Review] Efficient Document Image Classification Using Region-Based Graph Neural Network

Jaya Krishna Mandivarapu, Eric Bunch|arXiv (Cornell University)|Jun 25, 2021
Handwritten Text Recognition TechniquesComputer Science23 references5 citations
TL;DR

This paper proposes an efficient document image classification framework using a region-based graph neural network (Eff-GNN) that integrates visual, textual, and layout features from semantic regions extracted via PubLayNet. The method achieves near-state-of-the-art classification accuracy with significantly reduced model size and training/inference time, enabling cost-effective deployment on CPU and scalable enterprise use.

ABSTRACT

Document image classification remains a popular research area because it can be commercialized in many enterprise applications across different industries. Recent advancements in large pre-trained computer vision and language models and graph neural networks has lent document image classification many tools. However using large pre-trained models usually requires substantial computing resources which could defeat the cost-saving advantages of automatic document image classification. In the paper we propose an efficient document image classification framework that uses graph convolution neural networks and incorporates textual, visual and layout information of the document. We have rigorously benchmarked our proposed algorithm against several state-of-art vision and language models on both publicly available dataset and a real-life insurance document classification dataset. Empirical results on both publicly available and real-world data show that our methods achieve near SOTA performance yet require much less computing resources and time for model training and inference. This results in solutions than offer better cost advantages, especially in scalable deployment for enterprise applications. The results showed that our algorithm can achieve classification performance quite close to SOTA. We also provide comprehensive comparisons of computing resources, model sizes, train and inference time between our proposed methods and baselines. In addition we delineate the cost per image using our method and other baselines.

Motivation & Objective

  • To develop a low-resource, high-performance document image classification framework suitable for large-scale enterprise deployment.
  • To integrate visual, textual, and layout features effectively using graph neural networks without relying on large pre-trained vision or language models.
  • To systematically evaluate and compare computational efficiency, including training time, GPU memory, and inference speed, across state-of-the-art models.
  • To enable scalable, cost-effective deployment of document classification models in real-world applications such as insurance claims processing.
  • To reduce dependency on expensive GPU resources while maintaining competitive classification accuracy.

Proposed method

  • Semantic regions are extracted from document images using a pre-trained PubLayNet model for instance segmentation.
  • Textual features are extracted using Word2Vec embeddings, and image features are extracted via a pre-trained VGG-16 model.
  • A graph is constructed where each node represents a semantic region, with node features combining visual, textual, and positional layout embeddings.
  • A graph convolutional network (GCN) with sort pooling is applied to classify the entire document graph, enabling end-to-end training on arbitrary graph structures.
  • The model is trained using cross-entropy loss and optimized for both accuracy and computational efficiency.
  • The framework supports inference on CPU, with model weights packaged in Docker containers for deployment via AWS Fargate and ECS.

Experimental results

Research questions

  • RQ1Can a graph neural network effectively integrate visual, textual, and layout features from document images to achieve competitive classification accuracy?
  • RQ2How does the proposed method compare to SOTA vision and language models in terms of computational efficiency and resource usage?
  • RQ3Can the model achieve high accuracy while being deployable on CPU with minimal hardware requirements?
  • RQ4What is the impact of combining OCR-based text features with image features on performance when OCR fails or is incomplete?
  • RQ5How does the model scale in terms of training time, memory usage, and inference speed across real-world and public datasets?

Key findings

  • On the insurance dataset (11 classes), Eff-GNN with Word2Vec and image embeddings achieved 91.0% AUC, comparable to BERT and DocBERT (91.95%) but with only 734k parameters versus 110M.
  • On the Tobacco-3482 dataset (10 classes), Eff-GNN achieved 77.5% AUC with image and text features, outperforming BERT (79.0%) and VGG-16 (81.5%) in efficiency.
  • Eff-GNN trained on GPU required only 3.5 minutes for 50 epochs, compared to 6.2 hours for BERT, and used 470MB GPU memory versus 10.5GB for BERT.
  • Eff-GNN inference time was 0.79 seconds per image on GPU and CPU, significantly faster than BERT’s 40 seconds, with no GPU memory usage on CPU.
  • The model size was reduced to 734k parameters (124k + 610k), making it feasible for CPU deployment and scalable containerized hosting.
  • The framework demonstrated a 40x speedup in inference over BERT and a 10x reduction in GPU memory usage, highlighting major cost advantages for enterprise deployment.

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.