TL;DR
FReLU (Flexible Rectified Linear Unit) is a simple yet powerful tweak to the classic ReLU activation function that introduces a learnable bias term. By allowing the network to "decide" how much negative information to retain, FReLU improves model expressiveness and speeds up convergence without the heavy computational cost of exponential functions used in alternatives like ELU.
What Problem Does This Paper Address?
The Rectified Linear Unit (ReLU) is the workhorse of modern deep learning, but it has two major drawbacks:
- Negative Missing: By hard-zeroing all negative inputs, ReLU discards potentially useful information and can lead to "dead neurons" that never activate.
- Zero-Center Property: ReLU outputs are always non-negative, meaning their mean is always greater than zero. This lack of "zero-centeredness" can slow down the training process.
While variants like Leaky ReLU or ELU (Exponential Linear Unit) exist to address these issues, they often come with their own baggage—either they lose the beneficial sparsity of ReLU, or they introduce expensive exponential calculations that are hard to optimize and sometimes incompatible with Batch Normalization (BN).
Methods
The authors propose FReLU, defined by a simple modification: $$frelu(x) = \max(0, x) + b$$ Where $b$ is a learnable parameter (typically one per layer).
Initially, they considered a horizontal shift as well ($relu(x+a)+b$), but realized that since activation functions usually follow a linear or convolutional layer, the horizontal shift $a$ can be absorbed into the preceding layer's bias. This leaves a clean, computationally efficient function that simply shifts the ReLU output vertically.
As shown in Figure 1, FReLU retains the flat zero-gradient region for negative inputs (maintaining sparsity) but allows the "rectified point" to move.
Datasets
The authors evaluated FReLU across several standard benchmarks:
- CIFAR-10 & CIFAR-100: Small-scale image classification.
- ImageNet: Large-scale visual recognition.
- MNIST: Used specifically for visualizing feature embeddings.
Key Insights and Ideas
- Exponential State Expansion: In a standard ReLU layer with $n$ units, each unit is either "on" or "off," leading to $2^n$ possible activation states. Because FReLU (when $b < 0$) can produce positive, negative, or zero values, it expands the state space to $3^n$. This significantly boosts the network's expressive capacity.
- Self-Normalizing Tendency: Interestingly, the authors found that during training, the learnable bias $b$ consistently converges to a negative value (often around -0.4). This shift naturally pushes the mean of the activations closer to zero, acting as a "built-in" normalization that speeds up learning.
- BN Compatibility: Unlike ELU, which often struggles when paired with Batch Normalization due to conflicting learnable parameters, FReLU is highly compatible. It isolates the learnable bias from the BN scaling factors, allowing them to work in harmony.
Figure 2 compares FReLU to other common variants, highlighting how it provides a unique balance of vertical flexibility and sparsity.
Key Results
FReLU consistently outperformed ReLU, PReLU, ELU, and SReLU across various architectures:
- Faster Convergence: On CIFAR-100 using a "SmallNet" architecture, FReLU converged significantly faster than its peers.
- Accuracy Gains: On ResNet-110 (CIFAR-10), FReLU achieved a test error of 5.71%, compared to 6.82% for the original ReLU-based model.
- Better Feature Separation: Visualization on MNIST (Figure 4) showed that FReLU produces more discriminative, tightly clustered feature embeddings compared to standard ReLU.
As seen in the training curves (Figure 3), FReLU (the purple line) consistently stays below the others, reaching lower error rates earlier in the training process.
Limitations and Future Work
While FReLU is effective, it doesn't entirely solve the "dead neuron" problem because it still has a flat region where the gradient is zero for $x \le 0$. The authors identify two main areas for future research:
- Investigating better ways to handle the dead neuron problem within the FReLU framework.
- Designing even more efficient activation functions that can leverage negative values more effectively without increasing computational overhead.
Summary updated