Weight-Feature DNN Quantization for Resource-Limited Image Processing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep neural network models for image classification/detection require significant hardware resources and have high computational demands, which are not feasible for devices with limited computing capabilities and memory, and current quantization methods often compromise accuracy.

Innovation Solution

A method that quantizes deep neural network models based on weight features, determining a tailored quantization policy to minimize resource usage and time consumption while maintaining accuracy, by analyzing per-layer and per-channel quantization errors and clustering weight channels to optimize quantization units.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If deep neural network models are used for image classification/detection, then processing accuracy is improved, but hardware resource consumption and computational demand increase

Engineering Contradiction:
Improveclassification/detection accuracyVSAvoidhardware resource consumption
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent applies parameter changes by transforming the data precision parameters of the deep neural network model from high-precision floating-point format to low-precision quantized format. This parameter transformation reduces the bit-width of weight and activation data, thereby decreasing memory usage and computational complexity while maintaining acceptable accuracy levels for image classification and detection tasks

Inventive Principle:
Principle #35Parameter changes

2Volume of stationary object

If model size is reduced through quantization, then hardware demand decreases, but quantization process time increases and model performance may be affected

Engineering Contradiction:
Improvemodel sizeVSAvoidquantization process time
Core Design Contradiction:
Volume of stationary objectVSLoss of time

Solution Approach 1:

The patent applies preliminary action by performing quantization calibration in advance during the model preparation phase. Statistical information such as minimum and maximum values of activation data are collected and stored beforehand, which enables the quantized model to be executed efficiently without performing complex quantization calculations during real-time inference, thus reducing inference time

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent applies partial action by selectively applying different quantization strategies to different parts of the network. Per-layer quantization is applied where appropriate to reduce overhead, while per-channel quantization is used where it provides significant accuracy benefits. This selective approach balances quantization time and model performance

Inventive Principle:
Principle #16Partial or excessive action

3Measurement precision

If per-channel quantization is applied, then model accuracy is maintained, but quantization complexity and time consumption increase

Engineering Contradiction:
Improvemodel accuracyVSAvoidquantization complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent applies dynamics by implementing an adaptive quantization strategy that dynamically selects between per-layer and per-channel quantization based on the specific characteristics of each layer. The system evaluates whether per-channel quantization is necessary for each layer, allowing the quantization approach to adapt to the actual needs of different network layers rather than uniformly applying the most complex method throughout

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS12423965B2Image processing method, apparatus and device, and readable storage medium
Publication Date: 2025.09.23 INSPUR (BEIJING) ELECTRONICS INFORMATION IND CO LTD
  • US12423965B2 patent drawing
  • US12423965B2 patent drawing
  • US12423965B2 patent drawing

AI summary

An image processing method, apparatus and device, and a readable storage medium are disclosed, including: obtaining a target image; inputting the target image into a quantized target deep neural network model for classification/detection to obtain an output result; and processing the target image according to a policy corresponding to the output result. A process of performing quantization to obtain the target deep neural network model includes: obtaining a pre-trained floating point type deep neural network model; extracting weight features of a deep neural network model; determining a quantization policy using the weight features; and quantizing the deep neural network model according to the quantization policy to obtain the target deep neural network model.