arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.16349cs.LG
收藏

AnnotatedTables:一个带有语言模型标注的大规模表格数据集

AnnotatedTables: A Large Tabular Dataset with Language Model Annotations

Iowa State University(爱荷华州立大学);RelationalAI(RelationalAI公司)

Yaojie Hu, Ilias Fountalis, Jin Tian, Nikolaos Vasiloglou

AI总结:

本研究提出可灵活生成多类标注的LLM表格数据标注方法,发布含32119个数据库、405616个有效SQL的AnnotatedTables数据集,并通过SQL转Rel、TabPFN性能评估两项研究验证其价值,证明LLM可自动化大规模表格标注。

摘要:

表格数据在现实应用中无处不在,且在网络上存量丰富,但传统上其标注工作需要人力投入,这给表格机器学习带来了显著的可扩展性瓶颈。我们提出的方法能够成功对大量表格数据进行标注,并且可以根据特定研究目标灵活引导生成多种类型的标注,我们以SQL标注和输入-目标列标注为例进行了验证。基于该方法,我们发布了AnnotatedTables——一个包含32119个数据库、带有大语言模型(LLM)生成标注的数据集。该数据集包含405616个可执行的有效SQL程序,是目前规模最大的、关联支持查询执行的表格数据的SQL数据集。为进一步证明我们的方法和数据集的价值,我们开展了两项后续研究。1)我们探究了LLM是否能将SQL程序翻译成Rel程序(一种LLM此前未知的数据库语言),同时保证执行结果一致。通过我们基于执行反馈的增量提示工程(Incremental Prompt Engineering)方法,我们证明LLM仅通过少样本学习就能生成合格的翻译结果。2)我们在2720个由LLM识别并标注输入-目标列的表格上,评估了TabPFN(一种近期基于贝叶斯先验训练的神经表格分类器)的性能。平均而言,TabPFN的性能与AutoML基线方法相当,不过不同数据表上的相对性能差异显著,因此两种模型都可根据实际场景应用于实践。我们的研究结果凸显了LLM在自动化大规模多样化表格数据标注方面的潜力。

英文摘要:

Tabular data is ubiquitous in real-world applications and abundant on the web, yet its annotation has traditionally required human labor, posing a significant scalability bottleneck for tabular machine learning. Our methodology can successfully annotate a large amount of tabular data and can be flexibly steered to generate various types of annotations based on specific research objectives, as we demonstrate with SQL annotation and input-target column annotation as examples. As a result, we release AnnotatedTables, a collection of 32,119 databases with LLM-generated annotations. The dataset includes 405,616 valid SQL programs, making it the largest SQL dataset with associated tabular data that supports query execution. To further demonstrate the value of our methodology and dataset, we perform two follow-up research studies. 1) We investigate whether LLMs can translate SQL programs to Rel programs, a database language previously unknown to LLMs, while obtaining the same execution results. Using our Incremental Prompt Engineering methods based on execution feedback, we show that LLMs can produce adequate translations with few-shot learning. 2) We evaluate the performance of TabPFN, a recent neural tabular classifier trained on Bayesian priors, on 2,720 tables with input-target columns identified and annotated by LLMs. On average, TabPFN performs on par with the baseline AutoML method, though the relative performance can vary significantly from one data table to another, making both models viable for practical applications depending on the situation. Our findings underscore the potential of LLMs in automating the annotation of large volumes of diverse tabular data.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