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

评估基于LLM的列类型标注的知识生成与自我精炼策略

Evaluating Knowledge Generation and Self-Refinement Strategies for LLM-based Column Type Annotation

University of Mannheim(曼海姆大学)

Keti Korini, Christian Bizer

AI总结:

本文实验比较了基于LLM的列类型标注的多种知识生成与自我精炼策略,发现将微调模型与自我精炼的术语定义结合可获最高性能,且不同策略的成本效益取决于标注规模。

摘要:

理解关系表中列的语义是为数据湖建立索引以提供丰富数据搜索的重要预处理步骤。建立这种理解的一种方法是列类型标注(CTA),其目标是使用给定词汇表中的术语对表列进行标注。本文实验比较了基于LLM的列类型标注的不同知识生成和自我精炼策略。这些策略包括使用LLM生成术语定义、基于错误的术语定义精炼、自我纠正,以及使用示例和术语定义进行微调。我们沿着两个维度评估这些策略:以F1性能衡量的有效性和以token使用量和成本衡量的效率。我们的实验表明,最佳性能策略取决于模型/数据集组合。我们发现,对于使用OpenAI模型的三个数据集中的两个,使用训练数据生成标签定义的性能优于将相同数据用作上下文学习的演示。实验进一步表明,与非精炼定义的性能相比,使用LLM精炼标签定义在12种设置中的10种中带来了3.9% F1的平均提升。将微调模型与自我精炼的术语定义相结合,获得了总体最高性能,在F1分数上比零样本提示微调模型至少高出3%。成本分析表明,在达到相似F1分数的情况下,对于需要标注较少量表的使用场景,通过提示进行自我精炼更具成本效益,而对于大量表,微调更高效。

英文摘要:

Understanding the semantics of columns in relational tables is an important pre-processing step for indexing data lakes in order to provide rich data search. An approach to establishing such understanding is column type annotation (CTA) where the goal is to annotate table columns with terms from a given vocabulary. This paper experimentally compares different knowledge generation and self-refinement strategies for LLM-based column type annotation. The strategies include using LLMs to generate term definitions, error-based refinement of term definitions, self-correction, and fine-tuning using examples and term definitions. We evaluate these strategies along two dimensions: effectiveness measured as F1 performance and efficiency measured in terms of token usage and cost. Our experiments show that the best performing strategy depends on the model/dataset combination. We find that using training data to generate label definitions outperforms using the same data as demonstrations for in-context learning for two out of three datasets using OpenAI models. The experiments further show that using the LLMs to refine label definitions brings an average increase of 3.9% F1 in 10 out of 12 setups compared to the performance of the non-refined definitions. Combining fine-tuned models with self-refined term definitions results in the overall highest performance, outperforming zero-shot prompting fine-tuned models by at least 3% in F1 score. The costs analysis shows that while reaching similar F1 score, self-refinement via prompting is more cost efficient for use cases requiring smaller amounts of tables to be annotated while fine-tuning is more efficient for large amounts of tables.

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

↑