Neural Network Weight Quantization With Fixed-Point Scaling

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large deep learning neural networks require significant computational resources and energy, making them unsuitable for deployment in resource-constrained settings, such as wearable devices without a permanent cloud connection, due to their high precision floating-point weight requirements.

Innovation Solution

A method to convert floating-point weighting factors to fixed-point weighting factors by selecting a scaling factor that minimizes the mean square error, using a predetermined base, and applying it to scale the weights during the training stage, allowing for efficient fixed-point operations in neural networks.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If floating-point weighting factors are used in neural networks, then classification accuracy and model performance are maintained, but computational resources and energy consumption increase significantly

Engineering Contradiction:
Improveweighting factor precisionVSAvoidenergy consumption
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent changes the numerical representation parameter of weighting factors from floating-point to fixed-point format. This parameter change reduces the computational complexity and energy consumption while maintaining sufficient precision for classification tasks. The fixed-point representation uses a predetermined base and scaling factor to preserve the essential information needed for accurate predictions.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent extracts only the necessary precision requirements for neural network operations by using quantization. Instead of maintaining full floating-point precision, it extracts the essential information through fixed-point approximation, removing the excess computational overhead associated with full-precision floating-point arithmetic while retaining sufficient accuracy for edge device deployment.

Inventive Principle:
Principle #2Taking out (Extraction)

2Reliability

If large deep learning networks are deployed, then classification performance improves, but device resource requirements and memory usage increase

Engineering Contradiction:
Improveclassification performanceVSAvoidmemory resources
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent applies parameter changes by transitioning from floating-point to fixed-point representation, which reduces the memory footprint of weighting factors. This allows larger networks to be deployed within the same memory constraints, or equivalently, achieves the same network size with reduced memory requirements, enabling deployment on resource-constrained edge devices.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent creates a simplified copy of the floating-point weighting factors in fixed-point format. This copy maintains the essential functional characteristics needed for classification while occupying less memory space, allowing the neural network to operate effectively with reduced resource requirements.

Inventive Principle:
Principle #26Copying

3Measurement precision

If floating-point operations are performed, then computational accuracy is maintained, but processing speed and efficiency decrease

Engineering Contradiction:
Improvecomputation accuracyVSAvoidprocessing speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent substitutes floating-point arithmetic operations with fixed-point arithmetic operations. Fixed-point operations can be implemented more efficiently in hardware, replacing complex floating-point units with simpler arithmetic logic that operates on integer representations. This substitution maintains sufficient computational accuracy while significantly improving processing speed and efficiency on resource-constrained devices.

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

Solution Approach 2:

By changing the numerical representation parameter from floating-point to fixed-point, the patent enables more efficient computational operations. The fixed-point format allows for simplified arithmetic operations that are faster and more energy-efficient, while the quantization process preserves the necessary precision for accurate neural network inference.

Inventive Principle:
Principle #35Parameter changes

4Use of energy by moving object

If quantization is applied to reduce precision, then resource consumption decreases, but model accuracy may deteriorate

Engineering Contradiction:
Improveenergy consumptionVSAvoidmodel accuracy
Core Design Contradiction:
Use of energy by moving objectVSMeasurement precision

Solution Approach 1:

The patent carefully manages the precision parameter through controlled quantization. By using a predetermined base and optimizing the scaling factor, it changes the representation parameter to fixed-point format in a way that minimizes accuracy loss while achieving significant reductions in energy consumption and resource usage.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent employs feedback mechanisms during the quantization process to monitor and maintain accuracy. The scaling factor and quantization parameters are selected to minimize the error between the original floating-point weights and the quantized fixed-point weights, ensuring that model accuracy is preserved despite the reduction in precision.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11601134B2Optimized quantization for reduced resolution neural networks
Publication Date: 2023.03.07 ROBERT BOSCH GMBH
  • US11601134B2 patent drawing
  • US11601134B2 patent drawing
  • US11601134B2 patent drawing

AI summary

A system and method for generating and using fixed-point operations for neural networks includes converting floating-point weighting factors into fixed-point weighting factors using a scaling factor. The scaling factor is defined to minimize a cost function and the scaling factor is derived from a set of multiples of a predetermined base. The set of possible scaling function is defined to reduce the computational effort for evaluating the cost function for each of a number of possible scaling factors. The system and method may be implemented in one or more controllers that are programmed to execute the logic.