Table of Contents
Fetching ...

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

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

TL;DR

CourseGPT-zh delivers a cost-efficient, domain-tailored educational LLM built via knowledge distillation from ChatGPT and GLM-4, enhanced by a discrete prompt optimization loop guided by an LLM-as-Judge to improve alignment and reduce verbosity. The data-construction pipeline combines diversified textbook-based question generation with role-played answer generation to produce high-quality, professional QA data, followed by parameter-efficient fine-tuning of a Chinese LLM. Experimental results in the Communications Principles domain show CourseGPT-zh and the prompt-optimized open-source model outperform comparable baselines, achieving strong alignment with human preferences while maintaining concise responses. The work offers a practical path toward scalable, domain-specific education LLMs and points to future enhancements via retrieval augmentation, richer knowledge bases, and multi-turn dialogue capabilities.

Abstract

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.

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

TL;DR

CourseGPT-zh delivers a cost-efficient, domain-tailored educational LLM built via knowledge distillation from ChatGPT and GLM-4, enhanced by a discrete prompt optimization loop guided by an LLM-as-Judge to improve alignment and reduce verbosity. The data-construction pipeline combines diversified textbook-based question generation with role-played answer generation to produce high-quality, professional QA data, followed by parameter-efficient fine-tuning of a Chinese LLM. Experimental results in the Communications Principles domain show CourseGPT-zh and the prompt-optimized open-source model outperform comparable baselines, achieving strong alignment with human preferences while maintaining concise responses. The work offers a practical path toward scalable, domain-specific education LLMs and points to future enhancements via retrieval augmentation, richer knowledge bases, and multi-turn dialogue capabilities.

Abstract

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.
Paper Structure (18 sections, 1 equation, 3 figures, 4 tables)

This paper contains 18 sections, 1 equation, 3 figures, 4 tables.

Figures (3)

  • Figure 1: CourseGPT-zh Framework
  • Figure 2: Data Construction Framework
  • Figure 3: Discrete Prompt Optimization Framework