语言模型使简单系统能够生成异构数据湖的结构化视图
Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakes
AI总结:
本研究提出由LLM驱动的EVAPORATE系统,通过代码合成与弱监督集成策略EVAPORATE-CODE+,在减少110倍token处理量的同时,优于现有系统,实现异构数据湖的结构化视图生成。
摘要:
数据管理社区的一个长期目标是开发通用的自动化系统,该系统无需人工干预或领域特定定制即可摄取半结构化文档并输出可查询的表格。鉴于潜在文档的多样性,现有最先进的系统做出了简化假设并使用领域特定训练。在本研究中,我们探讨是否可以通过使用大型语言模型(LLMs)来保持通用性。LLMs 在广泛数据上进行了预训练,仅需以自然语言任务描述作为条件即可执行各种下游任务。我们提出并评估了 EVAPORATE,一个由 LLMs 驱动的简单原型系统。我们确定了实现该系统的两种根本不同的策略:提示 LLM 直接从文档中提取值,或提示 LLM 合成执行提取的代码。我们的评估表明,这两种方法之间存在成本与质量的权衡。代码合成成本低,但准确度远低于直接使用 LLM 处理每个文档。为了在保持低成本的同时提高质量,我们提出了一种扩展的代码合成实现 EVAPORATE-CODE+,其质量优于直接提取。我们的核心见解是生成许多候选函数,并使用弱监督对它们的提取结果进行集成。EVAPORATE-CODE+ 不仅优于现有最先进的系统,而且通过对文档进行次线性传递来实现这一点。这相当于 LLM 需要处理的 token 数量减少了 110 倍,该结果是在 16 个包含 1 万个文档的真实评估设置中平均得出的。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。