Saved in:
Bibliographic Details
Main Authors: Arora, Simran, Yang, Brandon, Eyuboglu, Sabri, Narayan, Avanika, Hojel, Andrew, Trummer, Immanuel, Ré, Christopher
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2304.09433
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912263877689344
author Arora, Simran
Yang, Brandon
Eyuboglu, Sabri
Narayan, Avanika
Hojel, Andrew
Trummer, Immanuel
Ré, Christopher
author_facet Arora, Simran
Yang, Brandon
Eyuboglu, Sabri
Narayan, Avanika
Hojel, Andrew
Trummer, Immanuel
Ré, Christopher
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2304_09433
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakes
Arora, Simran
Yang, Brandon
Eyuboglu, Sabri
Narayan, Avanika
Hojel, Andrew
Trummer, Immanuel
Ré, Christopher
Computation and Language
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.
title Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakes
topic Computation and Language
url https://arxiv.org/abs/2304.09433