Neural Network Compression via Pruning Quantization and Distillation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep neural networks are too large for deployment on edge devices like smartphones, causing computational and memory resource constraints, and existing model compression techniques like pruning and knowledge distillation face challenges with smaller models having fewer than one million parameters, resulting in poor performance.

Innovation Solution

The method involves a processor-implemented approach that prunes an initial neural network model based on a threshold, applies quantization, generates a teacher model using the pruned weights, and trains a student model using knowledge distillation to produce a compressed neural network, incorporating iterative pruning and quantization-aware training with a learnable step size.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If model compression techniques like pruning and knowledge distillation are applied to smaller models (fewer than one million parameters), then model size is reduced, but performance deteriorates

Engineering Contradiction:
Improvemodel sizeVSAvoidmodel performance
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent applies preliminary pruning to the teacher model before knowledge distillation to identify and remove redundant weights. By performing pruning in advance and using the pruned weights to guide the distillation process, the method prepares the model structure optimally before compression, preventing performance deterioration that would otherwise occur with direct compression of small models

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent incorporates feedback mechanisms where the pruned weights from the teacher model are used to inform and guide the training of the student model. This feedback loop ensures that the student model learns from the optimized structure of the teacher, maintaining performance while achieving compression. The iterative refinement process allows continuous improvement based on performance metrics

Inventive Principle:
Principle #23Feedback

2Adaptability or versatility

If deep neural networks are deployed on edge devices, then application capability is enhanced, but computational and memory resource constraints are exceeded

Engineering Contradiction:
Improveapplication capabilityVSAvoidcomputational and memory resources
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent extracts and removes redundant weights and connections from the neural network through systematic pruning. By identifying and eliminating unnecessary parameters, the method reduces the model size and computational complexity while retaining the essential functionality needed for edge device deployment, thus resolving the contradiction between capability and resource constraints

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes key parameters of the neural network including weight magnitudes, activation thresholds, and network architecture parameters. By optimizing these parameters through pruning and quantization, the model achieves better efficiency-characteristic tradeoffs suitable for edge devices while maintaining application capability

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20220318633A1Model compression using pruning quantization and knowledge distillation
Publication Date: 2022.10.06 QUALCOMM INC
  • US20220318633A1 patent drawing
  • US20220318633A1 patent drawing
  • US20220318633A1 patent drawing

AI summary

A processor-implemented method for compressing a deep neural network model includes receiving an initial neural network model. The initial neural network is pruned based on a first threshold to generate a pruned network and a set of pruned weights. A quantization process is applied to the pruned network to produce a pruned and quantized network. A teacher model is generated by incorporating the pruned set of weights with the pruned network. In addition, an initial student model is generated from the quantized and pruned network. The initial student model is trained using the teacher model to output a trained student model.