Skip to main content
QUICK REVIEW

[Paper Review] Smooth activations and reproducibility in deep networks

Gil I. Shamir, Dong Lin|arXiv (Cornell University)|Oct 20, 2020
Advanced Neural Network ApplicationsComputer Science32 references7 citations
TL;DR

This paper proposes Smooth ReLU (SmeLU), a new family of smooth, monotonic activation functions designed to improve the accuracy-reproducibility tradeoff in deep networks. By replacing the non-smooth ReLU with SmeLU, which ensures continuous gradients and better convergence stability, the authors demonstrate significantly reduced prediction differences between identical models trained on the same data, especially in large-scale and distributed training settings.

ABSTRACT

Deep networks are gradually penetrating almost every domain in our lives due to their amazing success. However, with substantive performance accuracy improvements comes the price of \emph{irreproducibility}. Two identical models, trained on the exact same training dataset may exhibit large differences in predictions on individual examples even when average accuracy is similar, especially when trained on highly distributed parallel systems. The popular Rectified Linear Unit (ReLU) activation has been key to recent success of deep networks. We demonstrate, however, that ReLU is also a catalyzer to irreproducibility in deep networks. We show that not only can activations smoother than ReLU provide better accuracy, but they can also provide better accuracy-reproducibility tradeoffs. We propose a new family of activations; Smooth ReLU (\emph{SmeLU}), designed to give such better tradeoffs, while also keeping the mathematical expression simple, and thus implementation cheap. SmeLU is monotonic, mimics ReLU, while providing continuous gradients, yielding better reproducibility. We generalize SmeLU to give even more flexibility and then demonstrate that SmeLU and its generalized form are special cases of a more general methodology of REctified Smooth Continuous Unit (RESCU) activations. Empirical results demonstrate the superior accuracy-reproducibility tradeoffs with smooth activations, SmeLU in particular.

Motivation & Objective

  • Address the growing problem of irreproducibility in deep learning, where identical models trained on the same data produce divergent predictions on individual examples.
  • Identify ReLU as a key contributor to irreproducibility due to its non-smooth, non-differentiable gradient at zero, which amplifies sensitivity to training order and optimization dynamics.
  • Develop a new class of smooth activation functions—SmeLU and its generalizations—that maintain ReLU's computational simplicity while enabling continuous gradients and improved optimization stability.
  • Demonstrate empirically that smooth activations like SmeLU achieve superior accuracy-reproducibility tradeoffs compared to ReLU and other popular smooth activations (e.g., GELU, Swish, Mish) across diverse training setups and datasets.

Proposed method

  • Propose SmeLU as a differentiable, monotonic approximation to ReLU that smoothly transitions from zero to linear output, with a learnable or fixed temperature-like parameter β controlling the smoothness.
  • Design SmeLU to preserve the computational efficiency of ReLU while ensuring continuous gradients, reducing sensitivity to training order and optimization path.
  • Generalize SmeLU into a broader family of activations under the REctified Smooth Continuous Unit (RESCU) framework, enabling flexible tradeoffs between smoothness, nonlinearity, and gradient behavior.
  • Evaluate SmeLU and other activations in two settings: large-scale online CTR prediction (using Adagrad and progressive validation) and standard MNIST classification (using Adagrad and SGD with data augmentation and dropout).
  • Measure prediction differences (PD) as a function of model initialization and training order, using relative PD (Δ₁ʳ) normalized to the true label, to quantify irreproducibility.
  • Use weight normalization and ablation studies to isolate the effect of activation smoothness from other optimization factors, confirming that smoothness alone improves reproducibility.

Experimental results

Research questions

  • RQ1To what extent does the non-smoothness of ReLU contribute to prediction irreproducibility in deep networks trained on distributed systems?
  • RQ2Can smooth activation functions achieve better accuracy-reproducibility tradeoffs than ReLU while maintaining low computational cost?
  • RQ3How do different smooth activations (e.g., SmeLU, GELU, Swish, Mish) compare in terms of prediction difference and accuracy across diverse training configurations?
  • RQ4Is there a simple, efficient activation function that matches or exceeds the performance of complex smooth activations in both accuracy and reproducibility?

Key findings

  • ReLU exhibits high irreproducibility, with relative prediction differences (PD) exceeding 12% on average in large-scale CTR prediction tasks, even when models are initialized identically.
  • SmeLU reduces relative PD to below 5% in the same large-scale setting, demonstrating a substantial improvement in reproducibility without sacrificing accuracy.
  • On the MNIST dataset, ReLU shows over 10% relative PD under Adagrad and over 30% under SGD, while SmeLU and other smooth activations reduce PD significantly, with SmeLU outperforming ReLU in both metrics.
  • Among smooth activations, SmeLU achieves a better balance between accuracy and reproducibility than GELU, Swish, Mish, and TanhExp, particularly in high-variability training settings.
  • Smooth activations like SmeLU maintain or improve accuracy while drastically reducing prediction differences, even without weight normalization or clipping, indicating that smoothness alone improves stability.
  • The results show that SmeLU, despite its simplicity and low computational cost, performs comparably or better than more complex smooth activations, validating its design as an effective and practical alternative to ReLU.

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.