Dense Shift Inner Product Operator for Low-Bit Neural Networks

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Low-bit neural networks, particularly low-bit shift neural networks, suffer from reduced accuracy when trained on large datasets and existing low-bit weight encodings do not optimally utilize bits, leading to sub-optimal performance in predicting new input data compared to full-precision networks.

Innovation Solution

The introduction of a dense shift inner product operator (IPO) and Sign-Sparse-Shift (S3) training methods, which encode weights using a dense shift encoding that includes a sign bit and multiple shift bits, allowing for more efficient computation and improved accuracy by re-parameterizing weights with continuous values for each bit of the encoding.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Use of energy by moving object

If low-bit shift neural networks are used to reduce computing resources, then hardware efficiency and energy consumption improve, but prediction accuracy deteriorates

Engineering Contradiction:
Improveenergy consumptionVSAvoidprediction accuracy
Core Design Contradiction:
Use of energy by moving objectVSMeasurement precision

Solution Approach 1:

The patent changes the parameter representation by introducing dense shift encoding that re-parameterizes weights with continuous values for each bit of the encoding, allowing the model to achieve better accuracy with the same bit-width constraints while maintaining hardware efficiency

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent adds a new dimension to the encoding by including multiple shift bits (b1, b2, b3) in addition to the sign bit, creating a multi-dimensional parameter space that enables more expressive weight representations within the same bit-width, thereby improving accuracy without increasing hardware complexity

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Device complexity

If existing low-bit weight encodings are used, then bit-width is reduced, but the number of value states is sub-optimal

Engineering Contradiction:
Improvebit-widthVSAvoidnumber of value states
Core Design Contradiction:
Device complexityVSAdaptability or versatility

Solution Approach 1:

The patent re-parameterizes the weight encoding by introducing continuous shift parameters that can take multiple discrete values, transforming the encoding from a simple sign-magnitude format to a dense shift format that achieves 2^n value states with n bits through combinatorial use of multiple shift bits

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If dense shift encoding with continuous values is used, then accuracy improves, but computational complexity increases

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

Solution Approach 1:

The patent replaces traditional multiplication operations with shift operations in the forward pass, substituting computationally expensive mechanical multiplication with simpler bit-shifting operations that achieve the same effect through parameter re-parameterization, thereby reducing computational complexity while maintaining accuracy

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS20240104342A1Methods, systems, and media for low-bit neural networks using bit shift operations
Publication Date: 2024.03.28 HUAWEI TECH CO LTD
  • US20240104342A1 patent drawing
  • US20240104342A1 patent drawing
  • US20240104342A1 patent drawing

AI summary

Methods, systems and computer readable media using hardware-efficient bit-shift operations for computing the output of a low-bit neural network layer. A dense shift inner product operator (or dense shift IPO) using bit shifting in place of multiplication replaces the inner product operator that is conventionally used to compute the output of a neural network layer. Dense shift neural networks may have weights encoded using a low-bit dense shift encoding. A dedicated neural network accelerator is designed to compute the output of a dense shift neural network layer using dense shift IPOs. A Sign-Sparse-Shift (S3) training technique trains a low-bit neural network using dense shift IPOs or other bit shift operations in computing its outputs.