PIX2DB: Reconstructing Executable Relational Databases from Document Images with a 2B Vision-Language Model

Abstract Tables trapped in screenshots, scans, receipts and charts are usually extracted as markup that keeps the layout but not the relational meaning: merged cells stay merged, an invoice header and its line items stay unrelated, and “$1,250.00” stays a string. We study image-to-database reconstruction: given one image, produce a SQLite dump whose schema, column types, keys and rows load and can be queried as they are. Training data with exact gold databases is obtained in two ways: by rendering samples of the Spider databases at six layout levels, and by converting PubTabNet, FinTabNet and CORD annotations under the same normalization rules. A 2B model (Qwen3-VL-2B with LoRA) trained on 36,589 pairs and followed by a deterministic verify-and-repair layer reaches 0.86 table exact match and 0.99 foreign-key recall on rendered tables from unseen databases, against 0.75/0.75 for the 8B model of the same family prompted for SQL and 0.47/0.00 for an 8B HTML-to-SQLite pipeline. On held-out real images it obtains cell F1 0.81 (PubTabNet) and 0.96 (FinTabNet) and recall 0.93 on CORD receipt photos. On TabRecSet, a source not used in training, it is the best system that writes a database directly (0.52) but trails the 8B HTML pipeline (0.58), mostly in reading text from photographs. A variant trained on synthetic data alone matches the synthetic score and fails on real images, which locates the value of the real data. Code, model, data and all evaluation outputs are public.

Link
https://doi.org/10.21203/rs.3.rs-11467404/v1
Found by
Crossref
Authors
Musa Peker
Organizations
Özdilek
Categories
evaluation, dataset
Published
2026-10-23
Last seen by the radar
2026-10-25
Citations
0
Radar score
37.25 / 100 (how it is scored)
Why it scored so
Matched: evaluat, synthetic data, training data; Primary record: Crossref; Also found via OpenAlex
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Crossref