Neural Network Quantization With Fixed Weight Range

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing quantization methods for deep neural networks face issues such as unstable training due to varying weight ranges and additional hardware processing requirements, especially at low quantization bits, leading to inconsistent results and increased power consumption.

Innovation Solution

A method that initializes a weight array, performs a quantization procedure using a nonlinear conversion function to fix the weight range, and includes a training process with a regularization term to prune weights, resulting in a stable and efficient quantization method for neural networks, and a deep learning accelerator design that stores and processes quantized weights with reduced hardware complexity.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If weight range is not limited in quantization, then quantization flexibility is improved, but quantization training stability deteriorates

Engineering Contradiction:
Improvequantization flexibilityVSAvoidquantization training stability
Core Design Contradiction:
Adaptability or versatilityVSStability of the object's composition

Solution Approach 1:

The patent applies parameter changes by introducing a weight range limitation parameter (fixed range) during quantization. This constraint transforms the weight values to fit within a predetermined range, ensuring consistent quantization intervals and stable training results regardless of the original weight distribution.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent implements preliminary action by pre-defining the fixed weight range before quantization training begins. This preliminary constraint setup ensures that all weight values are properly bounded in advance, preventing training instability caused by varying weight ranges during the training process.

Inventive Principle:
Principle #10Preliminary action

2Quantity of substance

If quantization bit is reduced for compression, then model size is reduced, but quantization precision deteriorates

Engineering Contradiction:
Improvemodel sizeVSAvoidquantization precision
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent changes the parameter of weight representation by enforcing a fixed range constraint during quantization. This allows lower bit-depth quantization to maintain better precision because the fixed range ensures consistent quantization intervals, reducing quantization error even with fewer bits.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent replaces the traditional approach of relying on higher bit-depth for precision with a constraint-based mechanism (fixed range limitation). This substitution allows low-bit quantization to achieve comparable or better precision by ensuring uniform weight distribution within the fixed range.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Measurement precision

If bias term is added for quantization correction, then quantization accuracy is improved, but hardware complexity increases

Engineering Contradiction:
Improvequantization accuracyVSAvoidhardware complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent extracts and eliminates the bias term from the quantization process by using fixed range limitation instead. This removal simplifies the hardware architecture by eliminating the need for additional bias addition circuits while maintaining quantization accuracy through the fixed range constraint alone.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The fixed range limitation serves multiple functions simultaneously: it ensures consistent quantization intervals, bounds weight values for stable training, and eliminates the need for separate bias correction mechanisms. This multi-functionality reduces hardware complexity while maintaining or improving quantization accuracy.

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

Data Source

PatentUS20230196094A1Quantization method for neural network model and deep learning accelerator
Publication Date: 2023.06.22 IND TECH RES INST
  • US20230196094A1 patent drawing
  • US20230196094A1 patent drawing
  • US20230196094A1 patent drawing

AI summary

A quantization method for neural network model includes following steps: initializing a weight array of a neural network model, wherein the weight array includes a plurality of initial weights; performing a quantization procedure to generate a quantized weight array according to the weight array, wherein the quantized weight array includes a plurality of quantized weights within a fixed range; performing a training procedure of the neural network model according to the quantized weight array; and determining whether a loss function is convergent in the training procedure and outputting a post-trained quantized weight array when the loss function is convergent.