arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.09807cs.CL
收藏

用于高效少样本多项选择问答的LLM蒸馏

LLM Distillation for Efficient Few-Shot Multiple Choice Question Answering

Institut Sains dan Teknologi Terpadu Surabaya (ISTTS)(泗水综合科学技术学院(ISTTS));Universitas Negeri Malang(马朗州立大学)

Patrick Sutanto, Joan Santoso, Esther Irawati Setiawan, Aji Prasetya Wibawa

AI总结:

本文提出利用LLM生成MCQA数据并分配概率分数,通过蒸馏损失微调小型编码器模型DeBERTa-v3-base,在MMLU基准上将少样本准确率从28.9%提升至39.3%,验证了LLM驱动数据生成与知识蒸馏的有效性。

摘要:

多项选择问答(MCQA)是一个重要问题,在医学、法律和教育等领域有众多实际应用。构建MCQA数据集的高成本使得少样本学习在该领域至关重要。尽管大语言模型(LLMs)能够实现少样本学习,但其在实际场景中的直接应用往往受到高计算成本的阻碍。为应对这一挑战,我们提出了一种简单而有效的方法,利用LLMs进行数据生成和评分。我们的方法利用LLMs创建包含问题和选项的MCQA数据,并为生成的选项分配概率分数。然后,我们使用生成的数据和LLM分配的分数,通过利用蒸馏损失来微调一个更小且更高效的仅编码器模型DeBERTa-v3-base。在大规模多任务语言理解(MMLU)基准上的大量实验表明,与直接在5-shot样本上微调的基线相比,我们的方法将准确率从28.9%提高到39.3%,提升超过10%。这表明了LLM驱动的数据生成和知识蒸馏在少样本MCQA中的有效性。

英文摘要:

Multiple Choice Question Answering (MCQA) is an important problem with numerous real-world applications, such as medicine, law, and education. The high cost of building MCQA datasets makes few-shot learning pivotal in this domain. While Large Language Models (LLMs) can enable few-shot learning, their direct application in real-world scenarios is often hindered by their high computational cost. To address this challenge, we propose a simple yet effective approach that uses LLMs for data generation and scoring. Our approach utilizes LLMs to create MCQA data which contains questions and choices, and to assign probability scores to the generated choices. We then use the generated data and LLM-assigned scores to finetune a smaller and more efficient encoder-only model, DeBERTa-v3-base by leveraging distillation loss. Extensive experiments on the Massive Multitask Language Understanding (MMLU) benchmark demonstrate that our method improves accuracy from 28.9% to 39.3%, representing a gain of over 10% compared to a baseline finetuned directly on 5-shot examples. This shows the effectiveness of LLM-driven data generation and knowledge distillation for few-shot MCQA.

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

↑