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

为你的数据集定制:通过语料检索与增强进行任务特定合成数据集生成

CRAFT Your Dataset: Task-Specific Synthetic Dataset Generation Through Corpus Retrieval and Augmentation

Department of Computer Science, University of Copenhagen(哥本哈根大学计算机科学系);Center for Information and Language Processing (CIS), LMU Munich(慕尼黑大学信息与语言处理中心);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心)

Ingo Ziegler, Abdullatif Köksal, Desmond Elliott, Hinrich Schütze

AI总结:

CRAFT通过语料检索与增强生成任务特定合成数据集,有效提升问答和摘要任务的模型性能。

摘要:

构建高质量的专用任务数据集是一个耗时且资源密集的过程,通常需要专门的领域知识。我们提出了 Corpus Retrieval and Augmentation for Fine-Tuning(CRAFT),一种生成合成数据集的方法,给定少量用户编写的小样本,这些样本展示了要执行的任务。在这些示例的基础上,CRAFT利用大规模的公共网络爬取语料库和基于相似性的文档检索来查找其他相关的手工编写文档。最后,经过指令微调的大型语言模型(LLMs)将检索到的文档增强为定制格式的任务样本,这些样本随后可用于微调。我们证明CRAFT能够高效地为四个多样化的任务生成大规模的任务特定训练数据集:生物学、医学和常识问答(QA)以及摘要。我们的实验表明,基于CRAFT的模型在问答任务上优于或匹配通用LLMs,同时在超过人类整理的摘要数据模型方面高出46个偏好点。CRAFT优于其他合成数据集生成方法,如Self-和Evol-Instruct,并且即使初始少量样本的质量变化,也保持稳健。

英文摘要:

Building high-quality datasets for specialized tasks is a time-consuming and resource-intensive process that often requires specialized domain knowledge. We propose Corpus Retrieval and Augmentation for Fine-Tuning (CRAFT), a method for generating synthetic datasets, given a small number of user-written few-shots that demonstrate the task to be performed. Given these examples, CRAFT uses large-scale public web-crawled corpora and similarity-based document retrieval to find other relevant human-written documents. Lastly, instruction-tuned large language models (LLMs) augment the retrieved documents into custom-formatted task samples, which then can be used for fine-tuning. We demonstrate that CRAFT can efficiently generate large-scale task-specific training datasets for four diverse tasks: biology, medicine, and commonsense question-answering (QA), as well as summarization. Our experiments show that CRAFT-based models outperform or match general LLMs on QA tasks, while exceeding models trained on human-curated summarization data by 46 preference points. CRAFT outperforms other synthetic dataset generation methods such as Self- and Evol-Instruct, and remains robust even when the quality of the initial few-shots varies.

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

↑