Check patentability & draft patents in minutes with Patsnap Eureka AI!

Softmax function hardware implementation method, module, chip and system

A hardware implementation and function technology, which is applied in the field of hardware implementation of neural network multi-task classification activation functions, can solve the problems of excessive resource consumption or time consumption, high complexity, etc., achieve area and power saving, reduce precision, and save computing time Effect

Pending Publication Date: 2021-09-17
南京宁麒智能计算芯片研究院有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Aiming at the softmax function existing in the prior art because it has e index calculation and division, hardware implementation needs to consume too many resources or time, and the problem of high complexity, the present invention provides a hardware implementation method, module, chip and system of the softmax function, The softmax function is transformed, avoiding the exponent operation and the division operation in the hardware implementation, and realizing high-performance, low-complexity softmax function hardware implementation, the present invention does not need to iterate to reduce precision, saves calculation time, and can be used in the multi-classification task calculation of neural network high performance

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
  • Softmax function hardware implementation method, module, chip and system
  • Softmax function hardware implementation method, module, chip and system
  • Softmax function hardware implementation method, module, chip and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0059] This embodiment transforms based on the traditional softmax function, and discloses an E-to-2softmax function. Compared with the softmax function, the E-to-2softmax function avoids the e index operation and division operation in hardware implementation, and only needs to carry out some data Transformation, data division, shifting, and addition operations can be implemented with high performance and low complexity.

[0060] The expression formula of the softmax function is:

[0061]

[0062] where x i Represents the i-th element in the array x, softmax(i) represents the softmax value of the element, and there are n elements in the array x.

[0063] The E-to-2softmax function described in this embodiment changes the base e into 2, and the function expression is:

[0064]

[0065] Firstly, the feasibility of E-to-2softmax function is analyzed theoretically.

[0066] There are two main reasons why the softmax function is widely used in the output layer function of ...

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 invention discloses a hardware implementation method, module, chip and system of a softmax function, and belongs to the technical field of hardware implementation of a neural network multi-task classification activation function. Based on the problems that in the prior art, e index operation and division operation are difficult to achieve in hardware of a softmax activation function, and the hardware implementation performance is not high, the softmax function is transformed; wherein a main controller module, a data input module, a calculation module and a data output module are constructed in a hardware system; in the calculation module, methods of comparison, subtraction, data segmentation, shift summation, mirror image search and the like are used to realize an E-to-2softmax function. According to the method, firstly, the feasibility of the E-to-2softmax function is theoretically analyzed, and then the hardware implementation part of the function is introduced in detail. Thus, e index operation and division operation of the softmax function are avoided in hardware implementation, so that hardware resources are saved, hardware friendliness is high, and the method has the advantages of being high in performance, low in complexity and the like.

Description

technical field [0001] The invention relates to the technical field of hardware implementation of neural network multi-task classification activation functions, and more specifically, relates to a hardware implementation method, module, chip and system of a softmax function. Background technique [0002] As a subset of machine learning, deep learning effectively extracts and transforms features in data by using multi-layer mathematical functions. One of the research hotspots of deep learning algorithms is the activation function. The activation function introduces nonlinear factors to neurons, so that the neural network can arbitrarily approximate any nonlinear function, so that the neural network can be applied to many nonlinear models. [0003] The softmax function (normalized exponential function) is usually used as the output layer activation function in multi-classification tasks, and as the last layer in deep learning for classification. The softmax function has a ver...

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): G06F16/903G06F16/906G06F17/15G06N3/04G06N3/08
CPCG06F16/903G06F16/906G06F17/153G06N3/08G06N3/048G06N3/045
Inventor 李丽张永刚陈辉傅玉祥何书专陈健
Owner 南京宁麒智能计算芯片研究院有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More