Faster Convergence & Generalization in DNNs

Gaurav Singh, John Shawe-TaylorarXiv 2018 · arXiv

Training deep neural networks (DNNs) is often a test of patience. Even with modern hardware, large models can take weeks to converge using standard Stochastic Gradient Descent (SGD). Furthermore, ensuring generalization to unseen data typically relies on empirical heuristics like dropout or weight decay. In this paper, researchers from University College London propose a radical shift: treating each weight update as a mini-optimization problem designed to guarantee generalization.

The Problem: The Inefficiency of SGD

While SGD is the industry standard, it is notoriously "noisy." Research suggests SGD operates in two phases: a drift phase, where loss drops quickly, and a diffusion phase, where the algorithm wanders chaotically, requiring lower learning rates to avoid overshooting. This diffusion phase is where training efficiency collapses.

Additionally, most DNNs lack a solid theoretical foundation for generalization. Heuristics prevent overfitting, but they rarely provide a mathematical guarantee that a specific update on a minibatch will improve performance on the entire test set.

Methodology: SVM-Based Updates

The authors introduce a new optimization algorithm that replaces traditional back-propagation steps with "generalized-optimal updates" solved via a Support Vector Machine (SVM) formulation.

  1. The SVM Formulation: Instead of calculating a scalar loss and moving in the negative gradient direction, the method analyzes the gradients of every output node for every sample in a minibatch. It then solves a dual SVM problem to find an update direction that improves the hinge loss for the majority of the minibatch simultaneously.
  2. Rademacher Complexity: To ensure the update does not merely memorize the minibatch, the algorithm uses Rademacher complexity to bound the generalization error.
  3. Adaptive Training: The algorithm monitors a theoretical "bound term." If the bound on generalization becomes too loose, it automatically adjusts the minibatch size or regularization to maintain optimization stability.

Essentially, the weight update itself becomes a supervised learning problem where the "features" are the gradients of the network.

Key Results

The researchers evaluated their method on the MNIST and CIFAR-10 benchmarks, comparing convergence efficiency against traditional SGD-based back-propagation.

Convergence Speed

The most striking result is the massive reduction in required training epochs. For MNIST, the standard network required approximately 30 epochs to converge; the SVM-update method achieved comparable results in just one epoch.

Figure 1: Training accuracy comparison on MNIST. The SVM-update (green) reaches near-perfect accuracy significantly faster than the SGD-update (red).

On the more complex CIFAR-10 dataset, the convergence requirement dropped from 70 epochs to approximately five to ten epochs, representing a significant order-of-magnitude speedup.

Figure 2: Training accuracy comparison on CIFAR-10. The SVM-update method demonstrates a 10x speedup in epoch-wise convergence compared to standard SGD.

Accuracy and Robustness

Final test accuracy was slightly superior to SGD. For MNIST, the method achieved 98.9% (vs 98.2% for SGD), and for CIFAR-10, it reached 87.8% (vs 86.7% for SGD). Furthermore, because the updates are margin-aware, the resulting models showed increased adversarial robustness, requiring significantly more noise to be misclassified compared to their SGD-trained counterparts.

Limitations and Future Work

The primary hurdle for this method is the computational overhead per update. Current deep learning libraries are optimized for aggregated gradients; this method requires sample-wise gradients, which are currently slow to compute. Additionally, solving an SVM dual problem for every minibatch is mathematically intensive. Future work will focus on optimizing these computations, potentially by solving the SVM on the GPU or utilizing more efficient unaggregated gradient kernels.

Summary updated

Abstract

Deep neural networks have gained tremendous popularity in last few years. They have been applied for the task of classification in almost every domain. Despite the success, deep networks can be incredibly slow to train for even moderate sized models on sufficiently large datasets. Additionally, these networks require large amounts of data to be able to generalize. The importance of speeding up convergence, and generalization in deep networks can not be overstated. In this work, we develop an optimization algorithm based on generalized-optimal updates derived from minibatches that lead to faster convergence. Towards the end, we demonstrate on two benchmark datasets that the proposed method achieves two orders of magnitude speed up over traditional back-propagation, and is more robust to noise/over-fitting.
BibTeX
@misc{singh2018faster,
  author = {Gaurav Singh and John Shawe-Taylor},
  title = {{Faster Convergence \& Generalization in DNNs}},
  year = {2018},
  eprint = {1807.11414},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.11414},
}
Figure