Neural Network Quantization Layers for Memory and Power Reduction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep neural networks require significant computational power and memory resources, especially when processing high-resolution images and videos, which is a challenge for resource-limited devices like mobile devices that often lack support for full-precision floating-point arithmetic.

Innovation Solution

The method involves combining weight quantization and activation quantization in neural networks by inserting quantization layers and using a cost function with a regularization coefficient to gradually convert weights and activations to low-precision fixed-point numbers, optimizing scaling factors to minimize quantization error and reduce memory and computational requirements.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If high-precision floating-point arithmetic is used in deep neural networks, then computational performance and accuracy are improved, but memory requirements and power consumption increase significantly

Engineering Contradiction:
Improvecomputational accuracyVSAvoidmemory requirements
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent changes the precision parameter of weights and activations from high-precision floating-point (e.g., 32-bit) to low-precision formats (e.g., 8-bit integers). This parameter transformation reduces memory bandwidth and storage requirements while enabling deployment on resource-constrained devices. The method systematically quantizes weights and activations to target precision levels, thereby resolving the contradiction between accuracy and memory consumption.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If high-precision floating-point arithmetic is used in deep neural networks, then computational performance is improved, but power consumption increases

Engineering Contradiction:
Improvecomputational performanceVSAvoidpower consumption
Core Design Contradiction:
ProductivityVSUse of energy by moving object

Solution Approach 1:

The patent transforms the computational parameter from floating-point to low-precision integer representations. This change enables the use of energy-efficient integer arithmetic units instead of power-intensive floating-point FPUs. By quantizing weights and activations to lower precision formats, the system maintains acceptable computational performance while dramatically reducing power consumption, making deep neural networks feasible for mobile and embedded applications.

Inventive Principle:
Principle #35Parameter changes

3Quantity of substance

If low-precision weights and activations are used, then memory requirements and power consumption are reduced, but computational accuracy deteriorates

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

Solution Approach 1:

The patent implements a feedback mechanism during training where the quantization precision is dynamically adjusted based on performance metrics. The system monitors computational accuracy and adapts the quantization level accordingly, allowing the model to achieve optimal balance between memory efficiency and accuracy. This feedback-driven quantization enables the system to maintain sufficient accuracy while minimizing memory requirements.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent employs parameter transformation through systematic quantization of weights and activations to target low-precision formats. By changing the representation parameter from high-precision floating-point to low-precision integer, the system reduces memory bandwidth and storage while managing accuracy through controlled quantization strategies and scaling factors.

Inventive Principle:
Principle #35Parameter changes

4Adaptability or versatility

If quantization layers are inserted into the neural network model, then low-precision computation is enabled, but model complexity increases

Engineering Contradiction:
Improvedeployment capability on resource-limited devicesVSAvoidmodel structure complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent designs quantization layers that serve multiple functions: they perform precision conversion, act as computational bottlenecks for gradient flow, and enable hardware optimization. These multi-functional quantization layers are integrated into the existing network architecture without requiring complete redesign, thereby enhancing deployment capability on resource-limited devices while managing structural complexity through unified design.

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

Data Source

PatentUS11270187B2Method and apparatus for learning low-precision neural network that combines weight quantization and activation quantization
Publication Date: 2022.03.08 SAMSUNG ELECTRONICS CO LTD
  • US11270187B2 patent drawing
  • US11270187B2 patent drawing
  • US11270187B2 patent drawing

AI summary

A method is provided. The method includes selecting a neural network model, wherein the neural network model includes a plurality of layers, and wherein each of the plurality of layers includes weights and activations; modifying the neural network model by inserting a plurality of quantization layers within the neural network model; associating a cost function with the modified neural network model, wherein the cost function includes a first coefficient corresponding to a first regularization term, and wherein an initial value of the first coefficient is pre-defined; and training the modified neural network model to generate quantized weights for a layer by increasing the first coefficient until all weights are quantized and the first coefficient satisfies a pre-defined threshold, further including optimizing a weight scaling factor for the quantized weights and an activation scaling factor for quantized activations, and wherein the quantized weights are quantized using the optimized weight scaling factor.