Low-bitwidth Neural Network Quantization via Sign-Directed Lookup

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep convolutional neural networks (DCNs) face efficiency and accuracy issues when deployed on embedded IoT devices with limited resources due to their high computational requirements and memory constraints, particularly in few-bitwidth neural networks where conventional quantization and arithmetic operations become inefficient.

Innovation Solution

The method involves converting activations to non-negative values and selecting weight values based on the sign of the activations for multiplication, followed by quantization, which reduces weight memory consumption while maintaining precision and improving model accuracy through sign-directed quantization and weighting.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If conventional quantization and arithmetic operations are used in few-bitwidth neural networks, then memory consumption is reduced, but computational efficiency and accuracy deteriorate

Engineering Contradiction:
Improvememory consumptionVSAvoidcomputational efficiency
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The patent segments the weight values into two parts: a magnitude component and a sign component. The sign component is extracted and used to selectively activate pre-computed lookup table entries, while the magnitude component indexes the lookup table. This segmentation allows the system to use simplified arithmetic operations (bitwise AND, lookup, conditional addition) instead of full multiplication, improving computational efficiency while maintaining low memory consumption.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent pre-computes and stores weight magnitudes in lookup tables during an offline phase. During inference, these pre-computed values are retrieved using the activation value as an index, eliminating the need for real-time multiplication operations. This preliminary action significantly speeds up computation while the compact storage format keeps memory usage low.

Inventive Principle:
Principle #10Preliminary action

2Quantity of substance

If low-bitwidth quantization is applied to reduce memory usage, then model accuracy deteriorates

Engineering Contradiction:
Improveweight memory consumptionVSAvoidmodel accuracy
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent changes the representation parameters of weights by separating magnitude and sign, and by using sign-directed selective activation. This parameter transformation allows the system to maintain effective precision through the interaction of quantized magnitudes from lookup tables with sign-based selection, achieving accurate results even with low-bitwidth activations and weights.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent introduces sign bits as an intermediary mechanism that mediates between the quantized weight magnitudes and the final computation result. The sign bits selectively activate or deactivate pre-computed lookup table entries, enabling the system to recover precision information that would otherwise be lost in low-bitwidth quantization, thus maintaining model accuracy.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Adaptability or versatility

If DCNs are deployed on embedded IoT devices, then application scope is expanded, but resource constraints are exceeded

Engineering Contradiction:
Improveapplication scopeVSAvoidon-chip memory
Core Design Contradiction:
Adaptability or versatilityVSQuantity of substance

Solution Approach 1:

The patent employs lookup tables with pre-computed weight magnitudes that can be efficiently stored in compact memory. These lookup tables serve as disposable pre-computed structures that enable accurate low-bitwidth inference without requiring large amounts of on-chip memory, making DCNs viable for resource-constrained IoT devices while expanding application scope.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

Data Source

PatentUS11449758B2Quantization and inferencing for low-bitwidth neural networks
Publication Date: 2022.09.20 QUALCOMM INC
  • US11449758B2 patent drawing
  • US11449758B2 patent drawing
  • US11449758B2 patent drawing

AI summary

A method for operating a low-bitwidth neural network includes converting a first activation to a non-negative value (e.g., absolute value). The first activation has a signed value. The sign of the activation is used to select a weight value. A product of the non-negative activation and the selected weight value is computed to determine a next activation. The next activation is quantized and supplied to a subsequent layer of the low-bitwidth neural network.