Neural Network Weight Compression for Low-Memory AI Acceleration

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The increasing scale and complexity of neural networks lead to challenges in storage capacity and energy consumption due to large-scale weights, which are difficult to store and access efficiently, particularly in resource-constrained devices like mobile phones.

Innovation Solution

A data compression method involving coarse-grained pruning and local quantization of neural network weights, including selecting weights based on a sliding window, setting them to zero, retraining, grouping, clustering, and encoding center weights to form a codebook, while only training the codebook during retraining.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If large-scale weight data is used in deep neural networks, then model accuracy and capability are improved, but storage capacity requirements increase significantly

Engineering Contradiction:
Improvemodel accuracyVSAvoidstorage capacity
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent extracts and removes redundant weight parameters from the neural network through pruning operations. By identifying and eliminating weights that contribute minimally to model performance, the system reduces the total quantity of weight data while preserving the essential functionality and accuracy of the network.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent applies quantization to change the precision parameters of weight data from high-precision floating-point representations to lower-precision formats. This parameter transformation significantly reduces the storage capacity required for weight data while maintaining acceptable model accuracy through careful quantization strategies.

Inventive Principle:
Principle #35Parameter changes

2Reliability

If large-scale weight data is stored and accessed multiple times, then model computation capability is maintained, but energy consumption increases significantly

Engineering Contradiction:
Improvecomputation capabilityVSAvoidaccess energy consumption
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

By pruning redundant weights, the system reduces the total number of weight parameters that need to be loaded and accessed during computation. This extraction of unnecessary data directly reduces the energy consumption associated with memory access operations while maintaining the computational capability required for accurate predictions.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

Quantization changes the bit-width parameters of weight data, enabling more efficient storage and faster access times. The reduced precision requirements allow for more compact weight representations that can be loaded into cache memory more efficiently, reducing the frequency and energy cost of memory access operations.

Inventive Principle:
Principle #35Parameter changes

3Quantity of substance

If weight data is compressed through pruning and quantization, then storage overhead is reduced, but computation precision may be affected

Engineering Contradiction:
Improvestorage overheadVSAvoidcomputation precision
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent applies different compression strategies to different parts of the weight matrix based on their importance. Pruning operations selectively remove only the least important weights, while quantization applies different precision levels to different weight groups. This local differentiation maintains computation precision for critical weights while achieving compression for less critical parameters.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The system applies pruning and quantization partially rather than universally to all weight parameters. By selectively applying compression techniques only where they have minimal impact on accuracy, the system achieves storage reduction while preserving computation precision for the most important weight parameters.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS12488247B2Processing method and accelerating device
Publication Date: 2025.12.02 SHANGHAI CAMBRICON INFORMATION TECH CO LTD
  • US12488247B2 patent drawing
  • US12488247B2 patent drawing
  • US12488247B2 patent drawing

AI summary

The present disclosure provides a processing device including: a coarse-grained pruning unit configured to perform coarse-grained pruning on a weight of a neural network to obtain a pruned weight, an operation unit configured to train the neural network according to the pruned weight. The coarse-grained pruning unit is specifically configured to select M weights from the weights of the neural network through a sliding window, and when the M weights meet a preset condition, all or part of the M weights may be set to 0. The processing device can reduce the memory access while reducing the amount of computation, thereby obtaining an acceleration ratio and reducing energy consumption.