Reproduce “StrucTexTv2: Masked Visual-Textual Prediction for Document Image Pre-training” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yuechen Yu, Yulin Li, Chengquan Zhang, Xiaoqiang Zhang, Zengyuan Guo, Xiameng Qin, Kun Yao, Junyu Han and 2 more

StrucTexTv2, developed by Baidu Inc., is a self-supervised pre-training framework for document image understanding that effectively bridges visual and textual modalities using image-only input. The model employs a text region-level masking strategy and dual Masked Language Modeling (MLM) and Masked Image Modeling (MIM) tasks, achieving improved performance across various document understanding benchmarks, including 96.06% accuracy on RVL-CDIP and state-of-the-art results on WTW and FUNSD.

Key insights

  • Text region-level masking, which aligns masking with actual text content rather than random patches, significantly outperforms random masking strategies for document understanding.
  • Combining Masked Language Modeling (MLM) and Masked Image Modeling (MIM) tasks during pre-training is crucial for learning both semantic content and visual structure from document images.
  • A masking ratio of approximately 40% of text regions during pre-training yields optimal performance across various downstream tasks.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.