Unlock instant, AI-driven research and patent intelligence for your innovation.

A Dynamic Adaptive Data Truncation Method for Convolutional Neural Network Computing

A convolutional neural network and dynamic self-adaptive technology, applied to biological neural network models, general-purpose stored program computers, calculations, etc., can solve problems such as insufficient decimal bit width, reduced data accuracy, and insufficient data accuracy to avoid data loss. The effect of intercepting errors, retaining data precision, and precise operation results

Active Publication Date: 2021-09-07
XI AN JIAOTONG UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for some convolutional layers, the data range is very small, and the required integer bit width is smaller than the reserved bit width, which leads to redundant integer bit width, insufficient decimal bit width, and reduced data accuracy.
[0008] However, the problem with these truncation strategies is that the accuracy of the truncated data is insufficient, and it is even possible that the truncation of high-level data may lead to data truncation errors

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Dynamic Adaptive Data Truncation Method for Convolutional Neural Network Computing
  • A Dynamic Adaptive Data Truncation Method for Convolutional Neural Network Computing
  • A Dynamic Adaptive Data Truncation Method for Convolutional Neural Network Computing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The present invention will be further described in detail below in conjunction with specific embodiments, which are explanations of the present invention rather than limitations.

[0031] The core of the CNN algorithm operation is the convolution operation, and the operation mode is as follows: figure 1 And formula (1) shows:

[0032]

[0033]Among them, O is the output image data, I is the input image data, W is the weight data, and the f( ) function is the activation function of the neural network. z represents the number of the input image, and N images are given in the figure. u represents the serial number of the convolution kernel, and there are M convolution kernels in the figure. y represents the row number of the output image, and E is the total number of rows of the output image. x represents the column number of the output image, and F is the total number of columns of the output image. i and j represent the number of rows and columns of the convoluti...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a dynamic self-adaptive data truncation method for convolutional neural network calculation, comprising: expanding m-digit decimal point position data after t-bit image data, expanding m-digit decimal point position data behind t-bit weight data; In the multiplication operation, t-bit image data and t-bit weight data are multiplied to obtain 2*t-bit result data, and two m-bit decimal point position data are added to obtain the decimal point position of 2*t-bit result data, which is recorded as M ; Compress the high-order 0 value in the 2*t-bit result data, the compressed data is intercepted from the high-order to obtain t-bit result data, and the t-bit result data is obtained and intercepted according to the bit width and M of the truncated low-bit data The corresponding decimal point position; splicing the t-digit result data with the corresponding decimal point position data. While ensuring high-order data is retained, as many decimal places as possible are retained, so that the data operation accuracy is as high as possible under a given hardware architecture.

Description

technical field [0001] The invention relates to a data truncation mechanism in a convolutional neural network hardware acceleration process, in particular to a dynamic adaptive data truncation method for convolutional neural network calculation. Background technique [0002] Artificial intelligence is one of the most popular computer sciences at present. As the main way to realize artificial intelligence, deep learning has also achieved profound development. Convolution Neural Network (CNN) is one of the most studied and widely used network structures of artificial neural network structures. It has become one of the research hotspots in many scientific fields, especially in the field of pattern classification. Since CNN avoids the The complex preprocessing of the image can directly input the original image, so it has been more widely used. In recent years, convolutional neural networks have made great achievements in the field of computer vision, and at the same time, convo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06N3/063G06T1/40G06K9/00
CPCG06N3/063G06T1/20G06V10/955
Inventor 杨晨张海波王小力耿莉
Owner XI AN JIAOTONG UNIV