# Geometric Monomial (GEM): a family of rational 2N-differentiable activation functions

arXiv: https://arxiv.org/abs/2604.21677 · HTML: https://mlsanity.com/paper/2604.21677/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 7 of its 8 references that are in the map.
- First posted on arXiv 23 Apr 2026.

## Builds on (most cited first, 7 of 7)

- [Deep Residual Learning for Image Recognition](https://mlsanity.com/paper/1512.03385/) (2015)
- [Gaussian Error Linear Units (GELUs)](https://mlsanity.com/paper/1606.08415/) (2016)
- [GLU Variants Improve Transformer](https://mlsanity.com/paper/2002.05202/) (2020)
- [Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs)](https://mlsanity.com/paper/1511.07289/) (2015)
- [Searching for Activation Functions](https://mlsanity.com/paper/1710.05941/) (2017)
- [Saturated Non-Monotonic Activation Functions](https://mlsanity.com/paper/2305.07537/) (2023)
- [SAU: Smooth activation function using convolution with approximate identities](https://mlsanity.com/paper/2109.13210/) (2021)

## Abstract (arXiv)

The choice of activation function plays a crucial role in the optimization and performance of deep neural networks. While the Rectified Linear Unit (ReLU) remains the dominant choice due to its simplicity and effectiveness, its lack of smoothness may hinder gradient-based optimization in deep architectures. In this work we propose a family of C2N-smooth activation functions whose gate follows a log-logistic CDF, achieving ReLU-like performance with purely rational arithmetic. We introduce three variants: GEM (the base family), E-GEM (an ε-parameterized generalization enabling arbitrary Lp-approximation of ReLU), and SE-GEM (a piecewise variant eliminating dead neurons with C2N junction smoothness). An N-ablation study establishes N=1 as optimal for standard-depth networks, reducing the GELU deficit on CIFAR-100 + ResNet-56 from 6.10% to 2.12%. The smoothness parameter N further reveals a CNN-transformer tradeoff: N=1 is preferred for deep CNNs, while N=2 is preferred for transformers. On MNIST, E-GEM ties the best baseline (99.23%). On CIFAR-10 + ResNet-56, SE-GEM (ε=10-4) surpasses GELU (92.51% vs 92.44%) -- the first GEM-family activation to outperform GELU. On CIFAR-100 + ResNet-56, E-GEM reduces the GELU deficit from 6.10% (GEM N=2) to just 0.62%. On GPT-2 (124M), GEM achieves the lowest perplexity (72.57 vs 73.76 for GELU), with GEM N=1 also beating GELU (73.32). On BERT-small, E-GEM (ε=10) achieves the best validation loss (6.656) across all activations. The ε-parameterization reveals a scale-dependent optimum: small ε (10-4--10-6) for deep CNNs and larger transformers, with the special case of small transformers (BERT-small) benefiting from large ε (ε=10) due to its limited depth and unconstrained gradients.
