Adaptive Neural Network Quantization for AI Chip Memory Efficiency
Find Innovative SolutionsGenerate 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
Engineering 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
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.
2Measurement precision
If high-precision data formats are used in neural networks, then measurement precision is improved, but processing bandwidth increases
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.
3Volume of stationary object
If data is quantized from high-precision to low-precision, then volume of data is reduced, but measurement precision deteriorates
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.
4Volume of stationary object
If quantization is applied to reduce storage space, then volume of data is reduced, but device complexity increases
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.
Data Source
Figure 1~2
Figure 3~4
Figure 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.