Neural Network Compression Using Layer-Wise Norm-Based Quantization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Artificial Neural Networks (ANNs) are computationally demanding and energy-intensive due to their large memory footprint, making it challenging to implement them on devices with limited hardware capabilities, such as smartphones and IoT devices, and even in cloud computing where resource abundance is not the primary concern.

Innovation Solution

A data processing apparatus and method that compresses neural networks by quantizing and encoding neural network weights, where the quantization bin size is determined based on the norm of each processing layer, allowing for efficient compression and operation of neural networks.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If the memory footprint of neural networks is reduced through compression techniques, then the neural network can be deployed on resource-constrained devices, but the accuracy of the neural network may deteriorate

Engineering Contradiction:
Improvememory footprintVSAvoidaccuracy
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent applies local quality by using layer-wise norm-based quantization where each layer is quantized independently based on its own norm characteristics. This allows different quantization parameters to be applied to different layers, optimizing the balance between compression and accuracy preservation for each specific layer rather than applying a uniform quantization strategy across all layers.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent changes the quantization parameter (bin size) based on the norm of each layer. By dynamically adjusting the quantization bin size according to the layer-specific norm, the system adapts the compression level to the importance and characteristics of each layer, thereby maintaining accuracy while achieving compression.

Inventive Principle:
Principle #35Parameter changes

2Device complexity

If uniform quantization bin size is used for all layers, then the compression process is simpler, but the compression efficiency and accuracy preservation deteriorate

Engineering Contradiction:
Improvequantization process complexityVSAvoidcompression efficiency
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent implements local quality by computing and applying separate quantization bin sizes for each layer based on its norm. This approach increases computational complexity during the quantization setup phase but significantly improves compression efficiency and accuracy preservation by adapting to the specific characteristics of each layer.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent performs preliminary computation of layer norms and quantization bin sizes before the actual quantization process. This preliminary action allows the system to prepare optimized quantization parameters in advance, making the subsequent quantization process more efficient and accurate without requiring complex real-time adjustments.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20250173557A1Devices and methods for compressing neural networks
Publication Date: 2025.05.29 HUAWEI TECH CO LTD
  • US20250173557A1 patent drawing
  • US20250173557A1 patent drawing
  • US20250173557A1 patent drawing

AI summary

A data processing apparatus for compressing a neural network is disclosed. The apparatus comprises a processing circuitry configured to operate the neural network that comprises a plurality of processing layers. Each processing layer comprises a plurality of neural network weights. The processing circuitry is further configured to compress the neural network by quantizing the plurality of neural network weights of each processing layer using a respective quantization bin size and by encoding the plurality of quantized neural network weights of each processing layer to obtain a compressed neural network. The processing circuitry is further configured to determine, for each processing layer, a norm based on the plurality of neural network weights of each processing layer and to determine the respective quantization bin size for each processing layer based on the norm of the processing layer.