The Swish function is an activation function discovered through automated search.

It has a parameter β, which can be a constant or learnable; depending on its value, the function adapts to a shape between a linear function and the ReLU function, controlling its nonlinearity.

ESwish and Swish have been shown to train deeper networks than ReLU when batch normalization is used.

  • MNIST experiments: In experiments on MNIST with fully connected networks 23 to 44 layers deep, Swish and ESwish performed substantially better than ReLU.
  • Using hyperparameters designed for ReLU and replacing only the activation function, performance still improved.

The Swish function is an activation function well suited to speech recognition. The following functions are recommended for speech recognition.

Swish(x)=x⋅σ(βx)=x1+e−βx\text{Swish}(x) = x \cdot \sigma(βx) = \frac{x}{1 + e^{-βx}}

Reference: E-swish: Adjusting Activations to Different Network Depths (2018)