Skip to main content
QUICK REVIEW

[Paper Review] Noisy Activation Functions

Çaǧlar Gülçehre, Marcin Moczulski|arXiv (Cornell University)|Mar 1, 2016
Adversarial Robustness in Machine LearningComputer Science25 references82 citations
TL;DR

This paper introduces noisy activation functions that inject controlled noise into saturating nonlinearities (e.g., sigmoid, tanh) during training to improve gradient flow and optimization, especially in hard-saturation regimes. By annealing the noise level over time, the method enables stochastic gradient descent to explore more effectively, leading to state-of-the-art or competitive performance on tasks like image captioning, sequence modeling, and neural Turing machines, with superior convergence and generalization.

ABSTRACT

Common nonlinear activation functions used in neural networks can cause training difficulties due to the saturation behavior of the activation function, which may hide dependencies that are not visible to vanilla-SGD (using first order gradients only). Gating mechanisms that use softly saturating activation functions to emulate the discrete switching of digital logic circuits are good examples of this. We propose to exploit the injection of appropriate noise so that the gradients may flow easily, even if the noiseless application of the activation function would yield zero gradient. Large noise will dominate the noise-free gradient and allow stochastic gradient descent toexplore more. By adding noise only to the problematic parts of the activation function, we allow the optimization procedure to explore the boundary between the degenerate (saturating) and the well-behaved parts of the activation function. We also establish connections to simulated annealing, when the amount of noise is annealed down, making it easier to optimize hard objective functions. We find experimentally that replacing such saturating activation functions by noisy variants helps training in many contexts, yielding state-of-the-art or competitive results on different datasets and task, especially when training seems to be the most difficult, e.g., when curriculum learning is necessary to obtain good results.

Motivation & Objective

  • Address the challenge of vanishing gradients in hard-saturating activation functions like sigmoid and tanh, which hinder training in deep networks.
  • Overcome the limitation of soft-saturating nonlinearities in gating mechanisms (e.g., LSTMs, GRUs) that prevent true on/off decisions due to gradient leakage.
  • Enable the use of hard-saturating nonlinearities at test time for better representational capacity while maintaining training stability via noise injection.
  • Formalize a continuation-like optimization method using noise annealing to improve convergence and generalization in difficult training scenarios.

Proposed method

  • Inject noise into the activation function output in the saturated regime, specifically where gradients vanish (i.e., for large |x|), to maintain non-zero gradient flow during backpropagation.
  • Use a learnable noise scale parameter that controls the standard deviation of the injected noise, allowing the model to adapt the noise level during training.
  • Apply noise only to the problematic (saturated) regions of the activation function, preserving the nonlinearity's structure while enabling exploration.
  • Anneal the noise level over time using a schedule such as $ c / \\/sqrt{t+1} $, emulating simulated annealing to transition from exploration to exploitation.
  • Replace noisy activations with deterministic expectations at test time, enabling hard decisions (e.g., 0 or 1) in gating units without gradient issues.
  • Integrate noisy activations as a plug-in replacement in existing architectures (e.g., LSTM, GRU, NTM) without architectural changes, enabling easy deployment.

Experimental results

Research questions

  • RQ1Can injecting noise into saturating activation functions improve training stability and performance in deep networks with hard-gating mechanisms?
  • RQ2Does noise injection in the saturated regime enhance gradient flow and prevent optimization from getting stuck in poor local minima?
  • RQ3Can noise annealing serve as an effective continuation method for training deep networks, especially in tasks requiring curriculum learning?
  • RQ4Do noisy activation functions outperform standard sigmoid/tanh and ReLU-based models in terms of test accuracy and generalization on challenging benchmarks?

Key findings

  • Noisy activation functions significantly outperform standard sigmoid and tanh units on the Penn Treebank language modeling task, achieving competitive or state-of-the-art results.
  • On the image captioning task, the model with noisy activations achieved a Meteor score of 28.9, surpassing the reference model and outperforming the best model from Xu et al. (2015), even without dropout.
  • With noise annealing, the model achieved a test error of 9.53% on the unique element prediction task, outperforming curriculum learning (14.83%) and the baseline (33.28%).
  • On the Neural Turing Machine associative recall task, the noisy-activation NTM converged faster and solved the task successfully, while the standard NTM failed to reach low error.
  • The addition of dropout further improved performance, but the primary gain came from the noisy activation mechanism itself, as even the non-dropout version outperformed the baseline.
  • Annealing the noise level enabled a continuation-like optimization process, improving generalization and enabling training of previously hard-to-optimize models such as gated RNNs with piecewise-linear activations.

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.