Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakes

被引:7
作者
Arora, Simran [1 ]
Yang, Brandon [1 ]
Eyuboglu, Sabri [1 ]
Narayan, Avanika [1 ]
Hojel, Andrew [1 ]
Trummer, Immanuel [2 ]
Re, Christopher [1 ]
机构
[1] Stanford Univ, Stanford, CA 94305 USA
[2] Cornell Univ, Ithaca, NY 14853 USA
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2023年 / 17卷 / 02期
关键词
D O I
10.14778/3626292.3626294
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
A long standing goal in the data management community is developing systems that input documents and output queryable tables without user effort. 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 the in-context learning abilities of large language models (LLMs). We propose and evaluate EVAPORATE, a prototype system powered by LLMs. We identify two 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 implementation, EVAPORATE-CODE+, which achieves better quality than direct extraction. Our insight is to generate many candidate functions and ensemble their extractions using weak supervision. EVAPORATE-CODE+ outperforms the state-of-the art systems using a sublinear pass over the documents with the LLM. This equates to a 110x reduction in the number of documents the LLM needs to process across our 16 real-world evaluation settings.
引用
收藏
页码:92 / 105
页数:14
相关论文
共 68 条
  • [51] Raghavan S., 2006, IEEE Data Eng. Bull
  • [52] Rajpurkar P, 2016, Arxiv, DOI arXiv:1606.05250
  • [53] Snorkel: Rapid Training Data Creation with Weak Supervision
    Ratner, Alexander
    Bach, Stephen H.
    Ehrenberg, Henry
    Fries, Jason
    Wu, Sen
    Re, Christopher
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2017, 11 (03): : 269 - 282
  • [54] Rideout J. R., 2019, biotechnology. Nature
  • [55] Data mining in education
    Romero, Cristobal
    Ventura, Sebastian
    [J]. WILEY INTERDISCIPLINARY REVIEWS-DATA MINING AND KNOWLEDGE DISCOVERY, 2013, 3 (01) : 12 - 27
  • [56] Shankar S, 2022, Arxiv, DOI [arXiv:2209.09125, DOI 10.48550/ARXIV.2209.09125, 10.48550/arXiv.2209.09125]
  • [57] Sheng Y, 2023, Arxiv, DOI arXiv:2303.06865
  • [58] Incremental Knowledge Base Construction Using DeepDive
    Shin, Jaeho
    Wu, Sen
    Wang, Feiran
    De Sa, Christopher
    Zhang, Ce
    Re, Christopher
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2015, 8 (11): : 1310 - 1321
  • [59] Smith Ryan, 2022, arXiv
  • [60] Sun Aixin, 2022, IJCAI22