Weighted Knowledge Distillation for Neural Network Model Compression

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing knowledge distillation methods focus primarily on how to transfer knowledge rather than what knowledge to transfer, lacking a systematic comparison of different knowledge types, and often result in suboptimal performance in varied experimental conditions.

Innovation Solution

The method involves determining importance values for each dimension of the output vector from a teacher model using gradients and updating the student model's parameters to minimize the difference between its output and the teacher's output, employing weighted knowledge distillation (WKD) with a loss function that incorporates importance weighting and approximates Kullback-Leibler divergence to effectively transfer knowledge.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional knowledge distillation methods are used that focus only on how to transfer knowledge, then the distillation process is simple, but the performance is suboptimal in varied experimental conditions

Engineering Contradiction:
ImproveperformanceVSAvoiddistillation process complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent changes the parameters of knowledge distillation by introducing importance weights for different knowledge dimensions. Instead of treating all knowledge dimensions equally, the method assigns different importance values to logits, features, and gradients, allowing the system to adaptively select which knowledge to transfer based on experimental conditions. This resolves the contradiction by adding parameter control that improves performance without making the overall process overly complex.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent introduces dynamic adaptability by allowing the importance weights to be adjusted based on different experimental conditions and model architectures. The method dynamically determines which knowledge dimensions (logits, features, or gradients) are most important for transfer, rather than using a static fixed approach. This dynamic adjustment improves reliability across varied conditions while maintaining a manageable process complexity.

Inventive Principle:
Principle #15Dynamics

2Loss of information

If all dimensions of the teacher model's output vector are transferred equally to the student model, then the distillation process is straightforward, but important knowledge dimensions may be lost

Engineering Contradiction:
Improveknowledge lossVSAvoidcalculation complexity
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

The patent applies local quality by assigning different importance weights to different dimensions of the knowledge transfer. Instead of treating all knowledge dimensions uniformly, the method identifies which specific dimensions (logits, features, or gradients) are most important and transfers those with higher priority. This selective approach minimizes knowledge loss in critical dimensions while avoiding the complexity of processing all dimensions equally.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent extracts only the most important knowledge dimensions from the teacher model based on calculated importance values. Rather than transferring all dimensions or using a fixed subset, the method identifies and extracts the specific knowledge dimensions that contribute most to performance, discarding less important ones. This extraction approach reduces information loss while keeping the process computationally efficient.

Inventive Principle:
Principle #2Taking out (Extraction)

3Adaptability or versatility

If a unified framework for knowledge transfer is implemented, then adaptability to different conditions is improved, but the implementation complexity increases

Engineering Contradiction:
Improveadaptability to experimental conditionsVSAvoidframework complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent implements a unified framework that can handle multiple knowledge dimensions (logits, features, and gradients) through a single importance weighting mechanism. This universal approach allows the same basic process to adapt to different experimental conditions and model types by simply adjusting the importance weights, rather than requiring separate specialized processes for each condition. The framework achieves versatility through parameter adjustment rather than structural complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20220398459A1Method and system for weighted knowledge distillation between neural network models
Publication Date: 2022.12.15 SAMSUNG ELECTRONICS CO LTD
  • US20220398459A1 patent drawing
  • US20220398459A1 patent drawing
  • US20220398459A1 patent drawing

AI summary

A method of training a student model includes providing an input to a teacher model that is larger than the student model, where a layer of the teacher model outputs a first output vector, providing the input to the student model, where a layer of the student model outputs a second output vector, determining an importance value associated with each dimension of the first output vector based on gradients from the teacher model and updating at least one parameter of the student model to minimize a difference between the second output vector and the first output vector based on the importance values.