Skip to main content
QUICK REVIEW

[Paper Review] Regularization and Reparameterization Avoid Vanishing Gradients in Sigmoid-Type Networks

Leni Ven, Johannes Lederer|arXiv (Cornell University)|Jun 4, 2021
Machine Learning and ELMComputer Science6 citations
TL;DR

This paper proposes that weight regularization and parameter rescaling can effectively prevent vanishing gradients in sigmoid-type networks, such as those using tanh activations. By mathematically identifying two distinct causes—large individual parameters and cumulative layer effects—it demonstrates that ℓ₂ regularization and scaling resolve both issues, restoring sigmoid networks as viable alternatives to ReLU in deep learning.

ABSTRACT

Deep learning requires several design choices, such as the nodes' activation functions and the widths, types, and arrangements of the layers. One consideration when making these choices is the vanishing-gradient problem, which is the phenomenon of algorithms getting stuck at suboptimal points due to small gradients. In this paper, we revisit the vanishing-gradient problem in the context of sigmoid-type activation. We use mathematical arguments to highlight two different sources of the phenomenon, namely large individual parameters and effects across layers, and to illustrate two simple remedies, namely regularization and rescaling. We then demonstrate the effectiveness of the two remedies in practice. In view of the vanishing-gradient problem being a main reason why tanh and other sigmoid-type activation has become much less popular than relu-type activation, our results bring sigmoid-type activation back to the table.

Motivation & Objective

  • To re-examine the vanishing-gradient problem in sigmoid-type networks, particularly in the context of tanh and related activations.
  • To identify two distinct sources of vanishing gradients: large individual parameters and joint effects across multiple layers.
  • To propose and validate two simple, mathematically grounded remedies: ℓ₂ regularization for large parameters and rescaling for deep architectures.
  • To demonstrate that these remedies can restore training stability and performance in sigmoid networks without significant computational cost.

Proposed method

  • Uses a simple feedforward network of l tanh neurons, each with a single trainable weight, to model the vanishing-gradient problem analytically.
  • Analyzes gradient behavior in two regimes: one with large individual parameters and another with many stacked layers.
  • Introduces ℓ₂ regularization as a remedy for the large-parameter regime, showing it bounds gradient decay.
  • Proposes a reparameterization (scaling) technique to stabilize gradients in deep networks by rescaling weights or activations.
  • Empirically evaluates the methods on a classification task using multiple random seeds, comparing accuracy and gradient statistics.
  • Combines both remedies in a single experiment to assess synergistic effects, including comparison with ReLU.

Experimental results

Research questions

  • RQ1What are the distinct mathematical sources of the vanishing-gradient problem in sigmoid-type networks?
  • RQ2Can ℓ₂ regularization effectively mitigate vanishing gradients caused by large individual parameters in sigmoid networks?
  • RQ3Can reparameterization (rescaling) prevent gradient vanishing in deep sigmoid networks with many layers?
  • RQ4Do regularization and rescaling together enable sigmoid networks to match or exceed the performance of ReLU networks in practice?
  • RQ5Can these simple, theoretically grounded techniques restore practical viability to sigmoid-type activations in modern deep learning?

Key findings

  • Large individual parameters in sigmoid networks lead to vanishing gradients, which can be effectively mitigated by ℓ₂ regularization.
  • In deep networks with many layers, gradient vanishing arises from cumulative effects, which are resolved by rescaling the weights or activations.
  • The combination of ℓ₂ regularization and rescaling leads to faster convergence and higher test accuracy compared to standard training in both large-parameter and deep-network regimes.
  • The proposed remedies do not introduce significant computational overhead, as shown by runtime measurements on standard hardware.
  • Empirical results show that tanh networks with regularization and scaling outperform standard training and achieve competitive performance, even outperforming ReLU in some configurations.
  • The study demonstrates that sigmoid-type activations remain a strong candidate in deep learning when combined with these simple, mathematically justified techniques.

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.