- The paper introduces Brownian ReLU (Br-ReLU), a stochastic activation function that improves gradient flow and learning stability in LSTM networks, outperforming traditional activations in volatile financial time-series
- Br-ReLU replaces standard activations in the LSTM's cell state and output gate, utilizing a Monte Carlo average of reflected Brownian motion to handle negative inputs, with a tunable level of randomness.
- The function demonstrates superior performance on stock price forecasting tasks. While the highest accuracy is not uniformly decisive, Br-ReLU's ability to achieve a notable accuracy-sensitivity trade-off is promising within an imbalanced classification setting.
Motivation and contribution
This paper proposes Brownian ReLU (Br-ReLU), a stochastic activation function for Long Short-Term Memory (LSTM) networks, targeted at noisy, non-stationary financial time series. The authors motivate the work by the known pathologies of rectifier activations—non-differentiability at zero, unbounded outputs, and the "dying ReLU" problem—and argue that deterministic leaky variants (LeakyReLU, PReLU) provide only partial remedies. Their hypothesis is that injecting Brownian-motion-driven randomness into the negative-input regime improves gradient flow and learning stability in LSTM gating. The proposal is evaluated on three forecasting tasks (Apple stock, Ghana Commercial Bank (GCB) stock, and the S&P 500) and one imbalanced classification task (LendingClub loan status).
Function definition and training
For positive inputs Br-ReLU is the identity; for x≤0 it outputs a scaled Monte Carlo average of reflected Brownian motion samples:
f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤0
The reflection/symmetry principle of Brownian motion extends its behavior to negative pre-activations. Two hyperparameters govern behavior: the learnable slope α, initialized and updated as in PReLU, and the number of Monte Carlo paths M. As M grows, the mean path converges by the law of large numbers to a smooth deterministic response, so the function interpolates between fully stochastic (M=1) and near-deterministic regimes. The authors derive the gradient estimator with respect to α as ∂LB/∂α=−i∈B∑δi1xi≤0Bˉ(∣xi∣) and supply an explicit minibatch training algorithm. Note that the noise enters only through the forward sample Bˉ; the paper treats it as fixed within a step rather than applying a reparameterization or re-sampling scheme during backpropagation of gradients to earlier layers.
Br-ReLU replaces the candidate cell state activation, C~t=Br-ReLU(WxcXt+Whcht−1+bc), and the output nonlinearity, f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤00, while sigmoid gates are left unchanged.
Forecasting results
A sensitivity analysis over f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤01 shows dataset-dependent behavior. GCB is essentially insensitive to f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤02 (f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤03 ≈ 0.987 throughout); Apple shows moderate variation (f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤04 from 0.9036 to 0.9381); S&P 500 peaks at f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤05 (f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤06 = 0.9896, MSE = 0.000232) but degrades at f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤07 (f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤08 = 0.9736). The authors select f(x)={xx>0 −α⋅M1∑k=1MB(k)(∣x∣),B(k)(∣x∣)∼N(0,∣x∣)x≤09 as the operating point, though this choice appears empirical rather than derived from any variance–bias analysis.
The headline comparisons against standard activations are strong:
| Dataset |
Activation |
MSE |
Test α0 |
| Apple |
Br-ReLU |
0.002035 |
0.9381 |
| Apple |
ReLU |
0.005931 |
0.3164 |
| Apple |
LeakyReLU |
0.160918 |
— |
| GCB |
Br-ReLU |
0.000275 |
0.9869 |
| S&P 500 |
Br-ReLU |
0.000242 |
0.9891 |
| S&P 500 |
Tanh |
0.000255 |
0.9841 |
On Apple, Br-ReLU achieves the lowest MSE and highest test α1, while ReLU generalizes poorly (test α2 = 0.3164 despite train α3 = 0.9881) and LeakyReLU performs worst. On GCB, all activations perform similarly (test α4 between 0.9815 and 0.9869), so Br-ReLU's advantage there is marginal—the authors acknowledge the dataset's inherent stability limits discriminative power. On S&P 500, Tanh is competitive (MSE 0.000255 vs. 0.000242), indicating the stochastic component is not uniformly decisive on high-volatility data either. Visual inspection confirms close tracking of actual price trajectories across all three series.
Classification results
On the imbalanced LendingClub task, results are considerably weaker and more nuanced. ROC–AUC values cluster between roughly 0.50 and 0.53 across all activations—marginally above random guessing. Among Br-ReLU variants, higher accuracy coincides with collapsed minority-class recall: α5 yields the highest accuracy (0.7802) but recall of only 0.0272, whereas α6 gives the best balance within the family (recall 0.2446, F1 0.2290). GELU achieves the highest recall among standard activations (0.2609). The paper correctly emphasizes that in credit-risk settings, recall and F1 matter more than accuracy, and concedes that no activation produces a substantial AUC improvement—the practical claim is limited to a favorable accuracy–sensitivity trade-off for well-tuned Br-ReLU configurations.
Limitations and open questions
Several caveats bear directly on the reported gains. First, the evaluation lacks statistical significance testing, confidence intervals, or multiple seeds, so the differences between Br-ReLU and competitive baselines such as Tanh or PReLU cannot be assessed rigorously. Second, the classification results hover at chance-level ROC–AUC, which raises the question of whether the activation choice—or the overall model capacity and class-imbalance handling—is the binding constraint. Third, the computational overhead of drawing α7 Gaussian samples per negative pre-activation per step is not quantified, nor is the interaction between stochastic forward passes and gradient estimation for upstream weights analyzed theoretically. Finally, the sensitivity of results to α8 on high-variance datasets (S&P 500) suggests a principled selection criterion for α9 remains open, as does evaluation beyond finance on tasks where stochasticity is not naturally motivated.
Conclusion
The paper introduces Br-ReLU, a Monte Carlo–based stochastic variant of ReLU applied to LSTM cell-state and hidden-state nonlinearities, with a learnable negative slope. Empirically, it attains the lowest MSE and highest test M0 on three stock-price forecasting benchmarks, most notably test M1 of 0.9381 on Apple where standard ReLU collapses to 0.3164, while offering only marginal gains on stable data and no meaningful ROC–AUC improvement on imbalanced classification. The evidence supports Br-ReLU as a viable alternative for volatile time-series regression, contingent on replication with uncertainty quantification and cost accounting for the Monte Carlo sampling it requires.