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

在开放式作答评估中通过大语言模型生成与蒸馏增强人工标注训练数据

Augmenting Human-Annotated Training Data with Large Language Model Generation and Distillation in Open-Response Assessment

Carnegie Mellon University(卡内基梅隆大学);Learning Engineering Virtual Institute(学习工程虚拟研究所)

Conrad Borchers, Danielle R. Thomas, Jionghao Lin, Ralph Abboud, Kenneth R. Koedinger

AI总结:

本研究针对人工标注数据成本高、大语言模型输出可靠性不足的问题,提出混合人工与LLM合成数据微调并蒸馏到BERT的方案,实验验证80%合成数据占比时分类性能最优,为评估场景文本分类提供可规模化方案。

摘要:

GPT-4o等大语言模型(LLM)能够以低成本、规模化的方式助力文本分类任务自动化,但LLM输出的有效性和可靠性存在重大隐患。相比之下,人工编码通常更可靠,但大规模获取成本高昂。本研究提出一种混合方案以结合二者优势:将人工编码数据与LLM生成的合成数据相结合,用于微调经典机器学习分类器,将二者的知识蒸馏到更小的BERT模型中。我们在人工编码测试集上评估该方法,以此作为LLM输出质量的有效性衡量指标。在三项实验中,我们参考LLM调优的最佳实践,系统改变LLM生成样本的规模、多样性和一致性。研究结果表明,用合成样本增强数据集可提升分类器性能,在合成数据与人工编码数据比例为80%:20%时取得最优效果。温度设置为0.3(对应LLM生成的可变性更低)时,性能提升更稳定,但也限制了模型从增强样本中的学习效果。相比之下,更高的温度设置(0.7及以上)会导致性能评估的可变性更大,有时还会出现性能下降。由此可见,LLM既可能生成更统一的输出,使分类器更早出现过拟合,也可能生成更多样的输出,存在因引入与预测任务无关的信息而导致模型性能下降的风险。过滤不一致的合成样本并未提升性能。我们得出结论:整合人工与LLM生成数据来改进评估场景下的文本分类模型,是一种可规模化的解决方案,能同时利用人工编码的准确性和LLM输出的多样性。

英文摘要:

Large Language Models (LLMs) like GPT-4o can help automate text classification tasks at low cost and scale. However, there are major concerns about the validity and reliability of LLM outputs. By contrast, human coding is generally more reliable but expensive to procure at scale. In this study, we propose a hybrid solution to leverage the strengths of both. We combine human-coded data and synthetic LLM-produced data to fine-tune a classical machine learning classifier, distilling both into a smaller BERT model. We evaluate our method on a human-coded test set as a validity measure for LLM output quality. In three experiments, we systematically vary LLM-generated samples' size, variety, and consistency, informed by best practices in LLM tuning. Our findings indicate that augmenting datasets with synthetic samples improves classifier performance, with optimal results achieved at an 80% synthetic to 20% human-coded data ratio. Lower temperature settings of 0.3, corresponding to less variability in LLM generations, produced more stable improvements but also limited model learning from augmented samples. In contrast, higher temperature settings (0.7 and above) introduced greater variability in performance estimates and, at times, lower performance. Hence, LLMs may produce more uniform output that classifiers overfit to earlier or produce more diverse output that runs the risk of deteriorating model performance through information irrelevant to the prediction task. Filtering out inconsistent synthetic samples did not enhance performance. We conclude that integrating human and LLM-generated data to improve text classification models in assessment offers a scalable solution that leverages both the accuracy of human coding and the variety of LLM outputs.

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

↑