PAU was proposed for learning flexible activation functions and is defined as a rational function.

P(x) and Q(x) are polynomials. Their coefficients (a, b) are learnable parameters, and the polynomial degrees (m, n) are hyperparameters (non-learnable parameters) (m = 5 and n = 4 in the original paper's experiments).

The polynomial degrees must be chosen appropriately, but training converges quickly and the function works well across a wide range of tasks.

  • Experimental results

Tested on a variety of networks, including VGG8, MobileNetV2, ResNet, and DenseNet, it has been shown to outperform many existing activation functions.

On a German-to-English translation task with an LSTM-based Seq2Seq model, Tanh and SELU performed best, and PAU was among the next-best activation functions.

On a speech recognition task with the Deep Speech 2 framework, it was rated one of the most suitable activation functions, together with PReLU, GELU, Swish, and Mish.

PAU(x)=P(x)Q(x)=∑j=0majxj1+∑k=1nbkxk=a0+a1x+a2x2+⋯+amxm1+b1x+b2x2+⋯+bnxn\text{PAU}(x) = \frac{P(x)}{Q(x)} = \frac{\sum_{j=0}^{m} a_j x^j}{1 + \sum_{k=1}^{n} b_k x^k} = \frac{a_0 + a_1 x + a_2 x^2 + \cdots + a_m x^m}{1 + b_1 x + b_2 x^2 + \cdots + b_n x^n}

Because the value diverges when the denominator reaches 0, the original paper's experiments use the "safe PAU", which takes the absolute value in the denominator.

PAUsafe(x)=∑j=0majxj1+∣∑k=1nbkxk∣\text{PAU}_{\text{safe}}(x) = \frac{\sum_{j=0}^{m} a_j x^j}{1 + \left|\sum_{k=1}^{n} b_k x^k\right|}

Reference: Activation Functions in Deep Learning: A Comprehensive Survey and Benchmark (2022)