Abstract
Activation function design is a critical yet computationally expensive component of neural architecture search. Traditional automated search methods often require thousands of full training cycles to identify high-performing candidates. This paper introduces AQuaSurF, a surrogate-based optimization framework that reduces the search cost to just tens of evaluations. By leveraging the Fisher Information Matrix (FIM) and output distributions at initialization, AQuaSurF maps activation functions into a searchable 2D manifold. Our results demonstrate that this method not only identifies optimal functions with 100x greater efficiency than evolutionary algorithms but also discovers a novel sigmoidal function, $\text{erfc}(\text{Softplus}(x))^2$, which outperforms industry standards like ReLU and Mish on modern architectures such as CoAtNet.
Introduction
Activation functions—such as ReLU, GeLU, and Swish—serve as the fundamental non-linearities that enable neural networks to learn complex patterns. Despite their importance, the design process remains a significant bottleneck. Human-led design is often constrained by the "rectifier bias"—the assumption that functions must be monotonic and non-saturating to be effective. Conversely, automated search methods, while capable of exploring broader mathematical spaces, are computationally prohibitive, frequently requiring thousands of GPU hours to evaluate a single search space.
This research addresses the need for a "shortcut" in activation function discovery. We propose a surrogate modeling approach that predicts a function's performance based on its properties at initialization, effectively bypassing the need for exhaustive training.
Methodology: The AQuaSurF Framework
The core of our approach is AQuaSurF, a method that constructs a surrogate landscape where the performance of an activation function can be predicted through its mathematical and architectural signatures.
Feature Extraction at Initialization
Instead of training a model to completion, AQuaSurF extracts two primary features at the moment of initialization:
- Fisher Information Matrix (FIM) Eigenvalues: Using the Kronecker-Factored Approximate Curvature (K-FAC), we characterize the network's learning capacity and the geometry of the loss landscape. This captures how the network structure interacts with the specific activation function.
- Output Distributions: We analyze how a candidate function transforms a standard normal distribution $N(0,1)$. This represents the expected signal propagation at the start of training.
Manifold Learning and Search
These high-dimensional features are projected into a 2D space using Uniform Manifold Approximation and Projection (UMAP). In this projected space, functions that induce similar training dynamics naturally cluster together. To find optimal functions, AQuaSurF performs an iterative search within this 2D manifold. It evaluates a small subset of functions, uses a k-Nearest Neighbors (k-NN) regression model to predict the performance of unevaluated points, and selects the most promising candidates for the next round of testing.
Data and Benchmarking
To support this research and facilitate future work in the field, we released three comprehensive benchmark datasets, collectively representing nearly 9,000 unique activation function evaluations:
- Act-Bench-CNN: 2,913 functions trained on All-CNN-C (CIFAR-10).
- Act-Bench-ResNet: 2,913 functions trained on ResNet-56 (CIFAR-10).
- Act-Bench-ViT: 2,913 functions trained on MobileViTv2 (Imagenette).
For final validation, we tested discovered functions on larger-scale tasks including CIFAR-100 and ImageNet, utilizing architectures like ResNet-50 and the hybrid convolution-attention model, CoAtNet.
Key Results
Search Efficiency
AQuaSurF demonstrates remarkable efficiency, identifying near-optimal activation functions in 10 to 100 evaluations. This is a significant improvement over previous state-of-the-art evolutionary or reinforcement learning searches, which typically require over 1,000 evaluations to achieve comparable results.
Performance Gains
The search discovered a novel sigmoidal function: $\text{erfc}(\text{Softplus}(x))^2$. On the CoAtNet architecture, this function achieved 89.07% accuracy, notably surpassing ReLU (87.72%) and Mish (87.62%). Furthermore, in ImageNet trials with ResNet-50, eight out of nine functions discovered via AQuaSurF outperformed the standard ReLU baseline.
Transferability
Functions discovered on smaller, "proxy" models (such as All-CNN) successfully transferred to larger architectures (ResNet-50) and more complex datasets (ImageNet). This suggests that the properties captured by the FIM and output distributions at initialization are fundamental indicators of a function's general utility.
Discussion: Challenging the ReLU Hegemony
For over a decade, the deep learning community has prioritized "rectifier" functions because they avoid the vanishing gradient problem associated with saturation. However, our discovery of a high-performing sigmoidal function—$\text{erfc}(\text{Softplus}(x))^2$—suggests this conventional wisdom may be incomplete. This function appears to act as a rectifier during the early stages of training but utilizes its saturating regions as the model converges, providing a unique regularization effect that benefits modern architectures.
Conclusion
AQuaSurF proves that the performance of an activation function is highly predictable at initialization. By combining FIM eigenvalues with output distribution analysis, we can navigate the vast space of potential functions with unprecedented efficiency. Future work will explore "inverse UMAP" techniques to mathematically generate new functions directly from high-performing regions of the surrogate space and investigate how these features might optimize for objectives beyond accuracy, such as hardware-specific inference speed and model robustness.
Summary updated