Sparse Weight Matrix Neural Network Training

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The increasing size and training time of neural network models necessitate improved systems and methods for efficient training, as conventional methods are inefficient due to redundant calculations and high memory usage.

Innovation Solution

The use of sparse matrix-matrix multiplication (spMM) and sampled dense-dense matrix multiplication (SDDMM) modules, along with transpose invariant sparse weight matrices, to compute activations and gradients in forward and backward passes, reducing redundant calculations and memory consumption.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If conventional dense matrix multiplication is used for neural network training, then computation is straightforward and easy to implement, but training time increases and memory usage increases due to redundant calculations with zero-value elements

Engineering Contradiction:
Improvetraining speedVSAvoidcomputation complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the weight matrix into sparse format by dividing it into non-zero elements and their corresponding indices. This segmentation allows the system to process only relevant computations while eliminating redundant operations with zero-value elements, thereby improving training speed without excessive complexity

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent dynamically switches between sparse matrix operations for forward propagation and dense matrix operations for backward propagation based on computational requirements. This dynamic approach optimizes training efficiency by applying the appropriate computation mode at each stage, resolving the contradiction between speed and complexity

Inventive Principle:
Principle #15Dynamics

2Loss of time

If sparse weight matrices are used to eliminate redundant calculations, then training efficiency improves, but additional complexity is introduced in managing sparse data structures and transposes

Engineering Contradiction:
Improvetraining timeVSAvoiddata structure complexity
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The patent extracts only the non-zero elements and their indices from the weight matrix, storing them in compact sparse formats. This extraction eliminates the need to store and process zero-value elements, reducing training time while managing complexity through focused data representation

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes the representation parameters of the weight matrix from dense format to sparse format with explicit index tracking. This parameter change enables efficient storage and computation by adapting the data structure to the actual distribution of non-zero elements, reducing training time without proportionally increasing complexity

Inventive Principle:
Principle #35Parameter changes

3Reliability

If full dense matrix operations are performed during backward pass, then gradient computation is accurate and complete, but memory consumption increases significantly

Engineering Contradiction:
Improvegradient computation accuracyVSAvoidmemory usage
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent extracts and processes only the necessary gradient computations using sparse operations where applicable, rather than performing full dense matrix operations. This extraction maintains gradient accuracy for non-zero elements while significantly reducing memory consumption by excluding operations involving zero-value elements

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent dynamically adapts the computation mode during backward propagation, using sparse operations for weight gradient computation when the weight matrix is sparse, and dense operations only where necessary. This dynamic approach maintains gradient accuracy while optimizing memory usage according to the actual data characteristics

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20230306257A1Systems and methods for neural network training with weight sparsity
Publication Date: 2023.09.28 ALIBABA (CHINA) CO LTD
  • US20230306257A1 patent drawing
  • US20230306257A1 patent drawing
  • US20230306257A1 patent drawing

AI summary

Neural network (NN) model training techniques can include computing activations in a forward pass using a sparse weight matrix that is transpose invariant. The neural network (NN) model training techniques can further include computing activation gradients and weight gradients in a backward pass using the sparse weight matrix.