Neural Network Weight Compression for Mobile Model Deployment

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large neural network models require significant storage and computational resources, posing challenges for deployment on devices with limited processing power and memory, such as mobile devices, due to their large size and complexity.

Innovation Solution

The implementation of neural network model compression techniques, including quantization and partitioning, allows for the efficient encoding and decoding of neural network models, reducing storage requirements and computational complexity by using bitstreams and syntax elements to reconstruct weight coefficients and partition tensors.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If neural network models are deployed on resource-constrained devices, then accessibility and usability improve, but storage requirements and computational complexity become prohibitive

Engineering Contradiction:
Improvedeployability on mobile devicesVSAvoidstorage requirements
Core Design Contradiction:
Ease of operationVSQuantity of substance

Solution Approach 1:

The patent divides the neural network model into multiple blocks, where each block contains a subset of weight coefficients. This segmentation allows selective transmission and processing of only necessary model components, reducing overall storage requirements and enabling deployment on devices with limited memory capacity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts and transmits only the essential syntax elements and weight coefficients needed for model operation, separating critical information from redundant data. This extraction process reduces the quantity of data that must be stored and processed on resource-constrained devices.

Inventive Principle:
Principle #2Taking out (Extraction)

2Measurement precision

If full-precision weight coefficients are used in neural network models, then model accuracy is maintained, but storage space and processing requirements increase significantly

Engineering Contradiction:
Improvemodel accuracyVSAvoidstorage space
Core Design Contradiction:
Measurement precisionVSVolume of stationary object

Solution Approach 1:

The patent changes the precision parameter of weight coefficients by transmitting them in a compressed format with associated syntax elements that define their interpretation. This allows the model to maintain adequate precision for accurate inference while significantly reducing the storage space required to hold the weight coefficients.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent transmits weight coefficients with varying levels of precision based on their importance and distribution characteristics. Less critical coefficients are represented with lower precision, while critical coefficients maintain higher precision, achieving a balance between model accuracy and storage efficiency.

Inventive Principle:
Principle #16Partial or excessive action

3Measurement precision

If complex neural network architectures are used, then performance and recognition accuracy improve, but computational complexity and processing time increase

Engineering Contradiction:
Improverecognition accuracyVSAvoidcomputational complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the complex neural network architecture into manageable blocks with defined syntax elements for each. This segmentation allows the device to process and reconstruct model components incrementally, reducing the peak computational complexity required to operate the full model while maintaining overall recognition accuracy.

Inventive Principle:
Principle #1Segmentation

4Measurement precision

If comprehensive model parameters are transmitted, then model reconstruction accuracy is ensured, but transmission bandwidth and processing overhead increase

Engineering Contradiction:
Improvereconstruction accuracyVSAvoidtransmission time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent extracts only the essential syntax elements and weight coefficients needed for model reconstruction, eliminating redundant parameter transmissions. This extraction maintains reconstruction accuracy by preserving critical model information while reducing transmission bandwidth requirements and processing overhead.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent transmits model parameters selectively based on their importance and the specific reconstruction needs. Not all parameters are transmitted with equal detail - only those necessary for accurate reconstruction are included, reducing transmission time while maintaining reconstruction accuracy.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS11671110B2Method and apparatus for neural network model compression/decompression
Publication Date: 2023.06.06 TENCENT AMERICA LLC
  • US11671110B2 patent drawing
  • US11671110B2 patent drawing
  • US11671110B2 patent drawing

AI summary

Aspects of the disclosure provide methods and apparatuses for neural network model compression/decompression. In some examples, an apparatus for neural network model decompression includes receiving circuitry and processing circuitry. The processing circuitry decodes, from a bitstream corresponding to a representation of a neural network, at least a syntax element to be applied to multiple blocks in the neural network. Then, the processing circuitry reconstructs, from the bitstream, weight coefficients in the blocks based on the syntax element.