Visual Template Inference for Data Extraction from Documents
Not on the map. Why?
Abstract (arXiv)
Many templatized documents are programmatically generated from structured data following a visual template. Such documents include invoices, tax documents, financial reports, and purchase orders. Effective data extraction from these documents is crucial to support downstream analytical tasks. Current data extraction tools often struggle with complex document layouts, incur high latency and/or cost on large datasets, and require significant human effort. The key insight of our tool, TWIX, is to infer the underlying template used to create such documents, and then extract the data, rather than extracting directly from documents. To do so, TWIX first infers the underlying fields, such as columns of tabular portions or keys in co-located key-value pairs, by leveraging their consistent location patterns (e.g., two fields in the same template repeatedly co-occur within a fixed distance apart across multiple records). TWIX then assembles these fields into a template by enforcing visual constraints, such as vertically aligning table rows with their column headers for tabular regions, and horizontally aligning keys with their values for key-value pairs. TWIX then uses this inferred template to accurately and efficiently extract data from templatized documents at a low cost. On one benchmark with 34 diverse real-world datasets, TWIX outperforms state-of-the-art structured data extraction tools (Evaporate, Textract, and Azure Document Intelligence), and vision-based LLMs like GPT-4-Vision, by over 25% in precision and recall. Another benchmark with 30 large datasets demonstrates TWIX's scalability: it is 520X faster and 3,786X cheaper than the most competitive compared tool, for extracting data from large document collections with over 2000 pages.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 15 of its 50 references that are in the map. First posted on arXiv 11 Jan 2025.
Builds on
15 of 50 references.
References · 15
- 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 553
- 2022Unifying Vision, Text, and Layout for Universal Document Processingcited by 140
- 2023Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakescited by 111
- 2018Chargrid: Towards Understanding 2D Documentscited by 100
- 2022Towards End-to-End Unified Scene Text Detection and Layout Analysiscited by 97
- 2017Learning to Extract Semantic Structure from Documents Using Multimodal Fully Convolutional Neural Networkcited by 92
- 2020TableNet: Deep Learning model for end-to-end Table detection and Tabular data extraction from Scanned Document Imagescited by 69
- 2023DocILE Benchmark for Document Information Localization and Extractioncited by 58
- 2024DocETL: Agentic Query Rewriting and Evaluation for Complex Document Processingcited by 52
- 2019READ: Recursive Autoencoders for Document Layout Generationcited by 51
- 2024A Declarative System for Optimizing AI Workloadscited by 37
- 2021Form2Seq : A Framework for Higher-Order Form Structure Extractioncited by 16
Built on by
Citing papers per year: 2025: 4; 2026: 3.
7 papers.
- 2026Memory in the LLM Era: Modular Architectures and Strategies in a Unified Frameworkcited by 12
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answeringcited by 11
- 2025Benchmarking Chinese Medical LLMs: A Medbench-based Analysis of Performance Gaps and Hierarchical Optimization Strategiescited by 2
- 2025A Case for Computing on Unstructured Datacited by 2
- 2025LLM-Powered Proactive Data Systemscited by 1
- 2026ExtractBench: A Benchmark for Schema-Guided Enterprise Document Extractioncited by 1
- 2026CRAFT: An Agentic Spreadsheet Form Filling System with Template Awarenesscited by 0
- 2026CRAFT: An Agentic Spreadsheet Form Filling System with Template Awareness3 Oct 2026
- 2026ExtractBench: A Benchmark for Schema-Guided Enterprise Document Extraction31 Jul 2026
- 2026Memory in the LLM Era: Modular Architectures and Strategies in a Unified Framework2 Apr 2026
- 2025A Case for Computing on Unstructured Data18 Sep 2025
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answering25 Aug 2025
- 2025Benchmarking Chinese Medical LLMs: A Medbench-based Analysis of Performance Gaps and Hierarchical Optimization Strategies10 Mar 2025
- 2025LLM-Powered Proactive Data Systems18 Feb 2025