Activation function

For the formalism used to approximate the influence of an extracellular electrical field on neurons, see activating function.

In computational networks, the activation function of a node defines the output of that node given an input or set of inputs. A standard computer chip circuit can be seen as a digital network of activation functions that can be "ON" (1) or "OFF" (0), depending on input. This is similar to the behavior of the linear perceptron in neural networks. However, it is the nonlinear activation function that allows such networks to compute nontrivial problems using only a small number of nodes. In artificial neural networks this function is also called transfer function (not to be confused with a linear system’s transfer function).

Functions

In biologically inspired neural networks, the activation function is usually an abstraction representing the rate of action potential firing in the cell. In its simplest form, this function is binary—that is, either the neuron is firing or not. The function looks like , where is the Heaviside step function. In this case a large number of neurons must be used in computation beyond linear separation of categories.

A line of positive slope may also be used to reflect the increase in firing rate that occurs as input current increases. The function would then be of the form , where is the slope. This activation function is linear, and therefore has the same problems as the binary function. In addition, networks constructed using this model have unstable convergence because neuron inputs along favored paths tend to increase without bound, as this function is not normalizable.

All problems mentioned above can be handled by using a normalizable sigmoid activation function. One realistic model stays at zero until input current is received, at which point the firing frequency increases quickly at first, but gradually approaches an asymptote at 100% firing rate. Mathematically, this looks like , where the hyperbolic tangent function can also be replaced by any sigmoid function. This behavior is realistically reflected in the neuron, as neurons cannot physically fire faster than a certain rate. This model runs into problems, however, in computational networks as it is not differentiable, a requirement in order to calculate backpropagation.

The final model, then, that is used in multilayer perceptrons is a sigmoidal activation function in the form of a hyperbolic tangent. Two forms of this function are commonly used: whose range is normalized from -1 to 1, and is vertically translated to normalize from 0 to 1. The latter model is often considered more biologically realistic, but it runs into theoretical and experimental difficulties with certain types of computational problems.

Alternative structures

A special class of activation functions known as radial basis functions (RBFs) are used in RBF networks, which are extremely efficient as universal function approximators. These activation functions can take many forms, but they are usually found as one of three functions:

where is the vector representing the function center and and are parameters affecting the spread of the radius.

Support vector machines (SVMs) can effectively utilize a class of activation functions that includes both sigmoids and RBFs. In this case, the input is transformed to reflect a decision boundary hyperplane based on a few training inputs called support vectors . The activation function for the hidden layer of these machines is referred to as the inner product kernel, . The support vectors are represented as the centers in RBFs with the kernel equal to the activation function, but they take a unique form in the perceptron as

,

where and must satisfy certain conditions for convergence. These machines can also accept arbitrary-order polynomial activation functions where

.[1]

Activation function having types:

  1. Identity function.
  2. Binary step function.
  3. Bipolar step function.
  4. Sigmoidal function.
    1. Binary sigmoidal function.
    2. Bipolar sigmoidal function.
  5. Ramp function.

Comparison of activation functions

Some desirable properties in an activation function include:

The following table compares the properties of several activation functions:

Name Plot Equation Derivative (with respect to x) Range Order of continuity Monotonic Derivative Monotonic Approximates identity near the origin
Identity Yes Yes Yes
Binary step Yes No No
Sigmoid (a.k.a. Soft step) Yes No No
TanH Yes No Yes
ArcTan Yes No Yes
Softsign [7][8] Yes No Yes
Rectifier (ReLU)[9] Yes Yes No
Leaky Rectifier (LReLU)[10]
is a fixed value and usually .
Yes iff Yes Yes iff
Randomized Leaky Rectifier (RReLU)[11]
is random fixed values taken from a uniform distribution.
No Yes No
Parameteric Rectified Linear Unit (PReLU)[12]
is parameters created for each channels.
No Yes No
S-shaped rectified linear activation unit (SReLU)[13]
are parameters.
No No No
Exponential Linear Unit (ELU)[14]
is a fixed value and usually 1.
when
Yes iff Yes iff Yes iff
Parametric Exponential Linear Unit (PELU)[15]
and and they are parameters.
Yes Yes No
SoftPlus[16] Yes Yes No
Bent identity Yes Yes Yes
SoftExponential [17] Yes Yes Yes iff
Sinusoid No No Yes
Sinc No No No
Gaussian No No No
Maxout[18] No No No

