Spatial ModernBERT: Spatial-Aware Transformer for Table and Key-Value Extraction in Financial Documents at Scale
Javis AI Team: Amrendra Singh, Maulik Shah, Dharshan Sampath

TL;DR
Spatial ModernBERT is a transformer model that incorporates spatial information to accurately extract tables and key-value pairs from complex financial documents, improving automation in financial workflows.
Contribution
The paper introduces Spatial ModernBERT, a spatial-aware transformer model with novel token classification heads for precise table and key-value extraction in financial documents.
Findings
Achieves high accuracy in table and key-value extraction.
Effectively leverages spatial and textual cues.
Outperforms existing methods on financial document datasets.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Text Analysis Techniques · Mathematics, Computing, and Information Processing
