dynActivation: 一种可训练的激活族用于自适应非线性性
dynActivation: A Trainable Activation Family for Adaptive Nonlinearity
AI总结:
本文提出dynActivation,一种每层可训练的激活函数,通过调整参数α_i和β_i在基础非线性和线性路径间插值,实验表明其能提高训练效率并保持高性能。
摘要:
本文提出了dynActivation,一种每层可训练的激活函数,定义为f_i(x)=BaseAct(x)(α_i - β_i) + β_i x,其中α_i和β_i是轻量级学习的标量,用于在基础非线性与线性路径之间插值,而BaseAct(x)类似于任何ReLU-like函数。然后在多个视觉任务、语言建模任务和消融研究中比较静态和动态ReLU-like变体。结果表明,dynActivation变体倾向于线性化深层网络,同时保持高性能,可将训练效率提高高达+54%。在CIFAR-10上,dynActivation(Mish)在AttentionCNN上比静态Mish提高高达+14.02%,平均提高+6.00%,相对于Mish的收敛AUC减少24%。在1到75层的MNIST深度扩展研究中,dynActivation从未跌至95%以下的测试准确率(95.3%-99.3%),而ReLU在25层时跌至80%以下。在FGSM攻击下,dynActivation(Mish)的准确率下降为55.39%,而ReLU为62.79%(7.40%优势)。在语言建模中,新提出的dynActGLU变体在5620步时相对于SwiGLU的相对困惑度减少10.3%(4.047 vs. 4.514),但差距在34300步时消失。
英文摘要:
This paper proposes $\mathrm{dynActivation}$, a per-layer trainable activation defined as $f_i(x) = \mathrm{BaseAct}(x)(α_i - β_i) + β_i x$, where $α_i$ and $β_i$ are lightweight learned scalars that interpolate between the base nonlinearity and a linear path and $\mathrm{BaseAct}(x)$ resembles any ReLU-like function. The static and dynamic ReLU-like variants are then compared across multiple vision tasks, language modeling tasks, and ablation studies. The results suggest that dynActivation variants tend to linearize deep layers while maintaining high performance, which can improve training efficiency by up to $+54\%$ over ReLU. On CIFAR-10, dynActivation(Mish) improves over static Mish by up to $+14.02\%$ on AttentionCNN with an average improvment by $+6.00\%$, with a $24\%$ convergence-AUC reduction relative to Mish (2120 vs. 2785). In a 1-to-75-layer MNIST depth-scaling study, dynActivation never drops below $95\%$ test accuracy ($95.3$--$99.3\%$), while ReLU collapses below $80\%$ at 25 layers. Under FGSM at $\varepsilon{=}0.08$, dynActivation(Mish) incurs a $55.39\%$ accuracy drop versus $62.79\%$ for ReLU ($7.40\%$ advantage). Transferred to language modeling, a new proposed dynActGLU-variant achieves a $10.3\%$ relative perplexity reduction over SwiGLU at 5620 steps (4.047 vs. 4.514), though the gap vanishes at 34300 steps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。