Skip to main content
QUICK REVIEW

[Paper Review] An Optimal Control Approach to Deep Learning and Applications to Discrete-Weight Neural Networks

Qianxiao Li, Shuji Hao|arXiv (Cornell University)|Mar 4, 2018
Stochastic Gradient Optimization TechniquesComputer Science47 references39 citations
TL;DR

This paper formulates deep learning as a discrete-time optimal control problem using Pontryagin’s maximum principle, introducing a gradient-free method of successive approximations (MSA) for training neural networks. It achieves competitive performance with highly sparse ternary weights, enabling efficient deployment on low-memory devices.

ABSTRACT

Deep learning is formulated as a discrete-time optimal control problem. This allows one to characterize necessary conditions for optimality and develop training algorithms that do not rely on gradients with respect to the trainable parameters. In particular, we introduce the discrete-time method of successive approximations (MSA), which is based on the Pontryagin's maximum principle, for training neural networks. A rigorous error estimate for the discrete MSA is obtained, which sheds light on its dynamics and the means to stabilize the algorithm. The developed methods are applied to train, in a rather principled way, neural networks with weights that are constrained to take values in a discrete set. We obtain competitive performance and interestingly, very sparse weights in the case of ternary networks, which may be useful in model deployment in low-memory devices.

Motivation & Objective

  • To reframe deep learning training as a discrete-time optimal control problem to enable gradient-free optimization.
  • To develop a stable, convergence-guaranteed method of successive approximations (MSA) based on Pontryagin’s maximum principle for training neural networks.
  • To apply the method to train neural networks with discrete-valued weights, particularly binary and ternary networks, for efficient inference.
  • To analyze the dynamics and stability of the MSA algorithm via a rigorous error estimate.
  • To demonstrate that the method yields sparse, high-performing models suitable for deployment on resource-constrained devices.

Proposed method

  • Formulates the training of a deep feed-forward neural network as a discrete-time optimal control problem with state dynamics governed by layer-wise transformations.
  • Applies the discrete-time Pontryagin’s maximum principle (PMP) to derive necessary optimality conditions for the control parameters (weights).
  • Introduces the method of successive approximations (MSA) based on PMP, which iteratively updates weights using a Hamiltonian-based update rule.
  • Incorporates a regularization term with a decreasing parameter $\rho_{k,t}$ to stabilize the MSA and prevent oscillations in weight updates.
  • Uses exponential moving averages for gradient estimates and applies the algorithm to binary and ternary networks with fixed weight sets.
  • Employs a sign-based update rule for discrete weights and includes a sparsity-promoting term $\lambda_t$ for ternary networks.

Experimental results

Research questions

  • RQ1Can deep learning be effectively reformulated as a discrete-time optimal control problem to enable gradient-free training?
  • RQ2How can the method of successive approximations (MSA) based on Pontryagin’s maximum principle be stabilized and made convergent for deep neural networks?
  • RQ3What is the impact of the regularization parameter $\rho_{k,t}$ on the convergence and stability of the MSA algorithm?
  • RQ4Can the proposed method train binary and ternary neural networks with competitive accuracy while achieving high weight sparsity?
  • RQ5How does the algorithm perform under non-smooth activations and loss functions, such as ReLU and smoothed hinge loss?

Key findings

  • The proposed MSA algorithm achieves competitive test accuracy on MNIST, CIFAR-10, and SVHN datasets when training binary and ternary networks.
  • For ternary networks, the method produces highly sparse models with a significant proportion of weights set to zero, which is beneficial for low-memory deployment.
  • The algorithm remains stable and convergent even when applied to non-smooth loss functions and activations, such as ReLU and square-smoothed hinge loss.
  • The inclusion of a decreasing regularization parameter $\rho_{k,t}$ is critical for stabilizing the MSA and preventing oscillations in weight updates.
  • Batch normalization is found to be essential for achieving good performance, consistent with prior work and supported by theoretical analysis.
  • The method does not require backpropagation or gradient computation with respect to network weights, enabling training without differentiable parameters.

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.