Spatial ModernBERT: Spatial-Aware Transformer for Table and Key-Value Extraction in Financial Documents at Scale
Not on the map. Why?
Abstract (arXiv)
Extracting tables and key-value pairs from financial documents is essential for business workflows such as auditing, data analytics, and automated invoice processing. In this work, we introduce Spatial ModernBERT-a transformer-based model augmented with spatial embeddings-to accurately detect and extract tabular data and key-value fields from complex financial documents. We cast the extraction task as token classification across three heads: (1) Label Head, classifying each token as a label (e.g., PO Number, PO Date, Item Description, Quantity, Base Cost, MRP, etc.); (2) Column Head, predicting column indices; (3) Row Head, distinguishing the start of item rows and header rows. The model is pretrained on the PubTables-1M dataset, then fine-tuned on a financial document dataset, achieving robust performance through cross-entropy loss on each classification head. We propose a post-processing method to merge tokens using B-I-IB tagging, reconstruct the tabular layout, and extract key-value pairs. Empirical evaluation shows that Spatial ModernBERT effectively leverages both textual and spatial cues, facilitating highly accurate table and key-value extraction in real-world financial documents.
Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 42 of its 60 references that are in the map. First posted on arXiv 9 Jul 2025.
Builds on
42 of 60 references.
References · 42
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,625
- 2020End-to-End Object Detection with Transformerscited by 7,396
- 2025Qwen2.5-VL Technical Reportcited by 5,499
- 2023Improved Baselines with Visual Instruction Tuningcited by 4,389
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,368
- 2025SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Featurescited by 1,154
- 2021YOLOX: Exceeding YOLO Series in 2021cited by 1,069
- 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 551
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 544
- 2022LayoutLMv3: Pre-training for Document AI with Unified Text and Image Maskingcited by 482
30 more
- 2020LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document Understandingcited by 406
- 2021OCR-free Document Understanding Transformercited by 402
- 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 362
- 2019FUNSD: A Dataset for Form Understanding in Noisy Scanned Documentscited by 345
- 2021DocFormer: End-to-End Transformer for Document Understandingcited by 254
- 2019Image-based table recognition: data, model, and evaluationcited by 233
- 2022DiT: Self-supervised Pre-training for Document Image Transformercited by 152
- 2021Going Full-TILT Boogie on Document Understanding with Text-Image-Layout Transformercited by 134
- 2021PubTables-1M: Towards comprehensive table extraction from unstructured documentscited by 122
- 2021SelfDoc: Self-Supervised Document Representation Learningcited by 117
- 2022LiLT: A Simple yet Effective Language-Independent Layout Transformer for Structured Document Understandingcited by 107
- 2021BROS: A Pre-trained Language Model Focusing on Text and Layout for Better Key Information Extraction from Documentscited by 104
- 2020CascadeTabNet: An approach for end to end table detection and structure recognition from image-based documentscited by 98
- 2022TableFormer: Table Structure Understanding with Transformerscited by 93
- 2019Complicated Table Structure Recognitioncited by 91
- 2021StrucTexT: Structured Text Understanding with Multi-Modal Transformerscited by 90
- 2022Unified Pretraining Framework for Document Understandingcited by 85
- 2020TableNet: Deep Learning model for end-to-end Table detection and Tabular data extraction from Scanned Document Imagescited by 69
- 2022XYLayoutLM: Towards Layout-Aware Multimodal Networks For Visually-Rich Document Understandingcited by 68
- 2021LGPMA: Complicated Table Structure Recognition with Local and Global Pyramid Mask Alignmentcited by 46
- 2021Split, embed and merge: An accurate table structure recognizercited by 42
- 2023Improving Table Structure Recognition with Visual-Alignment Sequential Coordinate Modelingcited by 41
- 2021Neural Collaborative Graph Machines for Table Structure Recognitioncited by 30
- 2022TRUST: An Accurate and End-to-End Table structure Recognizer Using Splitting-based Transformerscited by 19
- 2023Aligning benchmark datasets for table structure recognitioncited by 15
- 2023GridFormer: Towards Accurate Table Structure Recognition via Grid Predictioncited by 13
- 2015A Survey on Hough Transform, Theory, Techniques and Applicationscited by 11
- 2023Rethinking Image-based Table Recognition Using Weakly Supervised Methodscited by 10
- 2022SpaDE: Improving Sparse Representations using a Dual Document Encoder for First-stage Retrievalcited by 6
- 2024Multi-Cell Decoder and Mutual Learning for Table Structure and Character Recognitioncited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.