Convolutional Neural Network Quantization via Layer-Specific Fixed-Point Processing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Convolutional neural networks face challenges in computation speed and accuracy due to high computational and storage demands, necessitating improvements in these areas.

Innovation Solution

A computation method and device that determine optimal quantization step sizes based on data distribution, applying fixed-point processing to improve calculation efficiency and reduce storage requirements by iteratively optimizing quantization step sizes across layers of the neural network.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If floating-point arithmetic is used in convolutional neural networks, then computational accuracy is maintained, but computation speed decreases and storage space increases

Engineering Contradiction:
Improvecomputational accuracyVSAvoidcomputation speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent applies parameter changes by transitioning from floating-point to fixed-point arithmetic, changing the numerical representation parameters to achieve faster computation and reduced storage while maintaining acceptable accuracy through optimized quantization step sizes

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent implements dynamics by dynamically determining optimal quantization step sizes for different layers based on data distribution characteristics, allowing the system to adapt the fixed-point precision requirements to actual computational needs

Inventive Principle:
Principle #15Dynamics

2Measurement precision

If floating-point arithmetic is used in convolutional neural networks, then computational accuracy is maintained, but storage space requirements increase

Engineering Contradiction:
Improvecomputational accuracyVSAvoidstorage space
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent changes the data representation parameter from floating-point to fixed-point format, reducing the number of bits required for storage while maintaining computational accuracy through carefully selected quantization step sizes that preserve essential data characteristics

Inventive Principle:
Principle #35Parameter changes

3Quantity of substance

If fixed-point processing is applied to all layers with uniform precision, then storage space is reduced, but computational accuracy deteriorates

Engineering Contradiction:
Improvestorage spaceVSAvoidcomputational accuracy
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent applies local quality by determining optimal quantization step sizes specific to each layer based on the data distribution characteristics of that layer, allowing different layers to use appropriate precision levels rather than uniform precision throughout

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent implements dynamics by adaptively determining quantization step sizes for each layer based on actual data distributions, allowing the system to optimize the balance between storage efficiency and computational accuracy for each specific layer

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS11657254B2Computation method and device used in a convolutional neural network
Publication Date: 2023.05.23 GLENFLY TECH CO LTD
  • US11657254B2 patent drawing
  • US11657254B2 patent drawing
  • US11657254B2 patent drawing

AI summary

A computation method used in a convolutional neural network is provided. The method includes: receiving original data; determining a first optimal quantization step size according to a distribution of the original data; performing fixed-point processing to the original data according to the first optimal quantization step size to generate first data; inputting the first data to a first layer of the convolutional neural network to generate first output data; determining a second optimal quantization step size according to a distribution of the first output data; performing the fixed-point processing to the first output data according to the second optimal quantization step size to generate second data; and inputting the second data to a second layer of the convolutional neural network.