Skip to main content
QUICK REVIEW

[Paper Review] DocSegTr: An Instance-Level End-to-End Document Image Segmentation Transformer

Sanket Biswas, Ayan Banerjee|arXiv (Cornell University)|Jan 27, 2022
Handwritten Text Recognition TechniquesComputer Science10 citations
TL;DR

This paper proposes DocSegTr, a few-shot, end-to-end document image segmentation transformer that enables instance-level recognition of rare or unknown alphabets in low-resource handwritten manuscripts with minimal human annotation. By using only 5 exemplar images per symbol type and applying unsupervised progressive pseudo-labeling to unlabeled text lines, the model achieves performance comparable to fully supervised methods while drastically reducing manual labeling effort.

ABSTRACT

Understanding documents with rich layouts is an essential step towards information extraction. Business intelligence processes often require the extraction of useful semantic content from documents at a large scale for subsequent decision-making tasks. In this context, instance-level segmentation of different document objects (title, sections, figures etc.) has emerged as an interesting problem for the document analysis and understanding community. To advance the research in this direction, we present a transformer-based model called \emph{DocSegTr} for end-to-end instance segmentation of complex layouts in document images. The method adapts a twin attention module, for semantic reasoning, which helps to become highly computationally efficient compared with the state-of-the-art. To the best of our knowledge, this is the first work on transformer-based document segmentation. Extensive experimentation on competitive benchmarks like PubLayNet, PRIMA, Historical Japanese (HJ) and TableBank demonstrate that our model achieved comparable or better segmentation performance than the existing state-of-the-art approaches with the average precision of 89.4, 40.3, 83.4 and 93.3. This simple and flexible framework could serve as a promising baseline for instance-level recognition tasks in document images.

Motivation & Objective

  • To address the challenge of recognizing handwritten manuscripts with rare or unknown alphabets where labeled training data is extremely scarce.
  • To minimize human annotation burden by replacing manual bounding box and symbol labeling with an automated pseudo-labeling process.
  • To develop a generic, end-to-end model that can be applied across diverse scripts without retraining from scratch.
  • To evaluate the effectiveness of progressive, unsupervised pseudo-labeling in improving model performance on low-resource datasets.
  • To demonstrate that few-shot learning combined with self-supervised pseudo-labeling can achieve competitive results with minimal manual data curation.

Proposed method

  • The model uses a few-shot learning framework where only 5 exemplar images per symbol type are required for support during inference.
  • A transformer-based architecture performs instance-level detection by computing similarity between support features and query features in the feature space.
  • An attention-enhanced Region Proposal Network (RPN) generates candidate bounding boxes by attending to support features across the query image.
  • Pseudo-labeling is performed progressively: high-confidence predictions are iteratively added to the labeled set, with a threshold of 0.4 for confidence filtering.
  • The method avoids manual annotation of entire text lines by using unsupervised, segmentation-free pseudo-labeling on unlabeled data.
  • The model is fine-tuned end-to-end using both real labeled examples and automatically generated pseudo-labeled data.

Experimental results

Research questions

  • RQ1Can a few-shot learning approach achieve high performance in handwritten text recognition with only 5 exemplar images per symbol type?
  • RQ2Can unsupervised progressive pseudo-labeling effectively reduce the need for manual annotation in low-resource manuscript recognition?
  • RQ3How does the performance of the proposed method compare to fully supervised and self-supervised baselines in extremely low-resource settings?
  • RQ4Does incorporating pseudo-labeled data with low confidence still benefit the model, or does it degrade performance?
  • RQ5Can the proposed method generalize across different scripts and cursive, touching text lines without retraining?

Key findings

  • The model achieves a symbol error rate (SER) of 0.24 on the Borg dataset using only 5 exemplar images per symbol and unsupervised pseudo-labeling, approaching the performance of fully supervised training.
  • The method outperforms data-hungry self-supervised models like MAE and UP-DETR, which achieve SERs above 0.6 even with 50% labeled data, demonstrating its suitability for low-resource scenarios.
  • Pseudo-labeling with a confidence threshold of 0.4 yields optimal performance, as shown by ablation studies on the Borg dataset.
  • Despite a slight drop in performance during early pseudo-labeling iterations, continued refinement leads to stable and effective learning, indicating robustness to noisy labels.
  • The model maintains strong performance even when the source alphabet differs from the target, showing transferability across scripts.
  • The approach enables recognition of cuneiform and ciphered manuscripts with minimal human intervention, significantly reducing annotation time and effort.

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.