TL;DR
This paper introduces PANGAEA, an automated method for discovering novel, high-performing activation functions for deep neural networks. By combining evolutionary search for function structure and gradient descent for parameter tuning, PANGAEA consistently outperforms standard activation functions like ReLU, even discovering specialized functions tailored to specific network architectures.
What Problem Does This Paper Address?
The choice of activation function in deep learning networks significantly impacts performance, yet the widely adopted Rectified Linear Unit (ReLU) is often suboptimal. While many novel activation functions have been proposed, their benefits are often inconsistent across tasks and architectures, making manual selection a difficult and empirical process. This paper addresses the challenge of automatically discovering activation functions that are not only effective but also reliably improve performance across diverse deep learning models and tasks.
Methods
PANGAEA employs a hybrid approach:
- Evolutionary Search: Genetic programming-inspired evolutionary algorithms are used to discover the general functional form of activation functions. These functions are represented as computation graphs, allowing for a flexible and expressive search space that can generate complex forms unlikely to be conceived by humans. Mutations like insertion, removal, and change of operators, along with a "regenerate" mutation for broader exploration, are used to evolve new function structures.
- Gradient Descent Parameterization: Once a functional form is discovered, PANGAEA parameterizes it with learnable weights. These parameters are updated via gradient descent during the network's training process. This allows the activation function to adapt and fine-tune its behavior over time and even differently across various parts of the network (per-channel or per-neuron).
This combination allows PANGAEA to explore a vast space of potential activation functions and then optimize them for specific network architectures and training dynamics.
Datasets
The primary dataset used for experiments is CIFAR-100. The authors also mention using CIFAR-10 for a specific architecture (All-CNN-C).
Key Insights and Ideas
- Specialization is Key: The most significant gains come from activation functions specifically evolved for a particular network architecture, rather than general-purpose functions. This suggests that network structure plays a crucial role in determining optimal activation function properties.
- Evolutionary Search + Gradient Descent is Powerful: Combining the broad exploration of evolutionary algorithms with the fine-tuning capabilities of gradient descent is more effective than either method alone for discovering activation functions.
- Activation Functions Adapt Over Time and Space: The learned parameters allow activation functions to change their behavior during training (over time) and to be different in different layers or channels of the network (over space), enabling a more nuanced adaptation to the learning process.
- Search Space Matters: The design of the search space, allowing for arbitrary computation graphs, is as important as the search algorithm itself for discovering novel and effective functions.
Key Results
- PANGAEA consistently discovered activation functions that significantly outperformed ReLU and other baseline functions across multiple architectures (WRN-10-4, ResNet-v1-56, ResNet-v2-56) on the CIFAR-100 dataset.
- Specialized activation functions discovered by PANGAEA achieved the highest accuracies for each respective architecture. For example, on ResNet-v2-56, a specialized function achieved 75.61% accuracy, compared to ReLU's 74.39%.
- The discovered functions also transferred well to larger network variants (e.g., WRN-16-8, ResNet-v1-110), demonstrating their robustness.
- PANGAEA also showed significant improvements on a different architecture (All-CNN-C) and dataset (CIFAR-10), achieving 92.77% accuracy compared to ReLU's 88.47%.
- The learned parameters were crucial for performance; removing them led to significant accuracy drops.
Limitations and Future Work
- Computational Cost: While PANGAEA is efficient in finding good functions early, achieving state-of-the-art performance can still require significant computational resources.
- Parameter Setting: Determining the optimal parameterization strategy (per-layer, per-channel, or per-neuron) for a given architecture and function remains an open research question. The paper suggests that per-neuron parameters can be beneficial but harder to discover.
- Joint Optimization: The authors propose jointly optimizing the activation function, network architecture, and training setup as a promising future direction. This could lead to even greater performance gains by exploiting interactions between these components.
- Multi-Objective Optimization: Future work could explore discovering activation functions that optimize for multiple objectives, such as accuracy, computational efficiency, and adversarial robustness.
Summary updated