Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakes
Authors:
Preprint
Abstract
A long standing goal of the data management community is to develop general, automated systems that ingest semi-structured documents and output queryable tables without human effort or domain specific customization. Given the sheer variety of potential documents, state-of-the art systems make simplifying assumptions and use domain specific training. In this work, we ask whether we can maintain generality by using large language models (LLMs). LLMs, which are pretrained on broad data, can perform diverse downstream tasks simply conditioned on natural language task descriptions. We propose and evaluate EVAPORATE, a simple, prototype system powered by LLMs. We identify two fundamentally different strategies for implementing this system: prompt the LLM to directly extract values from documents or prompt the LLM to synthesize code that performs the extraction. Our evaluations show a cost-quality tradeoff between these two approaches. Code synthesis is cheap, but far less accurate than directly processing each document with the LLM. To improve quality while maintaining low cost, we propose an extended code synthesis implementation, EVAPORATE-CODE+, which achieves better quality than direct extraction. Our key insight is to generate many candidate functions and ensemble their extractions using weak supervision. EVAPORATE-CODE+ not only outperforms the state-of-the art systems, but does so using a sublinear pass over the documents with the LLM. This equates to a 110x reduction in the number of tokens the LLM needs to process, averaged across 16 real-world evaluation settings of 10k documents each.Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- Language Models in the Loop: Incorporating Prompting into Weak SupervisionACM / IMS Journal of Data Science, 2024
- ChatGPT: Jack of all trades, master of noneInformation Fusion, 2023
- Can Foundation Models Wrangle Your Data?Proceedings of the VLDB Endowment, 2022
- How medical AI devices are evaluated: limitations and recommendations from an analysis of FDA approvalsNature Medicine, 2021
- Numerical Relation Extraction with Minimal SupervisionProceedings of the AAAI Conference on Artificial Intelligence, 2016
- A Big Data Guide to Understanding Climate Change: The Case for Theory-Guided Data ScienceBig Data, 2014
- Extraction and integration of partially overlapping web sourcesProceedings of the VLDB Endowment, 2013
- Medical Device Recalls and the FDA Approval ProcessArchives of internal medicine (1960), 2011
- Open information extraction from the webCommunications of the ACM, 2008
- Unsupervised named-entity extraction from the Web: An experimental studyArtificial Intelligence, 2005