Neural Network Weight Discretizing Method for Portable Devices
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Deep neural networks face challenges in being embedded in portable devices due to high hardware resource overhead, training time, and power consumption, with existing solutions like pruning and binary neural networks compromising performance and efficiency.
Innovation Solution
A neural network weight discretizing method that acquires a weight value range and discrete states, calculates a weight increment, and determines a state transfer direction to directly transfer states within a discrete weight space, reducing storage and computation complexity without the need for full precision weights.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If traditional pruning and pre-training methods are used to reduce the number of parameters, then computation complexity is reduced, but performance deteriorates
Solution Approach 1:
The patent changes the parameter representation from continuous floating-point weights to discrete quantized weights with limited precision. By representing weights using a small number of bits (e.g., 1-bit, 2-bit, or 3-bit quantization), the computation complexity is significantly reduced while maintaining acceptable performance through optimized discrete weight updates and gradient approximation methods during training.
Solution Approach 2:
The patent segments the weight update process into discrete state transitions rather than continuous adjustments. By dividing the weight space into discrete levels and using stochastic gradient descent to transition between these discrete states, the method reduces computational overhead while preserving the essential learning capability of the neural network.
2Device complexity
If binary neural networks are used to simplify calculations, then computation complexity is reduced, but hardware resource overhead increases due to buffer requirements
Solution Approach 1:
The patent introduces dynamic quantization where the number of discrete weight levels and precision can be adaptively adjusted during training based on the specific layer and importance of weights. This dynamic approach allows the system to use lower precision for less critical weights (reducing buffer overhead) while maintaining higher precision for important weights, thereby balancing computation complexity and memory requirements.
Solution Approach 2:
The patent applies partial quantization selectively to different parts of the neural network. Instead of uniformly quantizing all weights to binary values, the method applies different quantization levels to different layers or weight groups, using binary or low-precision quantization for convolutional layers where it benefits computation while maintaining higher precision in fully connected layers where accuracy is more critical, thus optimizing the trade-off between computation complexity and buffer overhead.
3Measurement precision
If full precision weights are preserved for gradient descent methods, then training accuracy is maintained, but storage space consumption and power consumption increase
Solution Approach 1:
The patent fundamentally changes the precision parameter of weight representation from full floating-point precision to discrete quantized precision. By using limited-bit representations (1-bit, 2-bit, 3-bit) for weights during training and inference, the storage space consumption and power consumption are dramatically reduced while training accuracy is maintained through carefully designed quantization-aware training algorithms that compensate for the reduced precision.
Solution Approach 2:
The patent replaces the traditional floating-point arithmetic mechanism with discrete state transition mechanisms. Instead of using continuous floating-point weight updates that require high-precision storage and computation, the method uses discrete state transitions guided by gradient directions, substituting the floating-point mechanism with a discrete-state machine approach that is more energy-efficient and suitable for hardware implementation in portable devices.
4Productivity
If weights are quantized to reduce computation complexity, then processing efficiency is improved, but manufacturing precision of weight values deteriorates
Solution Approach 1:
The patent implements dynamic precision adjustment where the quantization level of weights can be adaptively changed during different training stages and for different network layers. Early training stages may use higher precision to establish accurate weight directions, while later stages and less critical layers use lower precision to maximize processing efficiency. This dynamic approach allows the system to optimize the trade-off between weight value precision and processing efficiency based on actual training needs.
Solution Approach 2:
The patent applies preliminary high-precision initialization and early training with higher quantization levels to establish accurate weight directions and network structure before transitioning to lower precision modes. This preliminary action ensures that the discrete quantized weights start from accurate positions, and the network structure is properly established before the benefits of reduced precision are fully exploited, thereby minimizing the loss of weight value precision while achieving improved processing efficiency.
Data Source
AI summary
There are provided a neural network weight discretizing method, system and device, and a computer readable storage medium. The method includes acquiring a weight value range and a number of discrete weight states, the weight value range referring to a range of discrete weight values consisting of a maximum weight value of a current time step and a minimum weight value of the current time step, and the number of discrete weight states referring to the quantity of discrete weight states. The method also includes acquiring a weight state of a previous time step and a weight increment of the current time step and acquiring a state transfer direction by using a directional function according to the weight increment of the current time step. The method also includes acquiring a weight state of the current time step according to the weight state of the previous time step, the weight increment of the current time step, the state transfer direction, the weight value range and the number of discrete weight states. The method ensures that the weight value is always constrained in the same discrete-state space without the need for storing an additional virtual continuous-state implicit weight. On the premise that the computation performance of the neural network is ensured, the consumption of storage space is greatly reduced, and the computation complexity is reduced.

