CRAFT
收藏资源简介:
CRAFT数据集是由哥本哈根大学和慕尼黑大学的研究团队开发的,用于生成特定任务的合成数据集。该数据集通过从大规模未标注的语料库中检索相关文档,并使用大型语言模型(LLMs)进行结构化增强,从而生成适合微调的任务样本。CRAFT数据集涵盖了生物学、医学和常识问答以及文本摘要等多个领域的任务。其创建过程依赖于少量用户提供的示例,通过相似性检索和语言模型增强来生成数据。该数据集主要用于优化大型语言模型在特定任务上的表现,旨在解决高质量任务特定数据集获取的挑战。
The CRAFT dataset was developed by research teams from the University of Copenhagen and Ludwig Maximilian University of Munich to generate task-specific synthetic datasets. It produces fine-tuning-ready task samples by retrieving relevant documents from large-scale unannotated corpora and conducting structured enhancement with Large Language Models (LLMs). The CRAFT dataset covers tasks across multiple domains including biology, medicine, commonsense question answering, and text summarization. Its development process relies on a small number of user-provided examples, generating data through similarity retrieval and language model-based enhancement. This dataset is primarily used to optimize the performance of Large Language Models on specific tasks, aiming to address the challenges of acquiring high-quality task-specific datasets.
CRAFT: Corpus Retrieval and Augmentation for Fine-Tuning
数据集概述
CRAFT项目包含多个合成数据集,用于不同任务的微调。以下是可用的合成数据集及其对应的任务:
- BioQA: 生物学问答
- CommonSenseQA (CSQA): 常识问答
- MedQA: 医学问答
- RecipeGen: 食谱生成
- Summarization: 文本摘要
这些数据集可以在Hugging Face上获取,具体链接如下:
- BioQA: https://huggingface.co/datasets/ingoziegler/CRAFT-BioQA
- CommonSenseQA (CSQA): https://huggingface.co/datasets/ingoziegler/CRAFT-CommonSenseQA
- MedQA: https://huggingface.co/datasets/ingoziegler/CRAFT-MedQA
- RecipeGen: https://huggingface.co/datasets/ingoziegler/CRAFT-RecipeGen
- Summarization: https://huggingface.co/datasets/ingoziegler/CRAFT-Summarization
数据集使用
- 少样本示例: 可以通过过滤数据集中的
is_few_shot == 1来获取少样本示例,或者直接加载assets/{task}/few-shot/corpus-task-32.jsonl文件。 - 性能表现: 模型在合成数据集上的训练表现与通用指令微调的LLM相当,甚至在某些任务上优于人类策划的数据集。
数据集性能
- 分布偏移的鲁棒性: 合成数据集在分布偏移上的鲁棒性更强,因为数据生成不是针对特定测试集,而是针对整体任务。
- 5-gram重叠率: 合成数据集与测试集的5-gram重叠率最高为0.4%,而域内训练集的重叠率最高可达17.9%。
适配器检查点
提供了在CRAFT-XL版本上微调后的适配器检查点,具体链接如下:
- BioQA: https://huggingface.co/ingoziegler/CRAFT-BioQA-XL
- CommonSenseQA (CSQA): https://huggingface.co/ingoziegler/CRAFT-CommonSenseQA-XL
- MedQA: https://huggingface.co/ingoziegler/CRAFT-MedQA-XL
- RecipeGen: https://huggingface.co/ingoziegler/CRAFT-RecipeGen-XL
- Summarization: https://huggingface.co/ingoziegler/CRAFT-Summarization-XL




