Adaptive Neural Network Quantization for AI Chip Memory Efficiency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Neural networks require high-precision data formats like floating-point numbers, leading to large storage space and high processing bandwidth needs, which increase costs and resource consumption.

Innovation Solution

A method for determining quantization parameters to convert high-precision data into low-precision fixed-point data, reducing storage space and improving computing performance by using an artificial intelligence processor to quantize data.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If high-precision data formats (e.g., float32) are used in neural networks, then measurement precision is improved, but volume of data increases

Engineering Contradiction:
Improvedata precisionVSAvoidstorage space
Core Design Contradiction:
Measurement precisionVSVolume of stationary object

Solution Approach 1:

The patent applies parameter changes by dynamically adjusting the precision (bit width) of data representations during different phases of neural network operation. During training, higher precision (e.g., float32) is used to maintain accuracy, while during inference, lower precision (e.g., quantized 8-bit integers) is used to reduce storage and computational overhead. This dynamic parameter adjustment resolves the contradiction between maintaining measurement precision and reducing data volume.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If high-precision data formats are used in neural networks, then measurement precision is improved, but processing bandwidth increases

Engineering Contradiction:
Improvedata precisionVSAvoidprocessing bandwidth
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent implements parameter changes by switching between different data precision levels based on the operational phase. During training, full precision is maintained for accurate gradient computation, but during inference, the system transitions to lower precision representations that require less processing bandwidth while maintaining acceptable accuracy. This resolves the contradiction between measurement precision and processing bandwidth requirements.

Inventive Principle:
Principle #35Parameter changes

3Volume of stationary object

If data is quantized from high-precision to low-precision, then volume of data is reduced, but measurement precision deteriorates

Engineering Contradiction:
Improvestorage spaceVSAvoiddata precision
Core Design Contradiction:
Volume of stationary objectVSMeasurement precision

Solution Approach 1:

The patent applies dynamics by making the precision level adaptive rather than static. The system dynamically selects the appropriate precision level based on the operational context: using high precision during training when accuracy is critical, and switching to low precision during inference when storage efficiency is prioritized. This dynamic adaptation resolves the contradiction between reducing data volume and maintaining measurement precision.

Inventive Principle:
Principle #15Dynamics

4Volume of stationary object

If quantization is applied to reduce storage space, then volume of data is reduced, but device complexity increases

Engineering Contradiction:
Improvestorage spaceVSAvoidquantization complexity
Core Design Contradiction:
Volume of stationary objectVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by performing quantization parameter calibration and model adaptation during the training phase before deployment. The system pre-computes quantization parameters, scales, and offsets, and stores them alongside the model weights. This preliminary preparation eliminates the need for complex runtime quantization calculations, thereby reducing storage space while avoiding significant increases in device complexity during actual inference operations.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentEP3770823B1Quantization parameter determination method for neural network, and related product
Publication Date: 2025.07.16 SHANGHAI CAMBRICON INFORMATION TECH CO LTD
  • EP3770823B1 patent drawingFigure 1~2
  • EP3770823B1 patent drawingFigure 3~4
  • EP3770823B1 patent drawingFigure 5a~5b

AI summary

The present disclosure relates to a method for determining quantization parameters in neural network and related products. A board card in the related products includes a memory device, an interface device, a control device, and an artificial intelligence chip, in which the artificial intelligence chip is connected with the memory device, the control device, and the interface device respectively; the memory device is configured to store data; the interface device is configured to transmit data between the artificial intelligence chip and an external device; and the control device is configured to monitor the state of the artificial intelligence chip. The board card can be used to perform an artificial intelligence operation.