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

CourseGPT-zh:基于融合提示优化的知识蒸馏的教育大语言模型

CourseGPT-zh: an Educational Large Language Model Based on Knowledge Distillation Incorporating Prompt Optimization

Beijing University of Posts and Telecommunications(北京邮电大学);University of Aberdeen(阿伯丁大学)

Zheyan Qu, Lu Yin, Zitong Yu, Wenbo Wang, Xing zhang

AI总结:

本文提出面向课程的教育大语言模型CourseGPT-zh,通过融合提示优化的问答语料蒸馏、LLM-as-Judge离散提示优化和参数高效微调,实现低成本定制部署,并在专业问答中显著优于可比开源模型。

摘要:

大语言模型(LLM)已在自然语言处理(NLP)任务中展现出惊人能力,激发了人们将其应用于专业化要求更高的专业领域的兴趣。然而,通过API访问闭源LLM受到限制,以及收集海量高质量数据集存在困难,这些都阻碍了面向各类课程的教育领域大语言模型发展。针对这些挑战,我们提出CourseGPT-zh,这是一种面向课程的教育LLM,支持定制化和低成本部署。为满足课程专属语料在全面性和多样性方面的要求,我们设计了一种融合提示优化的高质量问答语料蒸馏框架,可有效挖掘教材知识并增强其多样性。此外,考虑到LLM回答与用户需求的对齐,我们提出一种基于LLM-as-Judge的新型离散提示优化方法。在优化过程中,该框架利用LLM反思并利用错误反馈和模式的能力,从而在节省回答长度的同时获得符合用户需求和偏好的提示。最后,我们利用参数高效微调,基于开源LLM获得CourseGPT-zh。实验结果表明,我们的离散提示优化框架有效提升了ChatGPT的回答质量,并且CourseGPT-zh在专业知识问答中表现出强大的专业能力,显著优于可比的开源模型。

英文摘要:

Large language models (LLMs) have demonstrated astonishing capabilities in natural language processing (NLP) tasks, sparking interest in their application to professional domains with higher specialized requirements. However, restricted access to closed-source LLMs via APIs and the difficulty in collecting massive high-quality datasets pose obstacles to the development of large language models in education fields of various courses. Given these challenges, we propose CourseGPT-zh, a course-oriented education LLM that supports customization and low-cost deployment. To address the comprehensiveness and diversity requirements of course-specific corpora, we design a high-quality question-answering corpus distillation framework incorporating prompt optimization, which effectively mines textbook knowledge and enhances its diversity. Moreover, considering the alignment of LLM responses with user needs, a novel method for discrete prompt optimization based on LLM-as-Judge is introduced. During optimization, this framework leverages the LLM's ability to reflect on and exploit error feedback and patterns, allowing for prompts that meet user needs and preferences while saving response length. Lastly, we obtain CourseGPT-zh based on the open-source LLM using parameter-efficient fine-tuning. Experimental results show that our discrete prompt optimization framework effectively improves the response quality of ChatGPT, and CourseGPT-zh exhibits strong professional capabilities in specialized knowledge question-answering, significantly outperforming comparable open-source models.

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

↑