Kafnets: kernel-based non-parametric activation functions for neural networks

Simone Scardapane, Steven Van Vaerenbergh, Simone Totaro, Aurelio Uncini
7/13/2017
stat.MLcs.AIcs.LG

Official code: ispamm/kernel-activation-functions (63 stars, MIT, last commit 2019-06-14).

Abstract

Neural networks are generally built by interleaving (adaptable) linear layers with (fixed) nonlinear activation functions. To increase their flexibility, several authors have proposed methods for adapting the activation functions themselves, endowing them with varying degrees of flexibility. None of these approaches, however, have gained wide acceptance in practice, and research in this topic remains open. In this paper, we introduce a novel family of flexible activation functions that are based on an inexpensive kernel expansion at every neuron. Leveraging over several properties of kernel-based models, we propose multiple variations for designing and initializing these kernel activation functions (KAFs), including a multidimensional scheme allowing to nonlinearly combine information from different paths in the network. The resulting KAFs can approximate any mapping defined over a subset of the real line, either convex or nonconvex. Furthermore, they are smooth over their entire domain, linear in their parameters, and they can be regularized using any known scheme, including the use of $\ell_1$ penalties to enforce sparseness. To the best of our knowledge, no other known model satisfies all these properties simultaneously. In addition, we provide a relatively complete overview on alternative techniques for adapting the activation functions, which is currently lacking in the literature. A large set of experiments validates our proposal.

View on arXivView PDF

Code Implementations(1)

MIT

Several implementations of the kernel-based activation functions

6313PythonNov 20, 20177 years agoMIT

Cite this paper

@article{scardapane2017kafnets,
  title  = {Kafnets: kernel-based non-parametric activation functions for neural networks},
  author = {Simone Scardapane and Steven Van Vaerenbergh and Simone Totaro and Aurelio Uncini},
  year   = {2017},
  eprint = {1707.04035},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1707.04035}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1707.04035.svg)](https://codeofpaper.com/paper/1707.04035)

Discussion