Static Fixed-Point Conversion for LSTM Neural Network Accuracy

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep neural networks face challenges in maintaining accuracy after compression, particularly due to the conversion of floating-point numbers to fixed-point numbers, which affects computation speed and resource efficiency.

Innovation Solution

A static fixed-point conversion scheme is proposed for LSTM neural networks, where weights are converted to fixed-point numbers during the fine-tuning process, allowing for forward calculations using a training database to restore accuracy levels similar to floating-point calculations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If floating-point numbers are converted to fixed-point numbers for compression, then computation speed and resource efficiency are improved, but accuracy is compromised

Engineering Contradiction:
Improvecomputation speedVSAvoidaccuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent applies preliminary action by performing fixed-point conversion on the neural network weights before the actual computation phase. The conversion is done in advance during a fine-tuning process, allowing the system to work with fixed-point representations throughout training and inference, thereby achieving both speed improvement and accuracy preservation

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent changes the numerical representation parameter from floating-point to fixed-point format. By systematically converting weight parameters, activation values, and gradient computations to fixed-point arithmetic, the system achieves faster computation while maintaining accuracy through careful bit-width selection and fine-tuning

Inventive Principle:
Principle #35Parameter changes

2Quantity of substance

If neural networks are compressed through quantization, then storage and computational resources are reduced, but accuracy decreases requiring retraining

Engineering Contradiction:
Improvemodel sizeVSAvoidaccuracy
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent applies parameter changes by systematically quantizing neural network parameters (weights, biases, activation values) to lower precision formats. Through fixed-point conversion with carefully selected bit-widths and fine-tuning, the system reduces model size and computational requirements while recovering accuracy through adaptive retraining on the quantized representation

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If fixed-point conversion is applied during fine-tuning, then accuracy loss from compression is compensated, but additional training time is required

Engineering Contradiction:
ImproveaccuracyVSAvoidtraining time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent performs fixed-point conversion and fine-tuning as a preliminary action before deployment. By completing the accuracy recovery process in advance during the fine-tuning phase, the system establishes an optimized fixed-point model that achieves both compression benefits and accuracy preservation without requiring additional time during actual inference

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11308392B2Fixed-point training method for deep neural networks based on static fixed-point conversion scheme
Publication Date: 2022.04.19 XILINX TECH BEIJING LTD
  • US11308392B2 patent drawing
  • US11308392B2 patent drawing
  • US11308392B2 patent drawing

AI summary

The present disclosure proposes a fixed-point training method and apparatus based on static fixed-point conversion scheme. More specifically, the present disclosure proposes a fixed-point training method for LSTM neural network. According to this method, during the fine-tuning process of the neural network, it uses fixed-point numbers to conduct forward calculation. Accordingly, within several training cycles, the network accuracy may returned to the desired accuracy level under floating point calculation.