TL;DR
Activation functions in deep learning have historically been designed through trial and error rather than formal theory. By modeling how activation functions alter information entropy, this paper proves that while an analytical "worst" activation function exists, there is no single theoretical "best"—only better ones. Using the calculus of variations, the authors introduce a principled optimization framework (EAFO) and derive CRReLU (Correction Regularized ReLU), an improved activation function that consistently outperforms standard rectifiers and GELU across vision transformers and language model fine-tuning.
What Problem Does This Paper Address?
Nonlinear activation functions (like ReLU, GELU, and Swish) are foundational to neural network expressivity. Yet, the search for new ones has largely relied on empirical intuition and architecture search benchmarks rather than mathematical principles. Researchers rarely have formal tools to explain why an activation function performs better or how to systematically derive a superior alternative.
The authors tackle this gap from an information-theoretic angle: Can we mathematically formalize the quality of an activation function and derive principled corrections that systematically improve network representations?
Methods
The paper connects classification error to information entropy through Bayesian error rate—lower classification uncertainty corresponds to lower entropy in the transformed feature distribution.
-
Variational Formulation of Activation Entropy: Treating the data distribution passing through an invertible activation function $f$ (with inverse $y(x)$) as a transformation $q(x) = p(y(x))y'(x)$, the resulting entropy is represented as a functional: $$H(y(x)) = \int G(y'(x), y(x)) \, dx$$
-
The "Worst" Function (WAFBC): Using the Euler-Lagrange equation, the authors solve for extrema of this functional. Under standard boundary conditions, the functional exhibits a global maximum (the Worst Activation Function with Boundary Conditions, which structurally resembles cumulative distribution functions like Sigmoid and Tanh), but no global minimum. Hence, there is no single "optimal" activation function—entropy can always be reduced further.
-
Entropy-based Activation Function Optimization (EAFO): By applying a first-order perturbation in the direction that decreases entropy, the framework yields an analytical correction term $\eta(x)$ for any existing baseline function.
-
Derivation of CRReLU: Assuming network representations roughly follow a Gaussian distribution (via the Central Limit Theorem), the authors apply EAFO to standard ReLU ($y(x) = x$ for $x \ge 0$). Inverting the perturbed function and adding a learnable scalar weight $\varepsilon$ (initialized to $0.01$) yields Correction Regularized ReLU (CRReLU): $$f(x) = \max(0, x) + \varepsilon x e^{-\frac{x^2}{2}}$$
CRReLU provides non-zero gradient flow for negative inputs (mitigating the "dying ReLU" problem) while smoothly decaying to zero as $x \to -\infty$, preserving activation sparsity.
Datasets
- Image Classification: Evaluated on standard vision benchmarks: CIFAR-10, CIFAR-100, and ImageNet-1K.
- LLM Alignment / Fine-Tuning: Human preference datasets: Stanford Human Preferences (SHP) and Anthropic’s Helpful and Harmless (HH) dataset.
- No new datasets or benchmarks were created.
Key Insights and Ideas
- Why bounded activations lag behind: The analytical global maximum of the entropy functional matches bounded S-curves (Sigmoid/Tanh). This theoretically explains why bounded, saturating functions typically underperform unbounded rectifiers like ReLU.
- No global optimum: Because the entropy functional lacks a global minimum, network designers should not expect to find an absolute "silver bullet" activation function, but rather focus on iterative, step-by-step improvements from existing strong baselines.
- Cheap parameterization: CRReLU introduces only a single scalar parameter ($\varepsilon$) per module, adding negligible parameter overhead (e.g., +12 parameters across an entire ViT model).
Key Results
- Vision Transformers on CIFAR: Across ViT-Tiny, DeiT-Tiny, and TNT-Small architectures trained for 100 epochs, CRReLU outperformed baselines (GELU, ELU, PReLU, CELU, SiLU, and Mish). On CIFAR-10, CRReLU achieved 80.2% accuracy on ViT-Tiny (vs. 70.6% for GELU and 78.6% for PReLU). On CIFAR-100, CRReLU reached 45.9% on ViT-Tiny (vs. 32.2% for GELU and 42.1% for PReLU).
- ImageNet-1K: On ViT-Tiny, CRReLU attained 57.9% top-1 accuracy (vs. 54.2% for GELU). On DeiT-Tiny, GELU marginally led by 0.4% (61.9% vs. 61.5%), which the authors attribute to distillation bias inherited from a teacher network pre-trained with GELU.
- LLM Direct Preference Optimization (DPO): Fine-tuning GPT-2 (137M) across multiple KL penalty weights ($\beta \in \{0.1, 1, 2, 5\}$), CRReLU consistently beat GELU in evaluation accuracy (e.g., 56.35% vs. 55.66% at $\beta=5$), evaluation margin reward (1.846 vs. 1.651), and evaluation loss (3.268 vs. 3.305).
Limitations and Future Work
- Strict Invertibility Requirement: The EAFO mathematical framework requires the activation function to possess an inverse. Applying it to non-invertible rectifiers like ReLU required piecewise treatment and heuristic approximations.
- Static vs. Dynamic Optimization: While EAFO theoretically permits dynamic, real-time optimization of activation functions during training, the authors note this currently leads to computational complexity bottlenecks in large networks.
- Gaussian Distribution Assumption: Deriving the closed-form CRReLU correction relies on assuming Gaussian-distributed latent features, which may not hold uniformly across deep architectures or modalities.
- Scale of Evaluation: Empirical tests were restricted to smaller models (ViT-Tiny, DeiT-Tiny, and GPT-2 137M); scaling up to billion-parameter architectures remains to be verified.
Summary updated