---
title: SignReLU Activation Function
url: https://www.emergentmind.com/topics/signrelu-activation-function
type: topic
---

# SignReLU Activation Function

The SignReLU activation function is a rational-type neural activation that combines a linear identity mapping for positive inputs with a saturating rational branch for negatives. Formally, for a scalar parameter $\alpha>0$, the function is defined as
\[
\mathrm{SignReLU}(x;\alpha) = 
  \begin{cases}
    x,                   & x > 0\\
    \alpha\,x/(1+|x|),   & x \le 0
  \end{cases}
\]
This piecewise structure enables both efficient representation of univariate rational functions and stable handling of ratio-type targets, making the activation especially well-suited for networks tasked with approximations involving division, such as those encountered in conditional generative modeling and diffusion-based generative models [2601.21242, 2210.10264].

## 1. Mathematical Properties and Structure

SignReLU exhibits a two-region structure:

- For $x>0$, the function is linear: $\sigma(x)=x$.
- For $x\le0$, the function is rational and saturating: $\sigma(x)=\alpha\, x/(1+|x|)\in[-\alpha,0)$, which flattens as $x\to -\infty$.

At $x=0$, both one-sided limits match at $0$, providing global continuity. The derivative is
\[
\sigma'(x) =
\begin{cases}
1, & x > 0\\
\alpha (1 + 2|x|)/(1+|x|)^2, & x < 0
\end{cases}
\]
At $x=0$, $\sigma'_+(0)=1$ and $\sigma'_-(0)=\alpha$; thus, for $\alpha=1$, SignReLU is $C^1$ everywhere, although not analytic at the origin.

The negative branch, being a simple rational function, allows for efficient implementation of approximate division or product gates while avoiding the piecewise-linear complexity of standard ReLU chained approximations to similar operations [2210.10264].

