log(1 + eˣ): a smooth ReLU whose output is always positive.
In ML papers
softplus(x)=log(1+ex) is a smooth version of ReLU: close to 0 for very negative x, close to x for large x, and always strictly positive. Its derivative is the sigmoid σ(x).
Its main use is to make an output positive: a network predicts any real number and softplus turns it into a standard deviation, a variance, a rate or a step size. It also appears inside losses: −logσ(x)=softplus(−x), so the logistic loss is a softplus.
How to type it
LaTeX
Shows
\operatorname{softplus}(x)
softplus(x)
\log(1 + e^{x})written out
log(1+ex)
A worked example
softplus(0)=log2≈0.693,softplus(2)≈2.127
At −5 it is about 0.0067: small, but never zero.
Common confusions
Despite the name it is not related to softmax (Softmax).