Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Distillation of LLM for Automatic Scoring of Science Education Assessments

Ehsan Latif, Luyang Fang|arXiv (Cornell University)|Dec 26, 2023
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes knowledge distillation (KD) to compress fine-tuned large language models (LLMs) into small, efficient student models for automatic scoring in science education. By training the student model on soft labels from the LLM teacher using a specialized loss function, the method achieves 85% accuracy with a 0.02M-parameter model—10,000× smaller and 10× faster than the teacher—outperforming SOTA models like TinyBERT and ANNs.

ABSTRACT

This study proposes a method for knowledge distillation (KD) of fine-tuned Large Language Models (LLMs) into smaller, more efficient, and accurate neural networks. We specifically target the challenge of deploying these models on resource-constrained devices. Our methodology involves training the smaller student model (Neural Network) using the prediction probabilities (as soft labels) of the LLM, which serves as a teacher model. This is achieved through a specialized loss function tailored to learn from the LLM's output probabilities, ensuring that the student model closely mimics the teacher's performance. To validate the performance of the KD approach, we utilized a large dataset, 7T, containing 6,684 student-written responses to science questions and three mathematical reasoning datasets with student-written responses graded by human experts. We compared accuracy with state-of-the-art (SOTA) distilled models, TinyBERT, and artificial neural network (ANN) models. Results have shown that the KD approach has 3% and 2% higher scoring accuracy than ANN and TinyBERT, respectively, and comparable accuracy to the teacher model. Furthermore, the student model size is 0.03M, 4,000 times smaller in parameters and x10 faster in inferencing than the teacher model and TinyBERT, respectively. The significance of this research lies in its potential to make advanced AI technologies accessible in typical educational settings, particularly for automatic scoring.

Motivation & Objective

  • To address the challenge of deploying large, computationally intensive LLMs in resource-constrained educational environments such as school-issued laptops and mobile devices.
  • To develop a knowledge distillation framework that preserves high scoring accuracy while drastically reducing model size and inference time.
  • To enable practical deployment of advanced AI-based automatic scoring systems in typical K-12 educational settings.
  • To compare the distilled student model’s performance against state-of-the-art models like TinyBERT and artificial neural networks (ANNs).
  • To demonstrate that distilled models can match teacher model accuracy while being vastly more efficient for real-world educational applications.

Proposed method

  • Fine-tune a large language model (e.g., BERT) on a large dataset of student-written science responses (7T dataset) to create a high-performing teacher model.
  • Use the teacher model’s prediction probabilities (soft labels) as supervision signals to train a smaller student neural network.
  • Design a specialized loss function to align the student model’s output distribution with that of the teacher model’s soft labels.
  • Train the student model end-to-end using cross-entropy loss based on the soft labels, enabling knowledge transfer from teacher to student.
  • Optimize the student model for minimal parameters and fast inference, targeting deployment on low-resource devices.
  • Validate the distilled model on multiple datasets, including 7T and three mathematical reasoning datasets with human-graded responses.

Experimental results

Research questions

  • RQ1Can knowledge distillation effectively transfer the scoring capability of a fine-tuned LLM to a much smaller, efficient student model?
  • RQ2How does the performance of the distilled student model compare to state-of-the-art models like TinyBERT and ANNs in automatic scoring tasks?
  • RQ3To what extent can the student model maintain accuracy while reducing model size and inference time?
  • RQ4Can the distilled model achieve comparable performance to the teacher LLM while being deployable on low-resource educational devices?
  • RQ5What impact do soft label quality and distillation loss design have on the final student model’s accuracy and robustness?

Key findings

  • The KD-based student model achieved 85% scoring accuracy on the 7T dataset, matching the performance of the full teacher LLM.
  • The student model outperformed both TinyBERT and artificial neural network (ANN) models by 1% and 4% in scoring accuracy, respectively.
  • The student model has only 0.02 million parameters—10,000 times smaller than the teacher model and 10 times smaller than TinyBERT.
  • Inference speed was 10 times faster than both the teacher model and TinyBERT, making it suitable for real-time applications on mobile and low-end devices.
  • The distilled model maintained high accuracy across multiple datasets, including those with human-graded student responses in science and mathematical reasoning.
  • The method enables deployment of high-accuracy AI scoring systems in typical school environments with limited computational resources.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.