Softplus Function
📐 Definition
Section titled “📐 Definition”The softplus function is a smooth approximation of the hinge :
It can also be written as a two-term log-sum-exp:
Domain and Codomain
Section titled “Domain and Codomain”Softplus is defined for all real inputs and returns positive real values: .
⚙️ Key Properties
Section titled “⚙️ Key Properties”Derivative (Logistic)
Section titled “Derivative (Logistic)”Asymptotics
Section titled “Asymptotics”Temperature Scaling
Section titled “Temperature Scaling”A sharper transition can be obtained by introducing an inverse-temperature :
🎯 Special Values and Limits
Section titled “🎯 Special Values and Limits”As , converges pointwise to .
🔗 Related Functions
Section titled “🔗 Related Functions”Softplus is a log-sum-exp primitive and is tightly related to exponential/logarithmic stabilization. Hyperbolic tangent and soft clamping provide alternative smooth transitions with saturation.
Usage in Oakfield
Section titled “Usage in Oakfield”Oakfield uses softplus-style expressions primarily for smooth clamping in operator logic:
- Thermostat smooth clamps use a softplus-like function (
log1p(exp(kx))/k) to apply smooth min/max limiting without hard kinks (seethermostatoperator). - Softplus is also a convenient conceptual model for “soft” thresholds in UIs and parameter mappings, but it is not currently exposed as a standalone field operator.
Historical Foundations
Section titled “Historical Foundations”📜 Smooth Approximations
Section titled “📜 Smooth Approximations”Softplus is a modern smooth surrogate for the hinge/rectifier, closely connected to log-sum-exp and softmax constructions that became standard in numerical optimization and statistical modeling.
🌍 Modern Perspective
Section titled “🌍 Modern Perspective”It is widely used as a differentiable “soft” hinge, with a tunable sharpness parameter via temperature scaling.
📚 References
Section titled “📚 References”- Boyd & Vandenberghe, Convex Optimization
- Cover & Thomas, Elements of Information Theory