TL;DR
Neural networks often suffer from "loss of plasticity" in continual learning scenarios, progressively losing their ability to adapt to new data. This paper demonstrates that simply changing the activation function—specifically utilizing designs with a moderate negative slope and a smooth transition, like the newly proposed Smooth-Leaky—is a highly effective, lightweight, and architecture-agnostic way to keep networks adaptable over time.
What Problem Does This Paper Address?
In standard machine learning (where data is shuffled and static), the choice of activation function (ReLU, Swish, GELU) often becomes a minor detail once model size and learning rates are tuned. However, in continual learning (CL) and reinforcement learning (RL), the data distribution constantly shifts.
Under these non-stationary conditions, networks suffer from two distinct problems: catastrophic forgetting (losing old knowledge) and loss of plasticity (losing the ability to learn new knowledge). Loss of plasticity often manifests as "dead units" (neurons that stop firing and receiving gradients) or uncontrolled parameter growth. While researchers have proposed complex architectural changes or regularization schemes to fix this, the authors of this paper ask a simpler question: Can we mitigate plasticity loss just by designing a better activation function?
Methods
The authors conduct a property-level analysis of how activation shape affects a network's ability to keep learning. They benchmark standard activations and introduce a novel "stress protocol"—artificially shocking pre-activations by multiplying them by extreme factors (e.g., 2.0 or 0.5) during training to see how quickly different activation families "desaturate" and reopen gradient flow.
Based on their findings, they design two new drop-in activation functions:
- Smooth-Leaky: Combines a strict non-zero derivative floor (like Leaky-ReLU) with a smooth ($C^1$) transition near zero.
- Randomized Smooth-Leaky: Similar to the above, but the negative slope is randomly sampled from a uniform distribution during training to encourage robustness.
Datasets
The paper evaluates these activations across two distinct non-stationary settings:
- Supervised Continual Learning: Permuted MNIST, Random Label MNIST, Random Label CIFAR, CIFAR 5+1 (a benchmark alternating between hard 5-class tasks and easy 1-class tasks), and Continual ImageNet.
- Continual Reinforcement Learning: A sequence of MuJoCo locomotion environments (HalfCheetah $\to$ Hopper $\to$ Walker2d $\to$ Ant) trained cyclically using a PPO agent.
Key Insights and Ideas
- The Negative Slope "Goldilocks Zone": The authors found that a negative slope between roughly 0.6 and 0.9 is ideal for sustaining plasticity. If the slope is too flat (like ReLU), the network suffers from gradient starvation and dead units. If it's too steep (approaching 1.0), the loss landscape becomes stiff, leading to optimization instability.
- Derivative Floors are Crucial: Activations with a strict, non-zero derivative floor on the negative side (e.g., Leaky-ReLU) recover from data shocks much faster and more reliably than zero-floor functions (ReLU) or two-sided saturating functions (Sigmoid/Tanh).
- Smoothness is a Tie-Breaker: While smooth activations (like Swish or GELU) are popular, they still fail if they lack a strict negative floor. Smoothness helps optimization, but a strict floor is what actually guarantees recovery from saturation.
- Unconstrained Adaptivity Fails: You might think a learnable slope (like PReLU) would naturally find the Goldilocks zone. Surprisingly, it doesn't. Without constraints, adaptive slopes tend to drift out of the optimal band over time, proving that networks need structural guardrails to maintain plasticity.
Key Results
- Supervised CL: The proposed Rand. Smooth-Leaky and Smooth-Leaky consistently dominated the benchmarks. On the challenging CIFAR 5+1 task, standard ReLU collapsed to 4.76% accuracy, while Rand. Smooth-Leaky maintained 57.01%.
- Continual RL: Rand. Smooth-Leaky achieved the highest overall Plasticity Score (0.385) across the MuJoCo suite, significantly outperforming standard RL choices like ReLU (0.159) and Swish (0.313).
- Stress Test Recovery: Under heavy scaling shocks, zero-floor activations (ReLU) exhibited high non-recovery rates. In contrast, non-zero floor activations recovered reliably, with failure rates under 5%.
Limitations and Future Work
- Optimizer Dependency: The experiments were fixed to the Adam optimizer. Because Adam is known to exacerbate plasticity loss, it served as a good stress test, but results might differ with SGD or RMSProp.
- Hyperparameter Tuning: The new Smooth-Leaky variants introduce extra shape-controlling parameters that require tuning, adding slight computational overhead during the setup phase.
- RL Stability Trade-offs: While Rand. Smooth-Leaky showed the best plasticity in RL, its unbounded nature caused stability issues (physics explosions) in the highly volatile Humanoid environment, where bounded functions like Sigmoid survived.
- Future Work: The authors plan to explore automated, per-neuron self-tuning that stays strictly within the Goldilocks zone, and to test how these activation designs interact with other continual learning interventions like experience replay and regularization.
Summary updated