Description
For f(x)=x*sigmoid(beta*x), require abs(beta*x)<=10^300.
Swish multiplies its input by sigmoid(beta*x). Differentiating input x and differentiating the shape parameter beta produce different sensitivities. At beta zero the value becomes a linear half-input, without requiring a neural-network evaluation.
For f(x)=x*sigmoid(beta*x), require abs(beta*x)<=10^300.
When to use this tool
Use Activation: Swish Scalar Derivative Beta when checking the stated Swish limit or scalar partial derivative convention.
How to use the tool and how it works
- Enter x, beta. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read result. Expand result to inspect the returned fields.
For f(x)=x*sigmoid(beta*x), require abs(beta*x)<=10^300. With s=sigmoid(beta*x), return s+beta*x*s*(1-s), differentiating with respect to x at fixed beta.1
Swish combines its input with a beta-scaled sigmoid gate. This scalar helper evaluates the stated limit or derivative, rather than establishing training performance or a preferred beta.2
| Input field | Meaning and units | Accepted input |
|---|---|---|
| x | Finite scalar input coordinate; use the mathematical scale specified above. | Required. Finite number. |
| beta | Supplied scalar shape parameter under the explicitly stated function convention. | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| result | Object containing the operation-specific returned members listed below. | Required. Object. |
| result.derivative | Scalar derivative with respect to the variable and at the fixed coordinates specified above; not a tensor/model gradient. | Calculated result member: number. |
{
"input": {
"x": 0,
"beta": 1
},
"output": {
"result": {
"derivative": 0.5
}
}
} Limitations and assumptions
- Beta is a signed real parameter; this is not a derivative with respect to beta or a complete training gradient.
- Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use the complete explicit function and the intended parameter, branch and numerical conventions for symbolic, tensor or model-level differentiation; assess training behavior independently.
References
-
Calculation and input contract: activation/swish-scalar-derivative-beta — tool.io
-
Searching for Activation Functions — Prajit Ramachandran, Barret Zoph and Quoc V. Le
Similar or alternative tools
- Swish Beta Partial Derivative
Return zero before squaring when s rounds to zero or one.
- Swish Beta Zero Limit
For x*sigmoid(beta*x), return the beta→0 limit x/2 and the beta partial derivative at zero, x²/4.