Activate or Not: Learning Customized Activation

Ningning Ma, Xiangyu Zhang, Ming Liu, Jian Sun
9/10/2020
cs.CV

Official code: nmaac/acon (206 stars, MIT, last commit 2021-04-28).

Abstract

We present a simple, effective, and general activation function we term ACON which learns to activate the neurons or not. Interestingly, we find Swish, the recent popular NAS-searched activation, can be interpreted as a smooth approximation to ReLU. Intuitively, in the same way, we approximate the more general Maxout family to our novel ACON family, which remarkably improves the performance and makes Swish a special case of ACON. Next, we present meta-ACON, which explicitly learns to optimize the parameter switching between non-linear (activate) and linear (inactivate) and provides a new design space. By simply changing the activation function, we show its effectiveness on both small models and highly optimized large models (e.g. it improves the ImageNet top-1 accuracy rate by 6.7% and 1.8% on MobileNet-0.25 and ResNet-152, respectively). Moreover, our novel ACON can be naturally transferred to object detection and semantic segmentation, showing that ACON is an effective alternative in a variety of tasks. Code is available at https://github.com/nmaac/acon.

View on arXivView PDF

Code Implementations(1)

nmaac/aconOfficial100%
MIT

Official Repsoitory for "Activate or Not: Learning Customized Activation." [CVPR 2021]

20637PythonDec 3, 20205 years agoMIT

Similar Papers

Cite this paper

@article{ma2020activate,
  title  = {Activate or Not: Learning Customized Activation},
  author = {Ningning Ma and Xiangyu Zhang and Ming Liu and Jian Sun},
  year   = {2020},
  eprint = {2009.04759},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.04759}
}

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/2009.04759.svg)](https://codeofpaper.com/paper/2009.04759)

Discussion