This paper presents Webvicob (Web-based Visual Corpus Builder), an engine designed to generate massive, high-quality, and multilingual datasets for Visual Document Understanding (VDU). By leveraging the structured nature of the web, the authors provide a scalable alternative to traditional, OCR-dependent document datasets.
TL;DR
Webvicob transforms Wikipedia HTML dumps into large-scale visual document datasets with "perfect" ground-truth annotations, bypassing the need for error-prone OCR. Models pretrained on just 1 million Webvicob images outperformed those trained on 11 million traditional industrial document images by over 13% on complex document QA tasks.
What Problem Does This Paper Address?
Visual Document Understanding (VDU) is the field of AI that helps computers "read" documents by considering both text and layout (e.g., forms, invoices, or reports). To train these models, researchers typically rely on massive datasets like IIT-CDIP, which contains 11 million scanned industrial documents.
However, these traditional datasets have three major flaws:
- Language Bias: They are overwhelmingly English-centric, leaving non-Latin and resource-scarce languages underserved.
- OCR Noise: To get labels for scanned images, researchers must run Optical Character Recognition (OCR). OCR errors (misread text or shifted boxes) propagate into the model, limiting its potential.
- High Cost: Running high-quality OCR on millions of images is computationally expensive and often requires proprietary APIs.
Methods
The authors propose a "synthetic-but-real" approach. Instead of scanning physical paper, they render web pages as documents.
- The Webvicob Engine: The system takes raw Wikipedia HTML and uses Selenium to render it.
- DOM-Based Annotation: Unlike OCR, which guesses where text is, Webvicob uses Document Object Model (DOM) APIs. By injecting
<span>tags around every character and callinggetBoundingClientRect(), the engine captures the exact pixel coordinates for every character, word, line, and paragraph. - Visual Diversity: To prevent the model from over-fitting to a single "web look," the authors randomly apply 3,567 different Google Fonts to the content.
- Hierarchical Labels: The engine produces a rich hierarchy of data, including LaTeX for mathematical formulas, which is notoriously difficult for standard OCR to handle.
- Augmentation: The engine can be paired with libraries like Augraphy to simulate real-world "paper" artifacts like folds, stains, and sunlight glares.
Datasets
The paper evaluates models using several benchmarks:
- Webvicob (New): A virtual dataset capable of producing 60M+ samples across 270+ languages. For this study, the authors generated a multilingual set of 18.6M images.
- IIT-CDIP: The standard baseline of 11M scanned English business documents.
- DocVQA (Tasks 1 & 3): Benchmarks for document visual question answering.
- FUNSD & XFUND: Datasets for spatial entity recognition (e.g., finding "Header" vs. "Question" vs. "Answer" in a form) across multiple languages.
Key Insights and Ideas
- Quality Trumps Quantity: One of the most striking findings is that 1 million images from Webvicob yielded better results on DocVQA Task 3 than 11 million images from IIT-CDIP. This suggests that the diversity of web content and the precision of the labels are more valuable than raw volume.
- De-biasing the Corpus: Traditional datasets are often biased toward specific document types (like 1990s-era memos). Webvicob captures the "long tail" of document layouts found on the internet, making models more robust to modern document formats.
- The "OCR-Free" Advantage: For models like Donut (which read images directly without an internal OCR step), having perfect ground-truth text during pretraining is critical. Webvicob provides a clean signal that helps these models learn the relationship between pixels and semantics more effectively.
Key Results
- DocVQA Task 3: A BROS model pretrained on 1M Webvicob images achieved an ANLS (Average Normalized Levenshtein Similarity) score of 28.09, compared to 24.76 for the same model trained on 11M IIT-CDIP images—a relative improvement of over 13%.
- Multilingual Performance: Using Webvicob, the authors trained a LayoutXLM model that achieved competitive F1 scores across eight languages (English, Chinese, Japanese, Spanish, French, Portuguese, Italian, and German), proving the engine's utility for global VDU.
- Efficiency: Webvicob-trained models reached high accuracy with significantly fewer GPU training days compared to those trained on SynthDoG (a common synthetic data generator).
Limitations and Future Work
- Format Specificity: Currently, Webvicob is specialized for Wikipedia's HTML structure. While Wikipedia is massive, it doesn't represent every type of document (like complex insurance forms or artistic posters).
- The "Wild" Web: The authors attempted to scale to CommonCrawl (a massive crawl of the entire web), but found that the extreme variety in HTML formatting made it difficult to build a one-size-fits-all extraction logic.
- Future Directions: The authors suggest that expanding the engine to handle a wider variety of web layouts and integrating more sophisticated visual augmentations are the next logical steps.
The source code for the engine is available at: https://github.com/clovaai/webvicob
Summary updated