Saved in:
Bibliographic Details
Main Authors: Alexandridis, Konstantinos Panagiotis, Deng, Jiankang, Nguyen, Anh, Luo, Shan
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2407.08567
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908651617255424
author Alexandridis, Konstantinos Panagiotis
Deng, Jiankang
Nguyen, Anh
Luo, Shan
author_facet Alexandridis, Konstantinos Panagiotis
Deng, Jiankang
Nguyen, Anh
Luo, Shan
contents The activation function plays a crucial role in model optimisation, yet the optimal choice remains unclear. For example, the Sigmoid activation is the de-facto activation in balanced classification tasks, however, in imbalanced classification, it proves inappropriate due to bias towards frequent classes. In this work, we delve deeper in this phenomenon by performing a comprehensive statistical analysis in the classification and intermediate layers of both balanced and imbalanced networks and we empirically show that aligning the activation function with the data distribution, enhances the performance in both balanced and imbalanced tasks. To this end, we propose the Adaptive Parametric Activation (APA) function, a novel and versatile activation function that unifies most common activation functions under a single formula. APA can be applied in both intermediate layers and attention layers, significantly outperforming the state-of-the-art on several imbalanced benchmarks such as ImageNet-LT, iNaturalist2018, Places-LT, CIFAR100-LT and LVIS. Also, we extend APA to a plethora of other tasks such as classification, detection, visual instruction following tasks, image generation and next-text-token prediction benchmarks. APA increases the performance in multiple benchmarks across various model architectures. The code is available at https://github.com/kostas1515/AGLU.
format Preprint
id arxiv_https___arxiv_org_abs_2407_08567
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Adaptive Parametric Activation: Unifying and Generalising Activation Functions Across Tasks
Alexandridis, Konstantinos Panagiotis
Deng, Jiankang
Nguyen, Anh
Luo, Shan
Computer Vision and Pattern Recognition
Machine Learning
The activation function plays a crucial role in model optimisation, yet the optimal choice remains unclear. For example, the Sigmoid activation is the de-facto activation in balanced classification tasks, however, in imbalanced classification, it proves inappropriate due to bias towards frequent classes. In this work, we delve deeper in this phenomenon by performing a comprehensive statistical analysis in the classification and intermediate layers of both balanced and imbalanced networks and we empirically show that aligning the activation function with the data distribution, enhances the performance in both balanced and imbalanced tasks. To this end, we propose the Adaptive Parametric Activation (APA) function, a novel and versatile activation function that unifies most common activation functions under a single formula. APA can be applied in both intermediate layers and attention layers, significantly outperforming the state-of-the-art on several imbalanced benchmarks such as ImageNet-LT, iNaturalist2018, Places-LT, CIFAR100-LT and LVIS. Also, we extend APA to a plethora of other tasks such as classification, detection, visual instruction following tasks, image generation and next-text-token prediction benchmarks. APA increases the performance in multiple benchmarks across various model architectures. The code is available at https://github.com/kostas1515/AGLU.
title Adaptive Parametric Activation: Unifying and Generalising Activation Functions Across Tasks
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2407.08567