arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.08567cs.CVcs.LG
收藏

自适应参数化激活:跨任务统一并泛化激活函数

Adaptive Parametric Activation: Unifying and Generalising Activation Functions Across Tasks

Huawei Noah’s Ark Lab(华为诺亚实验室);Department of Computing, Imperial College London(帝国理工学院计算机系);Department of Computer Science, University of Liverpool(利物浦大学计算机科学系);Department of Engineering, King’s College London(伦敦国王学院工程系)

Konstantinos Panagiotis Alexandridis, Jiankang Deng, Anh Nguyen, Shan Luo

AI总结:

针对激活函数难以适配不同任务尤其是不平衡分类任务的问题,提出自适应参数化激活APA,统一多数常用激活函数,在多类任务的多个基准上实现性能提升。

摘要:

激活函数在模型优化中起着至关重要的作用,但最优选择仍不明确。例如,Sigmoid激活是平衡分类任务中的事实标准激活函数,但在不平衡分类任务中,由于其偏向高频类别,被证明并不适用。本研究通过对平衡与不平衡网络的分类层和中间层开展全面统计分析,深入探究这一现象,实证表明使激活函数与数据分布对齐,可同时提升平衡与不平衡任务的性能。为此,我们提出自适应参数化激活(Adaptive Parametric Activation,APA)函数,这是一种新颖通用的激活函数,可通过单一公式统一绝大多数常用激活函数。APA可应用于中间层和注意力层,在ImageNet-LT、iNaturalist2018、Places-LT、CIFAR100-LT和LVIS等多个不平衡基准上显著优于当前最优方法。此外,我们将APA扩展到分类、检测、视觉指令跟随、图像生成和下一文本token预测等大量其他任务的基准中,APA可在多种模型架构的多个基准上提升性能,代码可在https://github.com/kostas1515/AGLU获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