Knowledge-enhanced large language models for automatic lesson plan generation

Ying Zheng, Shuyan Huang, Xiaoli Zeng, Yaying Huang, Zitao Liu, Weiqi LuoHumanities 2025

Abstract

A well-designed lesson plan is a structured instructional document that helps teachers improve classroom efficiency. Since creating lesson plans is a time-consuming task, recent studies leverage Large Language Models (LLMs) to automatically generate lesson plans inspired by LLMs’ impressive language understanding and generation capability. However, existing LLM-based lesson plan generation approaches still face challenges due to specific real-world educational requirements of lesson plan generation including structural integrity, logical coherence and high accuracy. In this paper, we propose LessonPlanLM, a Knowledge-enhanced Automatic Lesson Plan Generation framework that incorporates LLMs with a lesson plan knowledge base (LPKB). Based on the proposed LPKB, we fine-tuned LLMs to generate standardized and structured lesson plans in a step-by-step manner, addressing core educational requirements. Furthermore, we develop retrieval-augmented fine-tuned (RAFT) LLMs by retrieving relevant documents from the LPKB to support knowledge-aware requirements. To evaluate the performance of generated lesson plans in two-level requirements, we introduce a comprehensive evaluation framework with four distinct perspectives. Experimental results show that our framework can generate more logical and accurate lesson plans.

Introduction

While Large Language Models (LLMs) have demonstrated remarkable general-purpose text generation capabilities, their application in specialized domains like education requires more than simple prompting. Professional lesson planning is an "engineering" task that demands structural integrity (specific sections like objectives and assessments), logical coherence (alignment between materials and activities), and high accuracy (adherence to specific curriculum standards). Existing approaches often struggle with "hallucinations" or disjointed plans where learning objectives do not align with classroom procedures. The authors sought to move beyond simple prompting toward a system that "understands" the dependencies between different parts of a lesson.

The LessonPlanLM Framework

To address these challenges, we introduce LessonPlanLM, a framework designed to transform LLMs into expert instructional designers through three primary components:

1. Lesson Plan Knowledge Base (LPKB)

The LPKB serves as a massive repository of educational expertise. It includes a curriculum extractor for mapping grades and subjects, a semantics collector that standardizes over 100,000 real-world lesson plans, and a knowledge retriever that pulls in up-to-date educational context from external search engines.

2. Retrieval-Augmented Fine-Tuning (RAFT)

Moving beyond standard Retrieval-Augmented Generation (RAG), we employ RAFT. This technique involves fine-tuning the LLM on a dataset containing both relevant and "distractor" documents. This process trains the model to ignore noise and precisely extract only the information necessary for the specific lesson, significantly improving accuracy over inference-only RAG methods.

3. Step-by-Step Generation

To ensure logical flow, LessonPlanLM generates plans following a dependency chain. It first establishes Lesson Objectives, which then inform the Lesson Procedure. Finally, the Materials are determined based on the generated procedure. This directed-graph approach reduces the "logical drift" common in monolithic generation.

Data and Evaluation

The study introduces a substantial new dataset for the field:

  • The SFT Dataset: Contains 139,512 lesson plans (comprising over 521,326 individual components) across K-12 subjects like Math, Chinese, English, and Physics.
  • Data Composition: It includes "real-world" components crawled from educational platforms and "simulated" components where GPT-4 was used to rewrite existing plans into a standardized format to improve training diversity.

We established a comprehensive evaluation framework across four dimensions: Structure Soundness, Content Accuracy, Logic Consistency, and Language Finesse.

Results and Discussion

Our experiments compared LessonPlanLM (7B and 72B variants, based on Qwen2) against heavyweights like GPT-4, Claude 3.5, and Gemini 1.5.

  • Superiority over Baselines: LessonPlanLM-72B outperformed all general-purpose LLMs and existing specialized baselines (like Self-Critique and Prompt4ChatGPT) across almost all metrics.
  • Human-Level Performance: In blind tests by expert teachers, 80% of the plans generated by LessonPlanLM were rated as comparable to or better than those written by human experts.
  • Consistency: The model achieved a "Logic Consistency" score of 2.77/3.0, significantly higher than the base Qwen2 model (1.53) or even GPT-4 (1.24) when used with standard prompting.

Conclusion and Future Work

LessonPlanLM demonstrates that combining specialized knowledge bases with targeted fine-tuning strategies like RAFT can overcome the limitations of general-purpose LLMs in complex instructional design. While the current LPKB is heavily centered on the Chinese educational system, future work will focus on expanding the framework to support diverse international curricular structures and further automating the evaluation process to reduce the workload for educators.

Reference: Zheng, Y., Huang, S., Zeng, X. et al. Knowledge-enhanced large language models for automatic lesson plan generation. Humanit Soc Sci Commun 12, 1784 (2025). https://github.com/ai4ed/LessonPlan

Summary updated

BibTeX
@inproceedings{zheng2025knowledge,
  author = {Ying Zheng and Shuyan Huang and Xiaoli Zeng and Yaying Huang and Zitao Liu and Weiqi Luo},
  title = {{Knowledge-enhanced large language models for automatic lesson plan generation}},
  booktitle = {Humanities},
  year = {2025},
  doi = {10.1057/s41599-025-06004-2},
}
Figure