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

SynthesizRR:通过检索增强生成多样化数据集

SynthesizRR: Generating Diverse Datasets with Retrieval Augmentation

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Amazon(亚马逊公司)

Abhishek Divekar, Greg Durrett

AI总结:

提出SynthesizRR方法,通过检索增强在数据集合成中引入多样性,解决了少样本提示导致的重复和偏见问题,显著提升了数据多样性、文本相似性和蒸馏性能。

摘要:

由于计算和内存限制,通常希望将大型语言模型(LLMs)的能力蒸馏到较小的学生模型中。对于分类任务,实现这一点的一种方法是通过数据集合成,即通过从LLM生成每个标签的示例来完成。先前的合成方法使用少样本提示,依赖LLM的参数化知识来生成可用示例。然而,这会导致重复、偏向流行实体以及与人类文本的文体差异等问题。在这项工作中,我们提出了通过检索和精炼进行合成(SynthesizRR),它使用检索增强在数据集合成过程中引入多样性:随着检索到的段落不同,LLM被植入不同的内容以生成其示例。我们实证研究了六个数据集的合成,涵盖主题分类、情感分析、语气检测和幽默,需要复杂的合成策略。我们发现,与32-shot提示和四种先前方法相比,SynthesizRR大大提高了词汇和语义多样性、与人类编写文本的相似性以及蒸馏性能。我们发布了执行所有步骤的代码,网址为https://github.com/amazon-science/synthesizrr

英文摘要:

It is often desirable to distill the capabilities of large language models (LLMs) into smaller student models due to compute and memory constraints. One way to do this for classification tasks is via dataset synthesis, which can be accomplished by generating examples of each label from the LLM. Prior approaches to synthesis use few-shot prompting, which relies on the LLM's parametric knowledge to generate usable examples. However, this leads to issues of repetition, bias towards popular entities, and stylistic differences from human text. In this work, we propose Synthesize by Retrieval and Refinement (SynthesizRR), which uses retrieval augmentation to introduce variety into the dataset synthesis process: as retrieved passages vary, the LLM is seeded with different content to generate its examples. We empirically study the synthesis of six datasets, covering topic classification, sentiment analysis, tone detection, and humor, requiring complex synthesis strategies. We find that SynthesizRR greatly improves lexical and semantic diversity, similarity to human-written text, and distillation performance, when compared to 32-shot prompting and four prior approaches. We release our code to perform all steps at https://github.com/amazon-science/synthesizrr

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

↑