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

使用ChatGPT进行列类型标注

Column Type Annotation using ChatGPT

University of Mannheim(曼海姆大学)

Keti Korini, Christian Bizer

AI总结:

本研究探索使用ChatGPT进行列类型标注,通过设计提示和两步标注流程,在零样本和单样本设置下F1分数超85%,表现媲美需356例微调的RoBERTa。

摘要:

列类型标注是用每列所含值的语义类型来标注关系表列的任务。在数据湖环境中,列类型标注是数据搜索和数据集成的重要预处理步骤。最先进的列类型标注方法要么依赖将表列与知识图谱的属性进行匹配,要么微调预训练语言模型(如BERT)来进行列类型标注。在本研究中,我们采取不同方法,探索使用ChatGPT进行列类型标注。我们在零样本和少样本设置下评估不同的提示设计,并尝试向模型提供任务定义和详细指令。我们进一步实现了一个两步表标注流程:首先确定表中描述实体的类别,然后根据该类别要求ChatGPT仅使用整体词汇表的相关子集来标注列。使用指令及两步流程,ChatGPT在零样本和单样本设置中达到了超过85%的F1分数。为达到相似的F1分数,RoBERTa模型需要用356个示例进行微调。这一比较表明,在无或仅有最少特定任务示例的情况下,ChatGPT能够为列类型标注任务提供有竞争力的结果。

英文摘要:

Column type annotation is the task of annotating the columns of a relational table with the semantic type of the values contained in each column. Column type annotation is an important pre-processing step for data search and data integration in the context of data lakes. State-of-the-art column type annotation methods either rely on matching table columns to properties of a knowledge graph or fine-tune pre-trained language models such as BERT for column type annotation. In this work, we take a different approach and explore using ChatGPT for column type annotation. We evaluate different prompt designs in zero- and few-shot settings and experiment with providing task definitions and detailed instructions to the model. We further implement a two-step table annotation pipeline which first determines the class of the entities described in the table and depending on this class asks ChatGPT to annotate columns using only the relevant subset of the overall vocabulary. Using instructions as well as the two-step pipeline, ChatGPT reaches F1 scores of over 85% in zero- and one-shot setups. To reach a similar F1 score a RoBERTa model needs to be fine-tuned with 356 examples. This comparison shows that ChatGPT is able deliver competitive results for the column type annotation task given no or only a minimal amount of task-specific demonstrations.

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

↑