Skip to main content
QUICK REVIEW

[Paper Review] A block coordinate descent optimizer for classification problems exploiting convexity

Ravi G. Patel, Nathaniel Trask|arXiv (Cornell University)|Jan 1, 2020
3D Shape Modeling and AnalysisEngineering25 references3 citations
TL;DR

This paper proposes a hybrid Newton/Gradient Descent (NGD) optimizer for deep learning classification that exploits the convexity of cross-entropy loss in linear layer weights. By alternating Newton steps on the linear layer (ensuring global optimality) with gradient descent on hidden layers, NGD accelerates convergence and improves test accuracy, achieving up to 4x faster convergence on CIFAR-10 and 1.76% higher final test accuracy with ConvNet architectures.

ABSTRACT

Second-order optimizers hold intriguing potential for deep learning, but suffer from increased cost and sensitivity to the non-convexity of the loss surface as compared to gradient-based approaches. We introduce a coordinate descent method to train deep neural networks for classification tasks that exploits global convexity of the cross-entropy loss in the weights of the linear layer. Our hybrid Newton/Gradient Descent (NGD) method is consistent with the interpretation of hidden layers as providing an adaptive basis and the linear layer as providing an optimal fit of the basis to data. By alternating between a second-order method to find globally optimal parameters for the linear layer and gradient descent to train the hidden layers, we ensure an optimal fit of the adaptive basis to data throughout training. The size of the Hessian in the second-order step scales only with the number weights in the linear layer and not the depth and width of the hidden layers; furthermore, the approach is applicable to arbitrary hidden layer architecture. Previous work applying this adaptive basis perspective to regression problems demonstrated significant improvements in accuracy at reduced training cost, and this work can be viewed as an extension of this approach to classification problems. We first prove that the resulting Hessian matrix is symmetric semi-definite, and that the Newton step realizes a global minimizer. By studying classification of manufactured two-dimensional point cloud data, we demonstrate both an improvement in validation error and a striking qualitative difference in the basis functions encoded in the hidden layer when trained using NGD. Application to image classification benchmarks for both dense and convolutional architectures reveals improved training accuracy, suggesting possible gains of second-order methods over gradient descent.

Motivation & Objective

  • To develop a second-order optimization method that leverages convexity in the linear layer of deep neural networks for classification.
  • To reduce training cost and improve convergence speed by decoupling optimization of linear and nonlinear weights.
  • To explore whether second-order methods can outperform stochastic gradient descent in accuracy and convergence for classification tasks.
  • To investigate how optimization scheme choice affects the learned basis functions in hidden layers.

Proposed method

  • The method uses block coordinate descent, alternating between Newton steps on linear layer weights W and gradient descent on hidden layer weights ξ.
  • For fixed ξ, the loss function is convex in W, enabling global minimization via Newton's method with line search.
  • The Hessian computation scales only with the number of linear layer weights, not the depth or width of hidden layers.
  • The Newton step is applied to a mini-batch to maintain computational efficiency and stability.
  • The algorithm is implemented in TensorFlow and open-sourced at github.com/rgp62/
  • The approach interprets hidden layers as data-driven adaptive bases, with linear layer weights providing optimal fitting to these bases.

Experimental results

Research questions

  • RQ1Can exploiting convexity in the linear layer weights lead to faster and more accurate training in deep neural networks for classification?
  • RQ2How does the NGD optimizer compare to standard stochastic gradient descent in terms of convergence speed and final accuracy?
  • RQ3What qualitative differences emerge in the basis functions encoded by hidden layers when trained with NGD versus GD?
  • RQ4How does the tolerance in the Newton step influence model generalization and robustness?
  • RQ5Can second-order optimization be efficiently applied to deep networks without incurring prohibitive computational costs?

Key findings

  • NGD achieved maximum validation accuracy in roughly one-quarter the number of iterations compared to GD on the CIFAR-10 benchmark.
  • For the CIFAR-10 ConvNet architecture, NGD improved final test accuracy by 1.76% compared to GD.
  • On MNIST, Fashion MNIST, and peaks benchmark, NGD reached higher validation accuracy more quickly than GD.
  • The basis functions learned by NGD exhibited significantly more regular and structured patterns compared to those from GD, suggesting a qualitative difference in parameter space exploration.
  • The Hessian matrix for the linear layer weights was proven to be symmetric positive semi-definite, confirming the existence of a global minimizer via Newton's method.
  • The method demonstrated consistent improvements across diverse architectures, including dense and convolutional networks, without requiring architectural modifications.

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.