Statistics-Aware Weight Quantization for Deep Learning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep learning systems face challenges in reducing quantization errors when training with low-bit weights, leading to accuracy degradation, and existing solutions are not scalable for large datasets like ImageNet, with some methods causing severe accuracy degradation and expensive overhead during training and inference.

Innovation Solution

The implementation of statistics-aware weight quantization, where a quantizer management component determines a quantization scale value as a function of the mean of squared and absolute weight values to minimize quantization error, allowing for symmetric and uniform quantization of weights, reducing memory usage and communication overhead.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If weight quantization is applied to reduce memory usage and computational complexity, then model size and processing requirements are reduced, but quantization error increases leading to accuracy degradation

Engineering Contradiction:
Improvememory usageVSAvoidquantization accuracy
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent changes the quantization scale parameter dynamically based on the statistical properties (mean and standard deviation) of the weight values. By adapting the quantization scale to the actual distribution of weights, the method maintains measurement precision while using fewer bits for representation, thus reducing memory usage without severe accuracy degradation

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent performs preliminary computation of statistical moments (mean and standard deviation) of the weight values before quantization. This preliminary action allows the system to determine optimal quantization parameters in advance, enabling accurate quantization that minimizes quantization error while achieving compression

Inventive Principle:
Principle #10Preliminary action

2Quantity of substance

If low-bit weight quantization is used to reduce communication overhead, then data transmission requirements are reduced, but quantization error increases causing accuracy loss

Engineering Contradiction:
Improvecommunication overheadVSAvoidaccuracy degradation
Core Design Contradiction:
Quantity of substanceVSLoss of information

Solution Approach 1:

The patent dynamically adjusts the quantization parameter based on the statistical characteristics of the weights being transmitted. This adaptive approach ensures that the quantization process preserves critical information while using fewer bits for communication, thereby reducing communication overhead without severe accuracy loss

Inventive Principle:
Principle #35Parameter changes

3Productivity

If existing quantization methods are applied to large datasets like ImageNet, then model training should be efficient, but scalability is limited and accuracy severely degrades

Engineering Contradiction:
Improvetraining efficiencyVSAvoidscalability
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent employs adaptive parameter selection based on dataset characteristics and model architecture. By computing statistical moments of the actual weight values and using these to determine optimal quantization parameters, the method achieves better scalability and maintains accuracy on large datasets like ImageNet, overcoming the limitations of fixed quantization approaches

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent incorporates feedback mechanisms where the quantization process uses computed statistical properties of the weights to adjust quantization parameters. This feedback loop enables the system to adapt to different dataset sizes and model architectures, improving both scalability and maintaining training efficiency

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11551077B2Statistics-aware weight quantization
Publication Date: 2023.01.10 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11551077B2 patent drawing
  • US11551077B2 patent drawing
  • US11551077B2 patent drawing

AI summary

Techniques for statistics-aware weight quantization are presented. To facilitate reducing the bit precision of weights, for a set of weights, a quantizer management component can estimate a quantization scale value to apply to a weight as a linear or non-linear function of the mean of a square of a weight value of the weight and the mean of an absolute value of the weight value, wherein the quantization scale value is determined to have a smaller quantization error than all, or at least almost all, other quantization errors associated with other quantization scale values. A quantizer component applies the quantization scale value to symmetrically and/or uniformly quantize weights of a layer of the set of weights to generate quantized weights, the weights being quantized using rounding. The respective quantized weights can be used to facilitate training and inference of a deep learning system.