[论文解读] Large Language Model as Attributed Training Data Generator: A Tale of Diversity and Bias
论文提出 AttrPrompt,一种使用具备多样属性提示的大模型来生成训练数据的方法,在高基数分类任务中展示出相较于简单提示在模型性能上提升和偏差降低的效果,并具数据效率更好。
Large language models (LLMs) have been recently leveraged as training data generators for various natural language processing (NLP) tasks. While previous research has explored different approaches to training models using generated data, they generally rely on simple class-conditional prompts, which may limit the diversity of the generated data and inherit systematic biases of LLM. Thus, we investigate training data generation with diversely attributed prompts (e.g., specifying attributes like length and style), which have the potential to yield diverse and attributed generated data. Our investigation focuses on datasets with high cardinality and diverse domains, wherein we demonstrate that attributed prompts outperform simple class-conditional prompts in terms of the resulting model's performance. Additionally, we present a comprehensive empirical study on data generation encompassing vital aspects like bias, diversity, and efficiency, and highlight three key observations: firstly, synthetic datasets generated by simple prompts exhibit significant biases, such as regional bias; secondly, attribute diversity plays a pivotal role in enhancing model performance; lastly, attributed prompts achieve the performance of simple class-conditional prompts while utilizing only 5\% of the querying cost of ChatGPT associated with the latter. The data and code are available on \url{https://github.com/yueyu1030/AttrPrompt}.
研究动机与目标
- 探究将提示进行属性化(如长度、位置、风格)是否比简单的类别条件提示(SimPrompt)产生更丰富多样且信息量更高的生成数据。
- 在高基数、跨领域的分类任务中量化LLM生成数据的偏差与多样性。
- 评估数据效率(成本)以及在不同模型规模和将LLM作为数据生成器的方式下的兼容性。
- 提供一个半自动化的属性维度识别与值过滤工作流,以减少歧义。
- 发布生成的数据和提示,以促进未来研究。
提出的方法
- 通过与ChatGPT进行人机交互协作,识别每个数据集的属性维度和值。
- 通过随机组合属性维度/值来生成具属性的提示(AttrPrompt),以创建多样化的提示。
- 使用BERT族分类器的标准微调,将AttrPrompt与SimPrompt和Gold数据进行比较。
- 应用 Class-Dependent Attribute Value Filtering (CAF) 以防止类别相关属性的歧义。
- 使用词汇量、余弦相似度、APS、INGF等指标评估词汇与结构多样性。
- 通过对比多种LLM和模型规模下的性能与查询成本,评估数据效率。
- 通过将 AttrPrompt 与其他数据生成方法集成,演示插件兼容性。
实验结果
研究问题
- RQ1在高基数任务上,与简单的类别条件提示相比,使用多样属性提示是否能提升下游模型性能?
- RQ2属性多样性和 CAF 如何影响数据偏差、多样性和模型性能?
- RQ3在不同数据集和模型上使用 AttrPrompt 与 SimPrompt 时,成本和数据效率的权衡是什么?
- RQ4AttrPrompt 是否可以提升现有的数据生成方法,并惠及多标签分类?
- RQ5属性多样性在低数据与高数据情境下如何影响性能?
主要发现
- AttrPrompt 在若干数据集上持续优于 SimPrompt,优势约为 6–10 点。
- AttrPrompt 仅约 5% 的 ChatGPT 查询成本即可达到与 SimPrompt 相似的性能。
- 属性多样性至关重要;一固定其余随机的配置表现不如随机配置,且单独选择最佳属性会降低性能。
- 在 NYT 的地点属性上,AttrPrompt 所得属性分布比 Gold 或 SimPrompt 更均衡,减少地区偏差。
- 多样性指标显示 AttrPrompt 的词汇多样性高于 SimPrompt,更接近 Gold,尽管两者在多样性方面均低于 Gold。
- 将 AttrPrompt 与原始训练数据合并时提升性能,且可作为其他数据生成方法的有价值插件。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。