ANN Quantization with Compensation Bias for Error Correction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Artificial neural networks (ANNs) face challenges in maintaining accuracy during quantization due to errors introduced in the process, leading to reduced performance and increased computational complexity.

Innovation Solution

A method is introduced where the expected value of the quantization error is generated as a compensation bias, which is then reflected in the operation results through a quantized ANN, thereby improving performance and reducing complexity.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If quantization is applied to ANN parameters to reduce computational complexity, then device complexity and energy consumption are reduced, but manufacturing precision and reliability deteriorate due to quantization errors

Engineering Contradiction:
Improvecomputational complexityVSAvoidaccuracy
Core Design Contradiction:
Device complexityVSManufacturing precision

Solution Approach 1:

The patent applies preliminary action by pre-calculating the expected quantization error (compensation bias) before the actual quantized operation. The compensation bias is computed offline based on the quantization step size and statistical properties of the data, then added to the quantized operation results to correct systematic errors. This approach resolves the contradiction by preparing the correction in advance, allowing low-precision quantized operations to achieve high-precision results without increasing runtime computational complexity.

Inventive Principle:
Principle #10Preliminary action

2Use of energy by moving object

If quantization is applied to ANN parameters to reduce computational complexity, then energy consumption is reduced, but reliability deteriorates due to accumulated quantization errors

Engineering Contradiction:
Improveenergy consumptionVSAvoidperformance reliability
Core Design Contradiction:
Use of energy by moving objectVSReliability

Solution Approach 1:

The patent implements feedback by computing the compensation bias based on the statistical characteristics of the quantization error. The system analyzes the distribution and magnitude of quantization errors during training or calibration, then feeds this information back into the inference process by adding the computed compensation bias to correct the errors. This feedback mechanism ensures that quantization errors do not accumulate and degrade reliability, while maintaining the low energy consumption benefits of quantized operations.

Inventive Principle:
Principle #23Feedback

3Ease of operation

If standard quantization is used to simplify the operation process, then ease of operation improves, but manufacturing precision deteriorates due to uncorrected quantization errors

Engineering Contradiction:
Improveoperation simplicityVSAvoidcalculation precision
Core Design Contradiction:
Ease of operationVSManufacturing precision

Solution Approach 1:

The patent introduces an intermediary element (compensation bias) that mediates between the simple quantized operation and the precise original operation. The compensation bias acts as a correction term that is easily computed and added to the quantized results, bridging the gap between simple low-precision operations and high-precision requirements. This intermediary approach maintains operational simplicity while significantly improving calculation precision without requiring complex correction procedures.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20210089898A1Quantization method of artificial neural network and operation method using artificial neural network
Publication Date: 2021.03.25 SAMSUNG ELECTRONICS CO LTD
  • US20210089898A1 patent drawing
  • US20210089898A1 patent drawing
  • US20210089898A1 patent drawing

AI summary

The computing system includes a neural network system configured to drive an artificial neural network (ANN); and a quantization system configured to quantize the ANN, wherein the quantization system is further configured to quantize parameters of the ANN to generate the quantized parameters of the ANN, generate a quantization error of the parameters of the ANN based on the parameters of the ANN and the quantized parameters, generate a compensation bias based on the quantized parameters and the quantization error of the parameters of the ANN, and transmit the generated quantized parameters and the compensation bias to the neural network system.