Skip to main content
QUICK REVIEW

[Paper Review] Block-Normalized Gradient Method: An Empirical Study for Training Deep Neural Network

Adams Wei Yu, Lei Huang|arXiv (Cornell University)|Jul 16, 2017
Stochastic Gradient Optimization TechniquesComputer Science2 references17 citations
TL;DR

This paper proposes the Block-Normalized Gradient (BNG) method, a simple yet effective optimization framework for training deep neural networks by normalizing gradients layer-wise to mitigate vanishing and exploding gradients. Empirical results show that BNG significantly improves training convergence and generalization, with SGDMNG outperforming Adam on ImageNet and AdamNG excelling in RNN language modeling.

ABSTRACT

In this paper, we propose a generic and simple strategy for utilizing stochastic gradient information in optimization. The technique essentially contains two consecutive steps in each iteration: 1) computing and normalizing each block (layer) of the mini-batch stochastic gradient; 2) selecting appropriate step size to update the decision variable (parameter) towards the negative of the block-normalized gradient. We conduct extensive empirical studies on various non-convex neural network optimization problems, including multi-layer perceptron, convolution neural networks and recurrent neural networks. The results indicate the block-normalized gradient can help accelerate the training of neural networks. In particular, we observe that the normalized gradient methods having constant step size with occasionally decay, such as SGD with momentum, have better performance in the deep convolution neural networks, while those with adaptive step sizes, such as Adam, perform better in recurrent neural networks. Besides, we also observe this line of methods can lead to solutions with better generalization properties, which is confirmed by the performance improvement over strong baselines.

Motivation & Objective

  • Address the challenge of vanishing and exploding gradients in deep neural network training using a novel normalization strategy.
  • Develop a generic, layer-wise gradient normalization technique applicable to various deep learning architectures.
  • Investigate the impact of normalized gradients on optimization performance across different neural network types and datasets.
  • Compare the effectiveness of constant vs. adaptive step sizes when combined with block-normalized gradients.
  • Demonstrate improved generalization and faster convergence in both feedforward and sequential models.

Proposed method

  • Compute the mini-batch stochastic gradient for each layer (block) of the neural network.
  • Normalize each layer's gradient by dividing it by its L2 norm, resulting in a unit-norm direction vector.
  • Use the normalized gradient as the search direction in optimization, decoupling direction from magnitude.
  • Apply either constant step size with occasional decay (e.g., SGD with momentum) or adaptive step sizes (e.g., Adam, AdaGrad).
  • Integrate the normalized gradient into existing first-order optimization algorithms without modifying their core update rules.
  • Maintain computational efficiency by applying normalization per layer, preserving the scalability of stochastic optimization.

Experimental results

Research questions

  • RQ1Does layer-wise gradient normalization improve training stability and convergence speed in deep neural networks?
  • RQ2How does the block-normalized gradient method compare to standard SGD and Adam in terms of test accuracy across different architectures?
  • RQ3Which combination of step size strategy (constant vs. adaptive) performs best when used with normalized gradients?
  • RQ4Can normalized gradient methods lead to better generalization performance than their unnormalized counterparts?
  • RQ5How does the method perform across diverse tasks such as image classification, language modeling, and sentiment analysis?

Key findings

  • The block-normalized gradient method consistently improves training performance across multiple deep learning tasks, including CNNs, RNNs, and feedforward networks.
  • On ImageNet with ResNet, SGDMNG achieved a top-1 error rate of 28.43%, outperforming SGDM (29.05%) and Adam (35.6%), demonstrating superior generalization.
  • In Penn Tree Bank language modeling, AdamNG achieved 77.11% validation accuracy, surpassing Adam (74.02%) and SGDM (64.35%) across all BPTT lengths.
  • For sentiment analysis on Rotten Tomatoes, AdamNG achieved the highest validation accuracy, significantly outperforming all baselines including Adam and SGDM.
  • The method shows particular advantage in very deep networks, where gradient normalization mitigates vanishing/exploding gradient issues more effectively.
  • Adaptive step size methods (e.g., AdamNG) outperform constant step size methods (e.g., SGDMNG) in RNNs, while the reverse is true in CNNs, highlighting task-dependent optimal configurations.

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.