Skip to main content
QUICK REVIEW

[Paper 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 Science0 citations
TL;DR

The paper introduces a hardness-parameterized GELU, learns layerwise gating sharpness with a constrained reparameterization, and proposes a deterministic annealing procedure to replace λ-GELU with ReLU after training for ReLU-centric downstream pipelines.

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.

Motivation & Objective

  • Motivate the need for bridging smooth gated activations and ReLU-centric deployment tools (compression, interpretability, verification).
  • Introduce a hardness-parameterized GELU and study its layerwise gating behavior during training.
  • Develop a stable optimization scheme to learn the hardness parameter jointly with network weights.
  • Propose a deterministic hardening procedure to enable post-training ReLU substitution with minimal performance loss.
  • Evaluate hardness dynamics and the effectiveness of ReLU replacement across diverse architectures and datasets.

Proposed method

  • Define λ-GELU as f(x; λ) = x Φ(λ x) with λ ≥ 1 and use a softplus-based reparameterization λ(s) = 1 + softplus(s/t) to enable unconstrained optimization.
  • Introduce an optimizer-aware learning-rate multiplier so that the hardness parameter s updates at a controlled pace relative to weight updates (η_s = c · η_w).
  • Train λ-GELU layerwise (one λ per activation layer) and monitor layerwise hardness profiles during training.
  • Propose a deterministic hardening schedule: after 25% of training epochs, linearly anneal λ toward a target λ_target so that final gates approach ReLU-like behavior.
  • Choose λ_target based on a closed-form bound E_infty(λ) = 2/(λ√(2π)) relating Φ(λ x) to the Heaviside gate, ensuring controlled approximation.
  • Evaluate the feasibility and impact of replacing λ-GELU with ReLU at a best-validation checkpoint without further weight updates.
  • Compare across MLP, CNN, and Transformer models on six model–dataset benchmarks to profile hardness dynamics and robustness to initializations.
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

Experimental results

Research questions

  • RQ1Can λ-GELU reveal layerwise gating hardness patterns that are robust to initialization across architectures?
  • RQ2Does a constrained, optimizer-aware learning of λ yield stable dynamics and comparable validation performance to GELU?
  • RQ3Can a deterministic annealing schedule toward a ReLU-like gate enable low-loss ReLU replacement at deployment?
  • RQ4How does hardness annealing affect downstream ReLU-centric deployment tasks such as quantization, pruning, and verification?
  • RQ5What practical guidelines emerge for selecting reparameterization temperature t and learning-rate multiplier c across architectures?

Key findings

  • λ-GELU yields structured layerwise hardness profiles that are largely robust to initialization in several vision and tabular settings.
  • Across six model–dataset benchmarks, learned hardness often yields similar best validation performance to GELU while enabling substantial gating adaptation.
  • A deterministic hardening-and-replacement protocol can replace λ-GELU with ReLU with smaller performance degradation than a direct GELU→ReLU swap in tabular and vision tasks.
  • For GPT-2/WikiText-2, activation replacement remains challenging, suggesting architecture-specific strategies may be needed for language modeling.
  • Hardness dynamics can be more initialization-sensitive in some regimes (Adult, GPT-2/WikiText-2), indicating the need for architecture-specific tuning or longer training to obtain robust hardness hierarchies.
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

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.