arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2309.09582cs.CLcs.AI
收藏

Fabricator:一个利用教师大语言模型生成标注训练数据的开源工具包

Fabricator: An Open Source Toolkit for Generating Labeled Training Data with Teacher LLMs

Humboldt University of Berlin(柏林洪堡大学);deepset GmbH(deepset有限公司)

Jonas Golde, Patrick Haller, Felix Hamborg, Julian Risch, Alan Akbik

AI总结:

Fabricator是一个开源Python工具包,利用教师大语言模型生成标注训练数据,支持多种下游NLP任务,旨在促进可复现的数据集生成实验和模型训练。

摘要:

大多数自然语言处理任务被建模为监督学习,因此需要标注的训练数据来训练有效的模型。然而,人工以足够质量和数量生成此类数据是众所周知的成本高昂且耗时。当前研究通过探索一种称为“基于数据集生成的零样本学习”的新范式来解决这一瓶颈。在这种范式中,使用任务描述提示一个强大的大语言模型,以生成可用于训练下游自然语言处理模型的标注数据。例如,可以提示一个大语言模型“生成500条具有积极整体情感的电影评论,以及另外500条具有消极情感的评论”。然后,生成的数据可用于训练一个二元情感分类器,从而有效地利用大语言模型作为教师来指导一个较小的学生模型。通过此演示,我们介绍了Fabricator,一个用于数据集生成的开源Python工具包。Fabricator实现了常见的数据集生成工作流程,支持广泛的下游自然语言处理任务(如文本分类、问答和实体识别),并与知名库集成以促进快速实验。借助Fabricator,我们旨在支持研究人员使用大语言模型进行可复现的数据集生成实验,并帮助从业者应用这种方法来训练下游任务的模型。

英文摘要:

Most NLP tasks are modeled as supervised learning and thus require labeled training data to train effective models. However, manually producing such data at sufficient quality and quantity is known to be costly and time-intensive. Current research addresses this bottleneck by exploring a novel paradigm called zero-shot learning via dataset generation. Here, a powerful LLM is prompted with a task description to generate labeled data that can be used to train a downstream NLP model. For instance, an LLM might be prompted to "generate 500 movie reviews with positive overall sentiment, and another 500 with negative sentiment." The generated data could then be used to train a binary sentiment classifier, effectively leveraging an LLM as a teacher to a smaller student model. With this demo, we introduce Fabricator, an open-source Python toolkit for dataset generation. Fabricator implements common dataset generation workflows, supports a wide range of downstream NLP tasks (such as text classification, question answering, and entity recognition), and is integrated with well-known libraries to facilitate quick experimentation. With Fabricator, we aim to support researchers in conducting reproducible dataset generation experiments using LLMs and help practitioners apply this approach to train models for downstream tasks.

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

↑