SQUiD: Synthesizing Relational Databases from Unstructured Text
Mushtari Sadia, Zhenning Yang, Yunming Xiao, Ang Chen, Amrita Roy Chowdhury
TL;DR
This paper defines Text2R, the task of synthesizing a relational database from unstructured text, and introduces SQUiD, a neurosymbolic four-stage framework that partitions the problem into schema generation, value identification, table population, and database materialization. By combining symbolic information extraction with LLM-guided methods and programmatic SQL generation, SQUiD achieves robust, schema-consistent databases that are then materialized in SQLite for deterministic evaluation. The authors construct automated benchmarks (BIRD and Kaggle-based datasets) and propose a comprehensive metric suite to evaluate schema and data fidelity, demonstrating consistent improvements over zero-shot baselines across diverse domains and model sizes. The work advances end-to-end data integration from narrative text, with practical implications for scalable data curation and cross-domain information management.
Abstract
Relational databases are central to modern data management, yet most data exists in unstructured forms like text documents. To bridge this gap, we leverage large language models (LLMs) to automatically synthesize a relational database by generating its schema and populating its tables from raw text. We introduce SQUiD, a novel neurosymbolic framework that decomposes this task into four stages, each with specialized techniques. Our experiments show that SQUiD consistently outperforms baselines across diverse datasets.
