Swish function
The swish function is a family of mathematical function defined as follows: : \operatorname{swish}_\beta(x) = x \operatorname{sigmoid}(\beta x) = \frac{x}{1+e^{-\beta x}}. where \beta can be constant (usually set to 1) or trainable and "sigmoid" refers to the logistic function. The swish family was designed to smoothly interpolate between a linear function and the Rectified linear unit (ReLU) function. When considering positive values, Swish is a particular case of doubly parameterized sigmoid shrinkage function defined in . Variants of the swish function include Mish.
The swish function is a family of mathematical function defined as follows: \operatorname{swish}_\beta(x) = x \operatorname{sigmoid}(\beta x) = \frac{x}{1+e^{-\beta x}}. where \beta can be constant (usually set to 1) or trainable and "sigmoid" refers to the logistic function. The swish family was designed to smoothly interpolate between a linear function and the Rectified linear unit (ReLU) function. When considering positive values, Swish is a particular case of doubly parameterized sigmoid shrinkage function defined in . Variants of the swish function include Mish. For β = 0, the function is linear: f(x) = x/2. For β = 1, the function is the Sigmoid Linear Unit (SiLU). For β = 1.702, the function approximates GeLU. With β → ∞, the function converges to ReLU. Thus, the swish family smoothly interpolates between a linear function and the ReLU function. Since \operatorname{swish}_\beta(x) = \operatorname{swish}_1(\beta x) / \beta , all instances of swish have the same shape as the default \operatorname{swish}_1 , zoomed by \beta . One usually sets \beta > 0 . When \beta is trainable, this constraint can be enforced by \beta = e^b , where b is trainable. \operatorname{swish}_1(x) = \frac x2 + \frac{x^2}{4}-\frac{x^4}{48}+\frac{x^6}{480}+O\left(x^8\right) \begin{aligned} \operatorname{swish}_1(x) &= \frac{x}{2} \tanh \left(\frac{x}{2}\right) + \frac{x}{2}\\ \operatorname{swish}_1(x) + \operatorname{swish}_{-1}(x) &= x \tanh \left(\frac{x}{2}\right) \\ \operatorname{swish}_1(x) - \operatorname{swish}_{-1}(x) &= x \end{aligned} Because \operatorname{swish}_\beta(x) = \operatorname{swish}_1(\beta x) / \beta , it suffices to calculate its derivatives for the default case. \operatorname{swish}_1'(x) = \frac{x+\sinh (x)}{4 \cosh ^2\left(\frac{x}{2}\right)} + \frac 12 so \operatorname{swish}_1'(x) - \frac 12 is odd. \operatorname{swish}_1(x) = \frac{1- \frac x2 \tanh \left(\frac{x}{2}\right)}{2 \cosh ^2\left(\frac{x}{2}\right)} so \operatorname{swish}_1(x) is even. ==History== SiLU was first proposed alongside the GELU in 2016, then again proposed in 2017 as the Sigmoid-weighted Linear Unit (SiL) in reinforcement learning. The SiLU/SiL was then again proposed as the SWISH over a year after its initial discovery, originally proposed without the learnable parameter β, so that β implicitly equaled 1. The swish paper was then updated to propose the activation with the learnable parameter β. In 2017, after performing analysis on ImageNet data, researchers from Google indicated that using this function as an activation function in artificial neural networks improves the performance, compared to ReLU and sigmoid functions. It is believed that one reason for the improvement is that the swish function helps alleviate the vanishing gradient problem during backpropagation. ==References==
References
- Smooth sigmoid wavelet shrinkage for non-parametric estimation · retrieved 2026-11-18 · rev 1342997104
Cite this reference
MLA "Smooth sigmoid wavelet shrinkage for non-parametric estimation." Atto, Abdourrahmane M. 2026-11-18. https://ieeexplore.ieee.org/document/4518347. Accessed 24 November 2026.
Chicago "Smooth sigmoid wavelet shrinkage for non-parametric estimation." Atto, Abdourrahmane M. 2026-11-18. https://ieeexplore.ieee.org/document/4518347.
APA Atto, Abdourrahmane M. (2026). Smooth sigmoid wavelet shrinkage for non-parametric estimation. Retrieved November 24, 2026, from https://ieeexplore.ieee.org/document/4518347
- Mish: A Self Regularized Non-Monotonic Neural Activation Function · retrieved 2026-11-18 · rev 1342997104
Cite this reference
MLA "Mish: A Self Regularized Non-Monotonic Neural Activation Function." Misra, Diganta (2019). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Mish: A Self Regularized Non-Monotonic Neural Activation Function." Misra, Diganta (2019). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA Misra, Diganta (2019). (2026). Mish: A Self Regularized Non-Monotonic Neural Activation Function. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learning · retrieved 2026-11-18 · rev 1342997104
Cite this reference
MLA "Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learning." Elfwing, Stefan; Uchibe, Eiji; Doya, Kenji (2017-11-02). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learning." Elfwing, Stefan; Uchibe, Eiji; Doya, Kenji (2017-11-02). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA Elfwing, Stefan; Uchibe, Eiji; Doya, Kenji (2017-11-02). (2026). Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learning. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- Gaussian Error Linear Units (GELUs) · retrieved 2026-11-18 · rev 1342997104
Cite this reference
MLA "Gaussian Error Linear Units (GELUs)." a b Hendrycks, Dan; Gimpel, Kevin (2016). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Gaussian Error Linear Units (GELUs)." a b Hendrycks, Dan; Gimpel, Kevin (2016). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA a b Hendrycks, Dan; Gimpel, Kevin (2016). (2026). Gaussian Error Linear Units (GELUs). Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- Searching for Activation Functions · retrieved 2026-11-18 · rev 1342997104
Cite this reference
MLA "Searching for Activation Functions." a b c d Ramachandran, Prajit; Zoph, Barret; Le, Quoc V. 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Searching for Activation Functions." a b c d Ramachandran, Prajit; Zoph, Barret; Le, Quoc V. 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA a b c d Ramachandran, Prajit; Zoph, Barret; Le, Quoc V. (2026). Searching for Activation Functions. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- Swish as Neural Networks Activation Function · retrieved 2020-06-17 · rev 1342997104
Cite this reference
MLA "Swish as Neural Networks Activation Function." Serengil, Sefik Ilkin (2018-08-21). 2020-06-17. https://sefiks.com/2018/08/21/swish-as-neural-networks-activation-function/. Accessed 24 November 2026.
Chicago "Swish as Neural Networks Activation Function." Serengil, Sefik Ilkin (2018-08-21). 2020-06-17. https://sefiks.com/2018/08/21/swish-as-neural-networks-activation-function/.
APA Serengil, Sefik Ilkin (2018-08-21). (2020). Swish as Neural Networks Activation Function. Retrieved November 24, 2026, from https://sefiks.com/2018/08/21/swish-as-neural-networks-activation-function/
Cite this article
MLA
"Swish function." encyclopegia.org, 2026, https://encyclopegia.org/wiki/swish-function. Accessed 24 November 2026.
Chicago
"Swish function." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/swish-function.
APA
encyclopegia.org. (2026). Swish function. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/swish-function
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON