Neural Network Training Techniques Regularize Optimization Trajectory: An Empirical Study

Cheng Chen, Junjie Yang, Yi Zhou

TL;DR

This paper introduces a "regularity principle" to quantify how various neural network training techniques (like batch normalization and skip connections) influence the optimization trajectory. They empirically demonstrate that these techniques align the model's update direction with its trajectory, leading to faster convergence, and provide a theoretical framework to explain this phenomenon.

What Problem Does This Paper Address?

Deep neural networks (DNNs) have achieved remarkable success, but the underlying reasons for their effective training remain somewhat mysterious. While techniques like non-linear activation functions, batch normalization, and skip connections are widely used and known to improve training, a unified understanding of how they contribute to faster and more stable optimization is lacking. Existing explanations often focus on specific aspects (e.g., avoiding vanishing gradients or reducing internal covariate shift) but don't offer a cohesive picture of their impact on the overall optimization process. This paper aims to bridge this gap by providing an empirical and theoretical framework to understand the regularization effect of these techniques on the DNN's optimization trajectory.

Methods

The core of this paper is the introduction and empirical validation of a regularity principle for stochastic algorithms in nonconvex optimization. This principle quantifies how well the model's update direction aligns with the direction of its optimization trajectory.

  1. Regularity Principle (Definition 2): This principle states that for a given optimization trajectory $\{ \theta_k \}$, the update direction $U(\theta_k; z_{\xi_k})$ should be aligned with the difference between the current parameter $\theta_k$ and a future parameter $\theta_T$. This alignment is parameterized by $\gamma > 0$. A larger $\gamma$ implies a stronger alignment, meaning the trajectory is closer to a straight line.
  2. Theoretical Analysis (Theorem 1): The authors prove that this regularity principle leads to a convergence guarantee in over-parameterized nonconvex optimization. The convergence rate is shown to be sublinear, specifically $O(1/\gamma T)$, meaning a larger $\gamma$ (stronger regularity) leads to faster convergence.
  3. Empirical Validation: The paper conducts extensive experiments on various popular DNN architectures (AlexNet, VGG, ResNet, U-Net) and datasets (CIFAR-10, CIFAR-100). They train these networks with and without specific training techniques (activation functions, batch normalization, skip connections, and different optimizers) and measure both the convergence speed and the estimated $\gamma$ value of their optimization trajectories.

Datasets

  • CIFAR-10: A dataset of 60,000 32x32 color images in 10 classes, with 50,000 training images and 10,000 test images.
  • CIFAR-100: A dataset of 60,000 32x32 color images in 100 classes, with 50,000 training images and 10,000 test images.

The paper does not introduce new datasets or benchmarks.

Key Insights and Ideas

  • Unified View of Training Techniques: The regularity principle offers a single metric ($\gamma$) to understand the impact of diverse training techniques (activation functions, batch norm, skip connections, optimizers) on optimization.
  • Alignment is Key to Speed: The core idea is that when model updates are well-aligned with the optimization trajectory (high $\gamma$), the path to the minimum is more direct and shorter, leading to faster convergence.
  • Training Techniques Enhance Regularity: The experiments consistently show that employing standard training techniques results in higher $\gamma$ values, indicating better alignment and faster convergence, compared to baseline training without these techniques.
  • Sigmoid vs. ReLU: For classification tasks, ReLU and its variants lead to higher $\gamma$ and faster convergence than sigmoid. However, for regression tasks (U-Net with MSE loss), sigmoid showed higher $\gamma$. This suggests task-dependent effects.
  • Batch Norm and Skip Connections are Crucial Regularizers: Removing batch normalization or skip connections significantly degrades the regularity ($\gamma$ decreases) and slows down convergence, highlighting their importance beyond just preventing specific gradient issues.
  • Advanced Optimizers Improve Regularity: Optimizers like Adam and SGD with momentum lead to higher $\gamma$ values than vanilla SGD, explaining their superior performance in practice.

Key Results

  • Empirical Regularity: All tested DNN trainings, regardless of the techniques used, were found to obey the regularity principle with $\gamma > 0$.
  • Techniques Increase $\gamma$ and Speed: DNNs trained with techniques like ReLU, batch normalization, skip connections, and Adam/SGD with momentum consistently showed higher $\gamma$ values and faster convergence rates compared to their counterparts without these techniques.
  • For example, removing batch normalization led to a significant slowdown and a very small $\gamma$.
  • Adam optimizer resulted in the largest $\gamma$ and fastest convergence among the tested optimizers.
  • Theoretical Convergence: The regularity principle guarantees a sub-linear convergence rate of $O(1/\gamma T)$, where a larger $\gamma$ (indicating better alignment) leads to a faster rate.

Limitations and Future Work

  • Over-parameterization Assumption: The theoretical analysis relies on the assumption of over-parameterized models, which is common in deep learning but might not hold for all scenarios.
  • Empirical $\gamma$ Estimation: The paper estimates $\gamma$ empirically. While consistent, further theoretical work might be needed to precisely characterize the relationship between training techniques and $\gamma$.
  • Generalization: The paper focuses on optimization trajectory. While it implies better convergence, a direct link to generalization performance is not explicitly established, though it's a common goal of regularization.
  • Future Work: The authors suggest that this optimization-level regularity principle can be used to develop improved training techniques for deep learning and to better understand the generalization performance of DNNs. They also note the potential for this framework to guide the design of new optimizers and network architectures.

Summary updated

Abstract

Modern deep neural network (DNN) trainings utilize various training techniques, e.g., nonlinear activation functions, batch normalization, skip-connections, etc. Despite their effectiveness, it is still mysterious how they help accelerate DNN trainings in practice. In this paper, we provide an empirical study of the regularization effect of these training techniques on DNN optimization. Specifically, we find that the optimization trajectories of successful DNN trainings consistently obey a certain regularity principle that regularizes the model update direction to be aligned with the trajectory direction. Theoretically, we show that such a regularity principle leads to a convergence guarantee in nonconvex optimization and the convergence rate depends on a regularization parameter. Empirically, we find that DNN trainings that apply the training techniques achieve a fast convergence and obey the regularity principle with a large regularization parameter, implying that the model updates are well aligned with the trajectory. On the other hand, DNN trainings without the training techniques have slow convergence and obey the regularity principle with a small regularization parameter, implying that the model updates are not well aligned with the trajectory.
BibTeX
@inproceedings{chen2020neural,
  author = {Cheng Chen and Junjie Yang and Yi Zhou},
  title = {{Neural Network Training Techniques Regularize Optimization Trajectory: An Empirical Study}},
  booktitle = {Accepted by IEEE International Conference on Big Data},
  year = {2020},
  url = {https://openreview.net/forum?id=bBKyLUt4mf},
}
Figure