Monotonicity is preserved ($\sigma'(x)>0$ for all $x$), and negative values are squashed into a bounded interval – as $x\to-\infty$, $\sigma(x)\to-\alpha$. This property suppresses large negative activations, a feature that may contribute to training stability and robustness.

## 2. Expressivity and Approximation Capabilities

SignReLU networks are demonstrated to possess superior approximation capabilities relative to both classic ReLU and general rational-activation networks [2210.10264]. Several key constructive results underpin this claim:

- **Exact Division and Product Gates:** A depth-$6$, width-$9$ SignReLU subnetwork can compute $(x,y)\mapsto y/x$ exactly for $x$ on any compact interval $[c,C]$, and a similar construction computes $(x,y)\mapsto xy$ with smaller depth and width [2210.10264].
- **Universal Approximation for Ratios:** For $f_1, f_2$ drawn from integral-kernel smooth classes with $f_2$ bounded away from zero, there exists a SignReLU network of depth $7$ and width $O(n+9)$ achieving
  \[
  \left\|\tfrac{f_1}{f_2}-\phi\right\|_{L^p([-1,1]^d)} \precsim M^{-1}n^{-(1/2 + 3/(2d))}
  \]
  for network parameter norm bound $M$ and tunable $n$, matching optimal linear rates in $n$ [2601.21242].

Further approximation results include optimal rates (with no logarithmic penalty) in uniform and $L^p$ norms for Sobolev and Korobov function classes, and efficient approximation of rank-one tensor models and piecewise-smooth functions [2210.10264]. These efficiencies are enabled by direct implementation of rational nonlinearities, as opposed to the $\Omega(\log(\epsilon^{-1}))$ growth in ReLU size to even approximate quadratic or division functions.

## 3. Implementation in Neural Architectures

SignReLU can be integrated into standard feedforward, fully connected, and ResNet-type architectures without modification to layer sizes, parameter initializations, or optimization methdologies. The replacement of ReLU units with SignReLU incurs only a minor computational overhead, as the negative branch requires only a division and multiplication per neuron (compared to the exponential in ELU or the logarithm in Softplus) [2210.10264]. In practical frameworks, this cost is comparable to other nonlinear smooth activations.

In architectures requiring rational or ratio-type functional representations—such as models for denoising diffusion probabilistic models (DDPMs)—SignReLU's rational regime is leveraged prominently. For example, optimal reverse-transition means at time $t$ take the functional form of conditional kernel ratios, for which a stack of one linear-approximation layer followed by a division-gate subnetwork (depth $7$, width $O(n+9d)$) can be constructed [2601.21242].

Parameter norm regularization is sometimes employed to control the rational branch’s tail behavior, mitigating blowups in low-density regions.

## 4. Empirical Performance and Numerical Experiments

Experiments show that SignReLU achieves competitive or superior performance relative to ReLU, Leaky ReLU, and ELU across several settings [2210.10264]:

- **Noisy regression (high-dimensional, $d=50$, $100$, $1000$):** SignReLU and ELU yield lower mean-squared error and variance than ReLU or LeakyReLU.
- **Image classification (MNIST, CIFAR-10):** Test accuracy for SignReLU is highest among the four compared (MNIST: $97.92\%$, CIFAR-10: $76.57\%$).
- **Spherical image denoising:** Using a U-Net style convolutional framelet network, SignReLU matches or slightly exceeds ReLU and ELU in terms of PSNR at moderate noise levels.

The practical implication is that SignReLU's expressivity translates into improved accuracy, noise robustness, and training stability in scenarios where the model must recover or approximate non-linear rational structure.

## 5. Comparison to Other Activation Functions

The following table summarizes key analytic and implementation properties observed across several activations [2210.10264].

| Activation   | Negative Branch           | Bounded Tail | Gradient (x<0)   |
| ------------ | ------------------------ | ------------ | ---------------- |
| ReLU         | $0$                      | Yes          | $0$              |
| Leaky ReLU   | $\lambda x$              | No           | $\lambda$        |
| ELU          | $\alpha(e^x-1)$          | Yes          | $\alpha e^x$     |
| SignReLU     | $x/(1-x)$ or $\alpha x/(1+|x|)$ | Yes   | $1/(1-x)^2$      |

Unlike ReLU, which is non-differentiable at zero and maps all negatives to zero, or Leaky ReLU, which is unbounded below, SignReLU maintains strict monotonicity, $C^1$ smoothness (for $\alpha=1$), and negative outputs saturated in $(-\alpha,0)$. Compared to ELU, SignReLU uses only elementary rational operations, making it computationally economical in modern hardware and software environments.

## 6. Theoretical Limitations and Open Questions

All optimal approximation guarantees for SignReLU are derived in the “continuum” setting and do not assert convergence of practical training algorithms, such as SGD, to the optimal regime. Whether empirical risk minimization or SGD can efficiently recover the function classes constructed in the mathematical existence proofs remains an open theoretical question [2210.10264].

SignReLU is $C^1$ everywhere but not analytic at $x=0$; potential consequences for learning or approximation of highly smooth functions—and its applicability to PDE solvers—warrant further investigation. Hybrid architectures blending SignReLU with other activations may provide routes to even greater expressivity and optimization benefits.

## 7. Applications in Diffusion Models and Structured Generative Learning

In generative modeling, notably DDPMs, the reverse process requires estimating a conditional expectation that is naturally a ratio of integrals—precisely the setting where SignReLU excels. The model
\[
f_\rho(z_t) = \frac{\int x\,q_0(x)\,q(z_t|x)\,dx}{\int q_0(x)\,q(z_t|x)\,dx}
\]
is efficiently approximated by a depth-$7$, width-$O(n+9d)$ SignReLU network, in which a first layer estimates the required kernel integrals and the division gate is implemented via a fixed (depth $6$, width $9$) subnetwork [2601.21242]. The resulting network demonstrates near-optimal $L^p$ approximation rates and enables a decomposition of excess KL risk into explicit estimation and approximation error components.

Regularization of parameter norms and architectural constraints are employed to preserve stability in tail regions where denominator functions are small but bounded away from zero. Standard backpropagation with Adam optimization is used, and the architectures do not require modification relative to those designed for ReLU, other than the choice of activation.

The results demonstrate that the two-piece structure of SignReLU activation is uniquely effective for deep learning tasks involving ratio-type functional targets, enabling both empirical and theoretical advances in sample and computational efficiency.

Source: https://www.emergentmind.com/topics/signrelu-activation-function