Deep Neural Network Compression via Sparse Matrix Pruning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep neural networks, particularly large-scale models like LSTM, face challenges in compression due to their dense matrix representation, which hinders deployment on resource-constrained devices like mobile terminals, leading to increased storage and computational costs, and limited acceleration benefits from conventional CPU and GPU architectures.

Innovation Solution

A multi-iteration compression method is proposed, involving sensitivity analysis, pruning, and fine-tuning, where matrices are divided into submatrices, compressed based on initial compression ratios, and then fine-tuned to maintain accuracy while reducing the number of parameters, along with a load-balanced approach to ensure efficient parallel processing across multiple processing elements.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If dense matrix representation is used in deep neural networks, then computational accuracy is maintained, but storage requirements and computational costs increase significantly

Engineering Contradiction:
Improvecomputational accuracyVSAvoidstorage requirements
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent applies sparse matrix representation where most elements are zero (empty spaces), similar to porous materials. By representing the weight matrix in sparse format instead of dense format, storage requirements are dramatically reduced while maintaining the same computational accuracy for non-zero elements. The sparse representation stores only non-zero elements and their positions, creating 'porosity' in the data structure.

Inventive Principle:
Principle #31Porous materials

2Measurement precision

If dense matrix representation is used in deep neural networks, then computational accuracy is maintained, but computational speed decreases due to processing unnecessary zero elements

Engineering Contradiction:
Improvecomputational accuracyVSAvoidcomputational speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent extracts and removes the zero elements from the weight matrix, keeping only the non-zero elements for computation. By taking out the unnecessary zero elements that contribute to computational overhead but provide no value to the result, the computational speed is significantly improved while maintaining accuracy through the preserved non-zero elements.

Inventive Principle:
Principle #2Taking out (Extraction)

3Device complexity

If uniform compression ratio is applied to all matrices in the neural network, then implementation is simplified, but load balance across processing elements deteriorates

Engineering Contradiction:
Improveimplementation complexityVSAvoidload balance
Core Design Contradiction:
Device complexityVSEase of operation

Solution Approach 1:

The patent applies different compression ratios to different weight matrices within the neural network based on their specific characteristics and the computational requirements of their corresponding processing elements. Instead of uniform compression, each matrix is compressed locally according to its needs, optimizing load balance across PEs while maintaining overall network performance.

Inventive Principle:
Principle #3Local quality

4Quantity of substance

If high compression ratio is applied to neural network matrices, then storage and computational requirements are reduced, but network accuracy deteriorates

Engineering Contradiction:
Improvestorage requirementsVSAvoidnetwork accuracy
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent employs an iterative compression process with dynamic adjustment of compression ratios. The compression ratio for each matrix is not fixed but is dynamically determined through sensitivity analysis and adjusted based on the impact on network accuracy. This dynamic approach allows achieving high compression while maintaining accuracy by adapting the compression level to each matrix's importance and characteristics.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS10984308B2Compression method for deep neural networks with load balance
Publication Date: 2021.04.20 XILINX TECH BEIJING LTD
  • US10984308B2 patent drawing
  • US10984308B2 patent drawing
  • US10984308B2 patent drawing

AI summary

The present invention relates to artificial neural networks, for example, deep neural networks. In particular, the present invention relates to a compression method considering load balance for deep neural networks and the device thereof. More specifically, the present invention relates to how to compress dense neural networks into sparse neural networks in an efficient way so as to improve utilization of resources of the hardware platform.