activation function
In artificial neural networks, the activation function of a node is a function that calculates the output of the node based on its individual inputs and their weights. Nontrivial problems can be solved using only a few nodes if the activation function is nonlinear. Modern activation functions include the logistic (sigmoid) function used in the 2012 speech recognition model developed by Hinton et al; the ReLU used in the 2012 AlexNet computer vision model and in the 2015 ResNet model; and the smooth version of the ReLU, the GELU, which was used in the 2018 BERT model.
In artificial neural networks, the activation function of a node is a function that calculates the output of the node based on its individual inputs and their weights. Nontrivial problems can be solved using only a few nodes if the activation function is nonlinear. Modern activation functions include the logistic (sigmoid) function used in the 2012 speech recognition model developed by Hinton et al; the ReLU used in the 2012 AlexNet computer vision model and in the 2015 ResNet model; and the smooth version of the ReLU, the GELU, which was used in the 2018 BERT model. ==Comparison of activation functions== Aside from their empirical performance, activation functions also have different mathematical properties: Nonlinear: When the activation function is non-linear, then a two-layer neural network can be proven to be a universal function approximator. This is known as the Universal Approximation Theorem. The identity activation function does not satisfy this property. When multiple layers use the identity activation function, the entire network is equivalent to a single-layer model. Range: When the range of the activation function is finite, gradient-based training methods tend to be more stable, because pattern presentations significantly affect only limited weights. When the range is infinite, training is generally more efficient because pattern presentations significantly affect most of the weights. In the latter case, smaller learning rates are typically necessary. Continuously differentiable: This property is desirable for enabling gradient-based optimization methods (ReLU is not continuously differentiable and has some issues with gradient-based optimization, but it is still possible). The binary step activation function is not differentiable at 0, and it differentiates to 0 for all other values, so gradient-based methods can make no progress with it. These properties do not decisively influence performance, nor are they the only mathematical properties that may be useful. For instance, the strictly positive range of the softplus makes it suitable for predicting variances in variational autoencoders. {}={} &x\Phi(x) \end{align} where \mathrm{erf} is the gaussian error function. | \Phi(x) + \frac 12 x\phi(x) where \phi(x) = \frac{1}{\sqrt{2\pi}} e^{-\frac 12 x^2} is the probability density function of standard gaussian distribution. | (-0.17\ldots, \infty) | C^\infty |- | Softplus | | \ln\left(1 + e^x\right) | \frac{1}{1 + e^{-x}} | (0,\infty) | C^\infty |- | Exponential linear unit (ELU) | | \begin{cases} \alpha\left(e^x - 1\right) & \text{if } x \le 0\\ x & \text{if } x > 0 \end{cases} with parameter \alpha | \begin{cases} \alpha e^x & \text{if } x 0 \end{cases} | (-\alpha,\infty) | \begin{cases} C^1 & \text{if } \alpha = 1 \\ C^0 & \text{otherwise} \end{cases} |- | Scaled exponential linear unit (SELU) | | \lambda \begin{cases} \alpha(e^x - 1) & \text{if } x with parameters \lambda = 1.0507 and \alpha = 1.67326 | \lambda \begin{cases} \alpha e^x & \text{if } x | (-\lambda\alpha,\infty) | C^0 |- | Leaky rectified linear unit (Leaky ReLU) | | \begin{cases} 0.01x & \text{if } x \le 0\\ x & \text{if } x > 0 \end{cases} | \begin{cases} 0.01 & \text{if } x 0 \end{cases} | (-\infty,\infty) | C^0 |- | Parametric rectified linear unit (PReLU) | | \begin{cases} \alpha x & \text{if } x with parameter \alpha | \begin{cases} \alpha & \text{if } x | (-\infty,\infty) | C^0 |- | Rectified Parametric Sigmoid Units (flexible, 5 parameters) | | \alpha (2x {1}_{ \{ x \geqslant \lambda \} } - g_{\lambda, \sigma, \mu, \beta}(x)) + (1-\alpha) g_{\lambda, \sigma, \mu, \beta}(x) where g_{\lambda, \sigma, \mu, \beta}(x) = \frac{ (x - \lambda) {1}_{ \{ x \geqslant \lambda \} } }{ 1 + e^{- \sgn(x-\mu) \left( \frac{\vert x-\mu \vert}{\sigma} \right)^\beta } } | - | (-\infty,\infty) | C^0 |- | Sigmoid linear unit (SiLU, Sigmoid shrinkage, SiL, or Swish- 1 ) | | \frac{x}{1 + e^{-x}} | \frac{1 + e^{-x} + xe^{-x}}{\left(1 + e^{-x}\right)^2} | [-0.278\ldots, \infty) | C^\infty |- |Exponential Linear Sigmoid SquasHing (ELiSH) | | \begin{cases} \frac{e^x - 1}{1 + e^{-x}} & \text{if } x | \begin{cases} \frac{2e^{2x}+e^{3x}-e^x}{e^{2x}+2e^x+1} & \text{if }x | [-0.881\ldots, \infty) | C^1 |- | Gaussian | | e^{-x^2} | -2xe^{-x^2} | (0,1] | C^\infty |- |Sinusoid | | \sin x | \cos x | [-1, 1] | C^\infty |} The following table lists activation functions that are not functions of a single fold from the previous layer or layers: Here, \delta_{ij} is the Kronecker delta. For instance, j could be iterating through the number of kernels of the previous neural network layer while i iterates through the number of kernels of the current layer. ==See also== Logistic function Rectifier (neural networks) Stability (learning theory) Softmax function ==References==
References
- ^ Hinkelmann, Knut. "Neural Networks, p. 7" (PDF) . University of Applied Sciences Northwestern Switzerland . Archived from the original (PDF) on 6 October 2018 . Retrieved 6 October 2018 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Gerstein, G. L. (1964). "Representation of firing activity by nerve cell ensembles". IEEE Transactions on Biomedical Engineering . 11 : 61– 65. doi : 10.1109/TBME.1964.4502244 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Sitzmann, Vincent; Martel, Julien; Bergman, Alexander; Lindell, David; Wetzstein, Gordon (2020). "Implicit Neural Representations with Periodic Activation Functions" . Advances in Neural Information Processing Systems . 33 . Curran Associates, Inc.: 7462– 7473. arXiv : 2006.09661 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Flake, Gary William (1998), "Square Unit Augmented Radially Extended Multilayer Perceptrons" , in Orr, Genevieve B.; Müller, Klaus-Robert (eds.), Neural Networks: Tricks of the Trade , Lecture Notes in Computer Science, vol. 1524, Berlin, Heidelberg: Springer, pp. 145– 163, doi : 10.1007/3-540-49430-8_8 , ISBN 978-3-540-49430-0 , retrieved 5 October 2024 Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Du, Simon; Lee, Jason (3 July 2018). "On the Power of Over-parametrization in Neural Networks with Quadratic Activation" . Proceedings of the 35th International Conference on Machine Learning . PMLR: 1329– 1338. arXiv : 1803.01206 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Nair, Vinod; Hinton, Geoffrey E. (2010), "Rectified Linear Units Improve Restricted Boltzmann Machines" , 27th International Conference on International Conference on Machine Learning , ICML'10, USA: Omnipress, pp. 807– 814, ISBN 9781605589077 Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Glorot, Xavier; Bordes, Antoine; Bengio, Yoshua (2011). "Deep sparse rectifier neural networks" (PDF) . International Conference on Artificial Intelligence and Statistics . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Clevert, Djork-Arné; Unterthiner, Thomas; Hochreiter, Sepp (23 November 2015). "Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs)". arXiv : 1511.07289 [ cs.LG ]. Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Klambauer, Günter; Unterthiner, Thomas; Mayr, Andreas; Hochreiter, Sepp (8 June 2017). "Self-Normalizing Neural Networks". Advances in Neural Information Processing Systems . 30 (2017). arXiv : 1706.02515 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Maas, Andrew L.; Hannun, Awni Y.; Ng, Andrew Y. (June 2013). "Rectifier nonlinearities improve neural network acoustic models". Proc. ICML . 30 (1). S2CID 16489696 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ He, Kaiming; Zhang, Xiangyu; Ren, Shaoqing; Sun, Jian (6 February 2015). "Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification". arXiv : 1502.01852 [ cs.CV ]. Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Hinton, Geoffrey; Deng, Li; Deng, Li; Yu, Dong; Dahl, George; Mohamed, Abdel-rahman; Jaitly, Navdeep; Senior, Andrew; Vanhoucke, Vincent; Nguyen, Patrick; Sainath, Tara ; Kingsbury, Brian (2012). "Deep Neural Networks for Acoustic Modeling in Speech Recognition". IEEE Signal Processing Magazine . 29 (6): 82– 97. doi : 10.1109/MSP.2012.2205597 . S2CID 206485943 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Elfwing, Stefan; Uchibe, Eiji; Doya, Kenji (2018). "Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learning". Neural Networks . 107 : 3– 11. arXiv : 1702.03118 . doi : 10.1016/j.neunet.2017.12.012 . PMID 29395652 . S2CID 6940861 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Ramachandran, Prajit; Zoph, Barret; Le, Quoc V (2017). "Searching for Activation Functions". arXiv : 1710.05941 [ cs.NE ]. Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Basirat, Mina; Roth, Peter M. (2 August 2018), The Quest for the Golden Activation Function , arXiv : 1808.00783 Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Goodfellow, Ian J.; Warde-Farley, David; Mirza, Mehdi; Courville, Aaron; Bengio, Yoshua (2013). "Maxout Networks". JMLR Workshop and Conference Proceedings . 28 (3): 1319– 1327. arXiv : 1302.4389 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Maronese, Marco; Destri, Claudio; Prati, Enrico (2022). "Quantum activation functions for quantum neural networks". Quantum Information Processing . 21 (4): 128. arXiv : 2201.03700 . Bibcode : 2022QuIP...21..128M . doi : 10.1007/s11128-022-03466-0 . ISSN 1570-0755 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Krizhevsky, Alex; Sutskever, Ilya; Hinton, Geoffrey E. (24 May 2017). "ImageNet classification with deep convolutional neural networks" . Communications of the ACM . 60 (6): 84– 90. doi : 10.1145/3065386 . ISSN 0001-0782 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ King Abdulaziz University; Al-johania, Norah; Elrefaei, Lamiaa; Benha University (30 June 2019). "Dorsal Hand Vein Recognition by Convolutional Neural Networks: Feature Learning and Transfer Learning Approaches" (PDF) . International Journal of Intelligent Engineering and Systems . 12 (3): 178– 191. doi : 10.22266/ijies2019.0630.19 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Cybenko, G. (December 1989). "Approximation by superpositions of a sigmoidal function" (PDF) . Mathematics of Control, Signals, and Systems . 2 (4): 303– 314. Bibcode : 1989MCSS....2..303C . doi : 10.1007/BF02551274 . ISSN 0932-4194 . S2CID 3958369 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Snyman, Jan (3 March 2005). Practical Mathematical Optimization: An Introduction to Basic Optimization Theory and Classical and New Gradient-Based Algorithms . Springer Science & Business Media. ISBN 978-0-387-24348-1 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Krizhevsky, Alex; Sutskever, Ilya; Hinton, Geoffrey E. (24 May 2017). "ImageNet classification with deep convolutional neural networks" . Communications of the ACM . 60 (6): 84– 90. doi : 10.1145/3065386 . ISSN 0001-0782 . S2CID 195908774 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Hodgkin, A. L.; Huxley, A. F. (28 August 1952). "A quantitative description of membrane current and its application to conduction and excitation in nerve" . The Journal of Physiology . 117 (4): 500– 544. doi : 10.1113/jphysiol.1952.sp004764 . PMC 1392413 . PMID 12991237 . Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ a b c Hendrycks, Dan; Gimpel, Kevin (2016). "Gaussian Error Linear Units (GELUs)". arXiv : 1606.08415 [ cs.LG ]. Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Atto, Abdourrahmane M.; Galichet, Sylvie; Pastor, Dominique; Méger, Nicolas (2023), "On joint parameterizations of linear and nonlinear functionals in neural networks" , Elsevier Pattern Recognition , vol. 160, pp. 12– 21, arXiv : 2101.09948 , doi : 10.1016/j.neunet.2022.12.019 , PMID 36592526 Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
- ^ Atto, Abdourrahmane M.; Pastor, Dominique; Mercier, Grégoire (2008), "Smooth sigmoid wavelet shrinkage for non-parametric estimation" (PDF) , 2008 IEEE International Conference on Acoustics, Speech and Signal Processing , pp. 3265– 3268, doi : 10.1109/ICASSP.2008.4518347 , ISBN 978-1-4244-1483-3 , S2CID 9959057 Wikipedia revision 1375551500, retrieved 2026-11-19 · 1795042800.0
Cite this
"activation function". 1789733011. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1375551500