Hexpo is an activation function shaped like the Tanh function whose gradient can be adjusted with (non-learnable) parameters.

It uses separate exponential functions for positive and negative inputs, and the ratios a/b and c/d control how fast the gradient decays toward 0, which minimizes the vanishing gradient problem.

Hexpo(x)={−a⋅(e−x/b−1),x≥0c⋅(ex/d−1),x<0\text{Hexpo}(x) = \begin{cases} -a \cdot \left(e^{-x/b} - 1\right), & x \geq 0 \\ c \cdot \left(e^{x/d} - 1\right), & x < 0 \end{cases}

The output range is

−c<Hexpo(x)<a-c < \text{Hexpo}(x) < a