Skip to main content
QUICK REVIEW

[论文解读] λ-GELU: Learning Gating Hardness for Controlled ReLU-ization in Deep Networks

Cristian Pérez-Corral, Alberto Fernández-Hernández|arXiv (Cornell University)|Mar 23, 2026
Advanced Neural Network ApplicationsComputer Science被引用 0
一句话总结

本文提出了一个带有硬度参数的 GELU,通过受约束的再参数化实现逐层门控的尖锐度学习,并提出一种确定性退火过程,在训练后用 ReLU 替换 λ-GELU,以适用于以 ReLU 为中心的下游管道。

ABSTRACT

Gaussian Error Linear Unit (GELU) is a widely used smooth alternative to Rectifier Linear Unit (ReLU), yet many deployment, compression, and analysis toolchains are most naturally expressed for piecewise-linear (ReLU-type) networks. We study a hardness-parameterized formulation of GELU, f(x;λ)=xΦ(λ x), where Φ is the Gaussian CDF and λ \in [1, infty) controls gate sharpness, with the goal of turning smooth gated training into a controlled path toward ReLU-compatible models. Learning λ is non-trivial: naive updates yield unstable dynamics and effective gradient attenuation, so we introduce a constrained reparameterization and an optimizer-aware update scheme. Empirically, across a diverse set of model--dataset pairs spanning MLPs, CNNs, and Transformers, we observe structured layerwise hardness profiles and assess their robustness under different initializations. We further study a deterministic ReLU-ization strategy in which the learned gates are progressively hardened toward a principled target, enabling a post-training substitution of λ-GELU by ReLU with reduced disruption. Overall, λ-GELU provides a minimal and interpretable knob to profile and control gating hardness, bridging smooth training with ReLU-centric downstream pipelines.

研究动机与目标

  • 在需要将平滑门控激活与以 ReLU 为中心的部署工具(压缩、可解释性、验证)连接起来方面提供动机。
  • 引入带有硬度参数的 GELU,并研究在训练过程中的逐层门控行为。
  • 开发一个稳定的优化方案,以在网络权重一起更新时联合学习硬度参数。
  • 提出一个确定性的硬化过程,以实现训练后对 ReLU 的替代,同时使性能损失最小化。
  • 在不同架构和数据集上评估硬度动态及 ReLU 替换的有效性。

提出的方法

  • 将 λ-GELU 定义为 f(x; λ) = x Φ(λ x),其中 λ ≥ 1,并使用基于 softplus 的再参数化 λ(s) = 1 + softplus(s/t) 以实现无约束优化。
  • 引入一个与优化器相关的学习率乘子,使硬度参数 s 相对于权重更新以受控速度更新(η_s = c · η_w)。
  • 对 λ-GELU 逐层训练(每个激活层一个 λ),并在训练过程中监控逐层硬度分布。
  • 提出一个确定性硬化计划:在训练 epoch 的 25% 之后,将 λ 线性退火至目标 λ_target,使最终门接近 ReLU 风格。
  • 基于关于 Φ(λ x) 与 Heaviside 门的闭式界 E_infty(λ) = 2/(λ√(2π)) 选择 λ_target,确保受控近似。
  • 评估在最佳验证检查点无需进一步权重更新就替换 λ-GELU 为 ReLU 的可行性和影响。
  • 在 ML P、CNN 和 Transformer 模型上在六个模型–数据集基准上进行比较,以勾勒硬度动态和对初始化的鲁棒性。
Figure 1: Grid over temperature $t$ and the $s$ learning-rate multiplier $c$ on MLP /FMNIST. Cell annotations report the mean validation-score change with respect to GELU (averaged over the three $s$ initializations), while the color encodes the mean hardness-drift proxy $\Delta\lambda$ (average abs
Figure 1: Grid over temperature $t$ and the $s$ learning-rate multiplier $c$ on MLP /FMNIST. Cell annotations report the mean validation-score change with respect to GELU (averaged over the three $s$ initializations), while the color encodes the mean hardness-drift proxy $\Delta\lambda$ (average abs

实验结果

研究问题

  • RQ1λ-GELU 是否能揭示对初始化鲁棒的逐层门控硬度模式,在不同架构中是否一致?
  • RQ2受约束、对优化器敏感的 λ 学习是否能获得与 GELU 相当的稳定动态和验证性能?
  • RQ3是否存在一个朝向 ReLU 风格门的确定性退火计划,在部署阶段实现低损失的 ReLU 替换?
  • RQ4硬度退火如何影响下游以 ReLU 为中心的部署任务,如量化、剪枝和验证?
  • RQ5在不同架构中,选择重参数化温度 t 和学习率乘子 c 出现的实际指南是什么?

主要发现

  • λ-GELU 产生的逐层硬度结构在多种视觉和表格数据设置中对初始化具有较强鲁棒性。
  • 在六个模型–数据集基准上,学习到的硬度通常与 GELU 在验证性能上相近,同时能够实现显著的门控适应。
  • 一个确定性的硬化与替换协议可以在表格和视觉任务中以比直接从 GELU 到 ReLU 的替换更小的性能下降来替换 λ-GELU。
  • 对于 GPT-2/WikiText-2,激活替换仍然具有挑战性,表明语言建模可能需要与架构相关的策略。
  • 在某些情形下,硬度动态对初始化更敏感(如 Adult、GPT-2/WikiText-2),这表明需要对架构进行特定调整或延长训练以获得稳健的硬度层级。
Figure 2: Sweep over the $s$ learning-rate multiplier $c$ on ResNet-18/CIFAR-100 (AdamW, $t{=}0.1$ fixed). Cell annotations report the mean validation-score change with respect to GELU (averaged over the three $s$ initializations), while the color encodes the mean hardness-drift proxy $\Delta\lambda
Figure 2: Sweep over the $s$ learning-rate multiplier $c$ on ResNet-18/CIFAR-100 (AdamW, $t{=}0.1$ fixed). Cell annotations report the mean validation-score change with respect to GELU (averaged over the three $s$ initializations), while the color encodes the mean hardness-drift proxy $\Delta\lambda

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。