See also

References

  1. Haykin, Simon (1998). Neural Networks: A Comprehensive Foundation (2 ed.). Prentice Hall. ISBN 0-13-273350-1.
  2. Cybenko, George. "Approximation by superpositions of a sigmoidal function." Mathematics of control, signals and systems 2.4 (1989): 303-314.
  3. Snyman, Jan. Practical mathematical optimization: an introduction to basic optimization theory and classical and new gradient-based algorithms. Vol. 97. Springer Science & Business Media, 2005.
  4. Wu, Huaiqin. "Global stability analysis of a general class of discontinuous neural networks with linear growth activation functions." Information Sciences 179.19 (2009): 3432-3441.
  5. Gashler, Michael S., and Stephen C. Ashmore. "Training Deep Fourier Neural Networks to Fit Time-Series Data." Intelligent Computing in Bioinformatics. Springer International Publishing, 2014. 48-55, arXiv:1405.2262
  6. Sussillo, David, and L. F. Abbott. "Random walks: Training very deep nonlinear feed-forward networks with smart initialization." CoRR, arXiv:1412.6558 (2014): 286.
  7. Bergstra, James and Desjardins, Guillaume and Lamblin, Pascal and Bengio, Yoshua. "Quadratic polynomials learn better image features". Technical Report 1337, Département d’Informatique et de Recherche Opérationnelle, Université de Montréal 2009. http://www.iro.umontreal.ca/~lisa/publications2/index.php/attachments/single/205
  8. Glorot, Xavier and Bengio, Yoshua."Understanding the difficulty of training deep feedforward neural networks". In Proceedings of the International Conference on Artificial Intelligence and Statistics (AISTATS’10). Society for Artificial Intelligence and Statistics. 2010. http://jmlr.org/proceedings/papers/v9/glorot10a/glorot10a.pdf
  9. Nair, Vinod, and Geoffrey E. Hinton. "Rectified linear units improve restricted boltzmann machines." Proceedings of the 27th International Conference on Machine Learning (ICML-10). 2010.
  10. Andrew L. Maas, Awni Y. Hannun, Andrew Y. Ng (2014). Rectifier Nonlinearities Improve Neural Network Acoustic Models
  11. Bing Xu, Naiyan Wang, Tianqi Chen, Mu Li (2015). Empirical Evaluation of Rectified Activations in Convolutional Network, arXiv:1505.00853
  12. Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun (2015). Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification, arXiv:1502.01852
  13. Xiaojie Jin, Chunyan Xu, Jiashi Feng, Yunchao Wei, Junjun Xiong, Shuicheng Yan (2015). Deep Learning with S-shaped Rectified Linear Activation Units, arXiv:1512.07030
  14. Djork-Arné Clevert, Thomas Unterthiner, Sepp Hochreiter (2015). Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs), arXiv:1511.07289
  15. Ludovic Trottier, Philippe Giguère, Brahim Chaib-draa (2016). Parametric Exponential Linear Unit for Deep Convolutional Neural Networks, arXiv:1605.09332
  16. Glorot, Xavier, Antoine Bordes, and Yoshua Bengio. "Deep sparse rectifier neural networks." International Conference on Artificial Intelligence and Statistics. 2011.
  17. Luke B. Godfrey and Gashler, Michael S. A Continuum among Logarithmic, Linear, and Exponential Functions, and Its Potential to Improve Generalization in Neural Networks. In Proceedings of the 7th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management: KDIR, pages 481-486. Lisbon, Portugal, November, 2015, arXiv:1602.01321.
  18. Ian J. Goodfellow, David Warde-Farley, Mehdi Mirza, Aaron Courville, Yoshua Bengio (2013). Maxout Networks, arXiv:1302.4389
This article is issued from Wikipedia - version of the 12/4/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.