Knowledge Distillation Training with Sequential Teacher-Student Loading

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for training a student model using a teacher model are inefficient in terms of computational resources, particularly in knowledge distillation, where training both teacher and student models requires substantial computational resources, leading to extended training times and increased costs.

Innovation Solution

A method and system for training a student model using a teacher model by sequentially loading the teacher model, extracting knowledge output, and storing it in a database, then unloading the teacher model and training the student model using the stored knowledge output, thereby reducing computational requirements.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If both teacher model and student model are loaded and trained simultaneously, then knowledge transfer can occur during each iteration, but computational resources and training time increase substantially

Engineering Contradiction:
Improveknowledge transfer effectivenessVSAvoidcomputational resources
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The training process is segmented into two distinct phases: (1) knowledge extraction phase where the teacher model processes training data and stores outputs in a database, and (2) student training phase where the student model learns from the stored knowledge. This segmentation allows the teacher model to be unloaded after knowledge extraction, reducing memory footprint and computational overhead during student training while preserving knowledge transfer effectiveness.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The teacher model performs preliminary action by pre-processing the training data and generating knowledge representations before the student model training begins. The knowledge database is prepared in advance, containing all necessary guidance for student training, eliminating the need for simultaneous teacher model participation and reducing overall computational burden.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If both teacher model and student model are loaded simultaneously, then interactive knowledge distillation can occur, but memory usage and processing power requirements increase

Engineering Contradiction:
Improveknowledge distillation effectivenessVSAvoidmemory and processing requirements
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The knowledge representations are extracted from the training data by the teacher model and stored in a separate knowledge database. This extraction allows the teacher model to be removed from the system after knowledge generation, leaving only the student model and knowledge database for the training phase. This significantly reduces memory usage and device complexity while maintaining knowledge distillation effectiveness.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The knowledge database serves as an intermediary between the teacher model and student model. Instead of direct interaction requiring both models to be loaded simultaneously, the database mediates knowledge transfer by storing teacher's knowledge outputs and providing them to the student model during training, reducing simultaneous memory and processing requirements.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If the teacher model remains loaded throughout student training, then real-time knowledge guidance is available, but training time and computational costs extend significantly

Engineering Contradiction:
Improveknowledge guidance availabilityVSAvoidtraining time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The training process is divided into sequential segments: first the teacher model extracts knowledge and stores it in the database, then the student model trains using the stored knowledge. This segmentation eliminates the need for the teacher model to remain loaded throughout student training, significantly reducing training time and computational costs while preserving knowledge guidance through the pre-extracted representations in the database.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20250390755A1System and method of training a student model using a teacher model
Publication Date: 2025.12.25 L&T TECH SERVICES LTD
  • US20250390755A1 patent drawing
  • US20250390755A1 patent drawing
  • US20250390755A1 patent drawing

AI summary

The disclosure relates to a method and system of training a student model using a teacher model. The method includes receiving, from a user, a selection of a target knowledge distillation technique, a teacher model, a student model, and one or more batches of training data. The method further includes loading the teacher model on a memory device and extracting knowledge output from the teacher model for each of the one or more batches of the training data, based on the target knowledge distillation technique, and sequentially storing extracted knowledge output in a knowledge database. The method further includes unloading the teacher model and loading the student model on the memory device, and training the student model based on ground-truth labels associated with each of the one or more batches of training data and the knowledge output corresponding to the target knowledge distillation technique.