[Paper Review] E-swish: Adjusting Activations to Different Network Depths
This paper introduces E-swish, a learnable activation function defined as $ f(x) = \beta x \cdot \text{sigmoid}(x) $, which generalizes Swish by introducing a scaling parameter $\beta$. Experiments show E-swish outperforms ReLU and Swish on CIFAR-10 and CIFAR-100, achieving 1.5% and 4.6% accuracy gains over ReLU on WRN-10-2, respectively, with optimal $\beta$ values in the range $1 \leq \beta \leq 2$.
Activation functions have a notorious impact on neural networks on both training and testing the models against the desired problem. Currently, the most used activation function is the Rectified Linear Unit (ReLU). This paper introduces a new and novel activation function, closely related with the new activation $Swish = x * sigmoid(x)$ (Ramachandran et al., 2017) which generalizes it. We call the new activation $E-swish = βx * sigmoid(x)$. We show that E-swish outperforms many other well-known activations including both ReLU and Swish. For example, using E-swish provided 1.5% and 4.6% accuracy improvements on Cifar10 and Cifar100 respectively for the WRN 10-2 when compared to ReLU and 0.35% and 0.6% respectively when compared to Swish. The code to reproduce all our experiments can be found at https://github.com/EricAlcaide/E-swish
Motivation & Objective
- To address the limitations of ReLU and Swish in deeper networks by introducing a more adaptable activation function.
- To investigate whether scaling the Swish function via a learnable parameter $\beta$ improves training dynamics and model accuracy.
- To evaluate E-swish as a drop-in replacement for ReLU in standard CNN architectures without re-tuning hyperparameters.
- To determine the optimal range of $\beta$ that prevents gradient vanishing or exploding while maximizing performance gains.
- To demonstrate consistent improvements across different network depths and architectures, especially in deeper models like WRN-16-4.
Proposed method
- Proposes E-swish as $ f(x) = \beta x \cdot \text{sigmoid}(x) $, a generalization of Swish with a learnable scaling parameter $\beta$.
- Derives the analytical gradient of E-swish as $ f'(x) = f(x) + \sigma(x)(\beta - f(x)) $, showing its dependence on $\beta$ and non-monotonic behavior.
- Employs standard training protocols (SGD, learning rate schedule) on CIFAR-10 and CIFAR-100 using WRN-10-2 and WRN-16-4 architectures.
- Uses the same hyperparameters designed for ReLU to ensure fair comparison, replacing only the activation function.
- Employs batch normalization to stabilize training and enable deeper network convergence with E-swish.
- Validates performance across multiple $\beta$ values (1.0 to 2.0) to identify optimal scaling for different architectures and datasets.
Experimental results
Research questions
- RQ1Does scaling the Swish activation with a learnable parameter $\beta$ lead to consistent performance gains over ReLU and Swish across different network depths?
- RQ2What is the optimal range of $\beta$ that maximizes model accuracy while avoiding gradient vanishing or exploding?
- RQ3Can E-swish serve as a direct drop-in replacement for ReLU without hyperparameter re-tuning and still outperform both ReLU and Swish?
- RQ4How does E-swish perform on deeper architectures like WRN-16-4 compared to ReLU and Swish on CIFAR-100?
- RQ5Does the non-monotonic nature of E-swish contribute to better gradient flow and faster convergence in deeper networks?
Key findings
- On WRN-10-2, E-swish achieved 1.5% higher test accuracy than ReLU and 0.35% higher than Swish on CIFAR-100, with $\beta = 1.5$.
- On CIFAR-100 with WRN-16-4, E-swish achieved 77.35% accuracy at $\beta = 1.25$, outperforming ReLU (75.92%) by 1.43% and Swish by 0.47%.
- The performance gain from E-swish was consistent across multiple $\beta$ values, with optimal performance observed in the range $1 \leq \beta \leq 2$.
- Higher $\beta$ values (e.g., $\beta = 2$) led to performance degradation, suggesting a trade-off between gradient magnitude and stability.
- E-swish consistently outperformed both ReLU and Swish even when hyperparameters were tuned for ReLU, indicating robustness and generalization.
- The non-monotonic nature and smooth gradient profile of E-swish were linked to improved training dynamics and better convergence in deeper networks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.