Hysteresis Activation Function for Efficient Inference

Moshe Kimhi, Idan Kashani, Avi Mendelson, Chaim Baskin
11/15/2024
cs.LGcs.CLcs.NE

No official code found. Best implementation: idankdev/helu (2 stars, last commit 2025-03-03).

Abstract

The widely used ReLU is favored for its hardware efficiency, {as the implementation at inference is a one bit sign case,} yet suffers from issues such as the ``dying ReLU'' problem, where during training, neurons fail to activate and constantly remain at zero, as highlighted by Lu et al. Traditional approaches to mitigate this issue often introduce more complex and less hardware-friendly activation functions. In this work, we propose a Hysteresis Rectified Linear Unit (HeLU), an efficient activation function designed to address the ``dying ReLU'' problem with minimal complexity. Unlike traditional activation functions with fixed thresholds for training and inference, HeLU employs a variable threshold that refines the backpropagation. This refined mechanism allows simpler activation functions to achieve competitive performance comparable to their more complex counterparts without introducing unnecessary complexity or requiring inductive biases. Empirical evaluations demonstrate that HeLU enhances model generalization across diverse datasets, offering a promising solution for efficient and effective inference suitable for a wide range of neural network architectures.

View on arXivView PDF

Code Implementations(1)

idankdev/heluCommunity100%

The implementation of the Hysteresis Rectified Linear Unit (HeLU) activation function, presented in our paper "Hysteresis Activation Function for Efficient Inference" (ENSLP-IV - NeurIPS 2024)

20PythonOct 13, 20241 years ago

Similar Papers

Cite this paper

@article{kimhi2024hysteresis,
  title  = {Hysteresis Activation Function for Efficient Inference},
  author = {Moshe Kimhi and Idan Kashani and Avi Mendelson and Chaim Baskin},
  year   = {2024},
  eprint = {2411.10573},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.10573v3}
}

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

Discussion