Neural Network Quantization With Adaptive Scale Parameters

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing hardware deep neural network (DNN) accelerators face high computing and memory requirements for tasks like image enhancement and super-resolution, and existing quantization methods often result in performance degradation.

Innovation Solution

The proposed solution involves a shifter and decoder configuration that uses a scale parameter to minimize quantization error by selecting data subsets with high similarity to those generated by the Lloyd-Max quantization technique, allowing for iterative optimization of quantization scales for each channel or layer of a neural network.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If quantization is applied to reduce hardware cost and memory space, then hardware complexity is reduced, but quantization error increases causing performance degradation

Engineering Contradiction:
Improvehardware complexityVSAvoidquantization error
Core Design Contradiction:
Device complexityVSMeasurement precision

Solution Approach 1:

The patent applies parameter changes by introducing a scale parameter that dynamically adjusts the quantization process. The scale parameter modifies the quantization intervals based on the statistical properties of the input data, allowing the system to maintain higher precision where needed while still achieving hardware reduction. This is implemented through iterative optimization that adjusts the scale parameter to minimize quantization error for each layer or channel independently.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent implements local quality by applying different quantization strategies to different parts of the neural network. Specifically, different scale parameters are applied to different layers or channels based on their individual characteristics. This allows each layer to have optimized quantization parameters tailored to its specific data distribution, rather than using a uniform quantization approach across the entire network.

Inventive Principle:
Principle #3Local quality

2Device complexity

If uniform quantization scale is used for all channels and layers, then device complexity is reduced, but quantization accuracy deteriorates

Engineering Contradiction:
Improvequantization control complexityVSAvoidquantization accuracy
Core Design Contradiction:
Device complexityVSManufacturing precision

Solution Approach 1:

The patent applies segmentation by dividing the neural network into distinct groups based on layer type or channel characteristics. Each group is then assigned its own scale parameter, allowing independent optimization. This segmentation approach balances the complexity of managing multiple parameters with the benefit of improved quantization accuracy for each specific group.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamics by making the quantization scale adaptive rather than static. The scale parameter is determined through iterative optimization processes that adjust it based on the actual data distribution and quantization error feedback. This dynamic adjustment allows the system to optimize quantization accuracy without requiring complex manual configuration.

Inventive Principle:
Principle #15Dynamics

3Measurement precision

If iterative optimization is performed to minimize quantization error, then quantization accuracy is improved, but computation time increases

Engineering Contradiction:
Improvequantization error minimizationVSAvoidoptimization time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-computing statistical properties of the data (such as mean and standard deviation) before the actual quantization process. These pre-computed statistics are then used to initialize the scale parameter, significantly reducing the number of iterative optimization steps needed. This preliminary preparation phase enables faster convergence during the actual quantization optimization.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20240169190A1Device and method with quantization parameter
Publication Date: 2024.05.23 SAMSUNG ELECTRONICS CO LTD
  • US20240169190A1 patent drawing
  • US20240169190A1 patent drawing
  • US20240169190A1 patent drawing

AI summary

An electronic device includes: a shifter configured to perform a shift operation based on a codebook supporting a plurality of quantization levels preset for data bits of a data set; and a decoder configured to control the shifter by setting quantization scales of the data bits differently for preset groups, wherein the shifter is configured to quantize and output the data bits by control of the decoder.