Why MDAC? A Multi-domain Activation Function

Zhenhua Wang, Dong Gao, Haozhe Liu, Fanglin LiuarXiv 2021

Introduction

In the realm of knowledge discovery, Named Entity Recognition (NER) serves as a critical component for extracting structured information from unstructured text. While deep learning models have revolutionized this field, their performance is often bottlenecked by the mathematical properties of standard activation functions. This paper introduces the Knowledge Discovery Activation Function (KDAC), a novel approach designed to overcome the limitations of traditional functions like ReLU, Tanh, and Sigmoid.

The "Triple Threat" of Standard Activation Functions

Most modern Deep Learning-oriented NER (DNER) models rely on a small set of activation functions. However, these functions possess inherent flaws that can hinder high-precision knowledge extraction:

  1. Gradient Vanishing: Functions like Tanh and Sigmoid saturate at extreme input values. This causes gradients to approach zero, effectively "blinding" deep layers during the learning process.
  2. The "Dead ReLU" Problem: ReLU discards all negative input values by setting them to zero. In text processing, this can lead to the omission of subtle latent semantics that are crucial for distinguishing between similar entities.
  3. Non-Differentiability: ReLU contains a non-differentiable "kink" at zero, which can introduce instability during optimization.
Figure 2: Standard activation functions like ReLU, Tanh, and Sigmoid exhibit gradient vanishing at saturation points and non-differentiability at x=0.

Introducing KDAC: A Flexible, Smooth Alternative

To address these issues, the authors propose KDAC. Unlike fixed-curve functions, KDAC is a nested aggregation function defined as:

$$KDAC(x) = P_{Max}(P_{Min}(Tanh, \beta_1 x), \beta_2 x)$$

Key innovations include:

  • Trainable Parameters: The factors $\beta_1$ and $\beta_2$ are learned during training, allowing the activation curve to adapt its shape to the specific requirements of the domain data.
  • Linear Divergence: By incorporating linear components at the ends of the function, KDAC ensures that gradients never vanish, maintaining a steady flow of information regardless of input magnitude.
  • Approximate Smoothing: Using a smoothing algorithm inspired by linear Newton interpolation, the authors eliminate the non-differentiable "fractures" found in piecewise functions, ensuring stable gradient updates.
Figure 5: The KDAC function adapts its shape based on trainable parameters, providing a smooth transition and avoiding gradient saturation compared to Tanh.

Experimental Results and Domain Robustness

The researchers evaluated KDAC across six diverse datasets, including social media (Weibo), clinical records (CCKS2019), and industrial safety reports (HAZOP). Using a BERT-BiLSTM-CNN-CRF architecture, KDAC was compared against nine other activation functions.

The results were compelling:

  • Top-Tier Performance: KDAC achieved the highest F1-score in 8 out of 12 evaluation scenarios.
  • Significant Improvements: In the Weibo dataset, KDAC outperformed ReLU by 1.41% in F1-score. In the complex HAZOP industrial dataset, it achieved a 1.21% improvement.
  • Semantic Preservation: By allowing negative outputs and maintaining gradients, KDAC proved more capable of capturing the "latent semantics" necessary for high-precision entity recognition.

Conclusion

While KDAC introduces higher theoretical computational complexity due to its nested exponential and quadratic terms, the authors argue that the trade-off is justified for DNER tasks. In knowledge discovery, where accuracy and semantic completeness are paramount, the ability of KDAC to provide stable, adaptive, and non-vanishing gradients makes it a superior choice for multi-domain applications.

Summary updated

BibTeX
@misc{wang2021why,
  author = {Zhenhua Wang and Dong Gao and Haozhe Liu and Fanglin Liu},
  title = {{Why MDAC? A Multi-domain Activation Function}},
  year = {2021},
  eprint = {2111.13858},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.13858},
}
Figure