NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Entropy-based Activation Function Optimization: A Method on Searching Better Activation Functions

Haoyuan Sun, Zihao Wu, Bo Xia, Pu Chang, Zibin Dong, Yifu Yuan, Yongzhe Chang, Xueqian Wang

Introduction

Activation functions (AFs) are the essential "non-linear sauce" that allows neural networks to learn complex patterns. Despite their critical role, the field has largely relied on empirical discovery—functions like ReLU, GELU, or SiLU are ubiquitous because they perform well in experiments, not necessarily because mathematical proofs guarantee their optimality.

This research shifts activation function design from empirical trial-and-error to a rigorous information-theoretic framework. The authors address three fundamental questions: Is there a single "best" activation function? If not, can we create a systematic methodology to find "better" ones? And how does this methodology work in practice? By defining the "worst" possible activation function and using entropy functionals to derive systematic improvements, the authors introduce CRReLU—a novel activation function that consistently outperforms standard benchmarks in both computer vision and large language model (LLM) tasks.

Theoretical Framework: An Information-Theoretic Lens

The researchers approach activation functions through the lens of Information Entropy. A highly effective activation function should minimize the entropy of the feature distribution, which corresponds to a lower Bayesian error rate and better class separation.

Defining the "Worst" Case

Using the Euler-Lagrange equation, the authors theoretically prove the existence of the Worst Activation Function with Boundary Conditions (WAFBC). Interestingly, this "worst" function takes the form of a Cumulative Distribution Function (CDF). This provides a theoretical explanation for why bounded functions like Sigmoid often struggle in deep networks compared to unbounded ones like ReLU.

Entropy-based Activation Function Optimization (EAFO)

To move beyond empirical guessing, the authors propose the Entropy-based Activation Function Optimization (EAFO) methodology. Instead of searching blindly, EAFO utilizes a Taylor expansion of the entropy functional to identify a "correction term" ($\eta(x)$). By adding this specific term to an existing baseline function, the methodology mathematically guarantees a reduction in information entropy.

Deriving CRReLU

To put EAFO into practice, the authors applied it to the ubiquitous ReLU. Assuming a standard Gaussian data distribution—a common characteristic of deep network layers—they derived the Correction Regularized ReLU (CRReLU):

$$f(x) = \max(0, x) + \epsilon x e^{-x^2/2}$$

Here, $\epsilon$ is a learnable parameter that allows the network to self-optimize its non-linearity dynamically during training. Because CRReLU only adds one learnable parameter ($\epsilon$) per layer, the increase in total model parameters is virtually zero (e.g., adding just 12 parameters to a multi-million parameter Vision Transformer).

Empirical Validation and Results

The authors validated CRReLU across several domains, including computer vision (CIFAR-10, CIFAR-100, ImageNet-1K, EuroSAT) and LLM fine-tuning (Stanford Human Preferences and Anthropic HH datasets using GPT-2 with Direct Preference Optimization).

Key Performance Highlights: * Vision Transformers: On CIFAR-10, a ViT-Tiny using CRReLU achieved 80.7% top-1 accuracy, significantly outperforming GELU (70.4%) and PReLU (78.0%). On ImageNet-1K, CRReLU outperformed GELU on ViT-Tiny by 3.6% (57.5% vs 53.9%). * LLM Fine-tuning: In Direct Preference Optimization (DPO) tasks, CRReLU consistently achieved higher reward margins and lower evaluation loss compared to GELU, regardless of the penalty coefficient ($\beta$) used. * Stability: Lipschitz continuity analysis demonstrated that CRReLU remains stable during training, provided $\epsilon$ is initialized within a recommended range (roughly -0.188 to 0.084).

Key Insights

  • No Universal "Best" Function: The authors conclude that there is no single optimal activation function. Performance is intrinsically tied to the underlying data distribution, validating the search for "better," context-aware functions rather than a universal silver bullet.
  • Reversing the Entropy Trend: In standard GELU-based networks, entropy tends to increase as data moves through the layers. CRReLU reverses this, showing a decreasing entropy trend in later layers, suggesting it preserves more discriminative information for final classification.
  • Balancing Sparsity and Diversity: CRReLU converges to zero as $x$ approaches negative infinity. This maintains the "sparsity" benefits of ReLU (allowing for dead neurons) while enabling gradient flow in the small negative region, effectively mitigating the "dying ReLU" problem.

Limitations and Future Directions

While EAFO presents a significant theoretical leap, it has current constraints. The framework currently requires the baseline activation function to be invertible; future work suggests using Lebesgue integrals to generalize the method to non-invertible functions. Additionally, while dynamic optimization of the activation function during every training step is theoretically possible, the computational complexity is currently prohibitive for massive models. Finally, the derivation of CRReLU assumes a Gaussian data distribution, and exploring performance under a broader range of distributions remains a necessary next step.

Summary updated

BibTeX
@inproceedings{sun2025entropy,
  author = {Haoyuan Sun and Zihao Wu and Bo Xia and Pu Chang and Zibin Dong and Yifu Yuan and Yongzhe Chang and Xueqian Wang},
  title = {{Entropy-based Activation Function Optimization: A Method on Searching Better Activation Functions}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=7TZYM6Hm9p},
}
Figure