Mish: A Self Regularized Non-Monotonic Activation Function

Diganta Misra
8/23/2019
769 citations
cs.LGcs.CVcs.NE

Official code: digantamisra98/Mish (1,301 stars, Jupyter Notebook, MIT, last commit 2026-04-28).

Abstract

We propose $\textit{Mish}$, a novel self-regularized non-monotonic activation function which can be mathematically defined as: $f(x)=x\tanh(softplus(x))$. As activation functions play a crucial role in the performance and training dynamics in neural networks, we validated experimentally on several well-known benchmarks against the best combinations of architectures and activation functions.

Show full abstract

We also observe that data augmentation techniques have a favorable effect on benchmarks like ImageNet-1k and MS-COCO across multiple architectures. For example, Mish outperformed Leaky ReLU on YOLOv4 with a CSP-DarkNet-53 backbone on average precision ($AP_{50}^{val}$) by 2.1$\%$ in MS-COCO object detection and ReLU on ResNet-50 on ImageNet-1k in Top-1 accuracy by $\approx$1$\%$ while keeping all other network parameters and hyperparameters constant. Furthermore, we explore the mathematical formulation of Mish in relation with the Swish family of functions and propose an intuitive understanding on how the first derivative behavior may be acting as a regularizer helping the optimization of deep neural networks. Code is publicly available at https://github.com/digantamisra98/Mish.

View on arXivView PDF

Code Implementations(1)

MIT

Official Repository for "Mish: A Self Regularized Non-Monotonic Neural Activation Function" [BMVC 2020]

1,301129Jupyter Notebook, PythonMay 10, 20197 months agoMIT
activation-functionsbmvcbmvc20computer-visiondeep-learning+4 more

Similar Papers

Cite this paper

@article{misra2019mish,
  title  = {Mish: A Self Regularized Non-Monotonic Activation Function},
  author = {Diganta Misra},
  year   = {2019},
  eprint = {1908.08681},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1908.08681}
}

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

Discussion