A Control Theoretic Framework for Adaptive Gradient Optimizers in Machine Learning

Kushal Chakrabarti, Nikhil ChopraarXiv 2022 · DOI

TL;DR

This paper bridges classical control theory and deep learning by modeling adaptive gradient optimizers as continuous-time dynamical systems. Using this state-space framework, the authors introduce AdamSSM, a new optimizer that adds a pole-zero pair to Adam's second-moment dynamics to filter out gradient noise. Empirical results demonstrate that AdamSSM successfully balances rapid training convergence with superior generalization accuracy across image classification and language modeling tasks.

What Problem Does This Paper Address?

Deep learning relies heavily on first-order optimization algorithms to train complex neural networks. While classical Stochastic Gradient Descent (SGD) generalizes well to unseen data, adaptive methods like Adam scale learning rates per-parameter and converge much faster. However, Adam often suffers from a notorious "generalization gap"—performing poorly on test datasets compared to SGD.

While variants like AdaBelief have been proposed to fix this generalization issue, they can sometimes slow down training. Furthermore, proving the mathematical convergence of these algorithms is traditionally highly complex and often relies on restrictive, unrealistic assumptions (such as assuming gradients are uniformly bounded).

The authors address these challenges by introducing a unified control-theoretic framework that simplifies convergence proofs and provides a systematic way to engineer better-performing optimizers.

Methods

The authors translate discrete optimization algorithms into continuous-time Ordinary Differential Equations (ODEs) and represent them as non-autonomous state-space models. Under this lens, the model parameters act as system states, and the gradients act as control inputs.

To improve upon Adam, the authors analyze its transfer function from squared gradients to the second raw moment estimate ($\nu$). In standard Adam, this system has only a single pole and no zeros. By utilizing classical linear systems theory, the authors introduce AdamSSM (Adaptive momentum estimation with Second-order dynamics of Second Moment). They add a carefully tuned left-half plane pole-zero pair to the second-moment dynamics, increasing its dynamical order by one. This addition acts as a low-pass filter to smooth out noisy gradient signals during training.

To make the algorithm practically applicable to machine learning pipelines, the continuous ODEs are discretized using a standard first-order explicit Euler scheme.

Datasets

The proposed AdamSSM optimizer was evaluated against several state-of-the-art methods using two benchmark tasks:

  • CIFAR-10: Used for image classification tasks trained on ResNet34 and VGG11 convolutional neural network architectures.
  • Penn TreeBank (PTB): Used for language modeling tasks trained on 1-layer, 2-layer, and 3-layer Long Short-Term Memory (LSTM) recurrent neural networks.

Key Insights and Ideas

  • Optimization as Control: Viewing optimization through a state-space lens allows researchers to use well-established control theory tools (like Barbalat's lemma) to simplify convergence proofs without requiring restrictive assumptions like uniformly bounded gradients.
  • The Power of a Pole-Zero Pair: In control theory, adding a zero can drastically improve a system's transient response. In AdamSSM, the added pole-zero pair acts as a low-pass filter that attenuates high-frequency noise in the squared gradients.
  • Damping out Noise: Numerical analysis reveals that while standard Adam's second-moment estimate fluctuates wildly due to mini-batch noise during training, AdamSSM exhibits larger damping and a much more stable signal, directly explaining its superior generalization capability on test data.

Key Results

Image Classification (CIFAR-10)

AdamSSM achieved the highest test accuracy among all compared adaptive methods (including AdaBelief, AdamW, and Yogi) on both architectures:

  • ResNet34: Reached 95.61% test accuracy, outperforming AdaBelief (95.44%) and Adam (93.02%).
Table 1: Comparisons between best training accuracy, best test accuracy, and number of training epochs required to achieve these accuracies for different algorithms on image classification task with ResNet34.
  • VGG11: Reached 91.49% test accuracy, compared to AdaBelief's 91.41% and Adam's 88.40%.
Table 2: Comparisons between best training accuracy, best test accuracy, and number of training epochs required to achieve these accuracies for different algorithms on image classification task with VGG11.

Language Modeling (Penn TreeBank)

Performance in language modeling is measured via perplexity (where lower values indicate better performance):

  • On a 1-layer LSTM, AdamSSM achieved a highly competitive test perplexity of 84.61, closely trailing standard Adam (84.28%) but beating other variants like AdamW and RAdam.
Table 3: Comparisons between best training set perplexity, best test set perplexity, and number of training epochs required to achieve these perplexities for different algorithms on language modeling task with 1-layer LSTM.
  • On the most complex 3-layer LSTM architecture, AdamSSM outperformed all other methods, achieving both the lowest training set perplexity (36.82) and test set perplexity (61.18).

Limitations and Future Work

  • Single-Moment Modification: The authors only modified the transfer function for the second moment estimate of the gradients. They note that this approach could be extended to modify the first moment estimate (momentum) as well.
  • Input Function Constraints: The framework currently assumes a specific well-behaved, non-negative function ($\psi$) for the gradient mapping; exploring alternative input functions might yield even better optimizers.
  • Asymptotic vs. Finite-Time Convergence: The theoretical analysis focuses purely on asymptotic convergence (proving the algorithm eventually hits a critical point). Characterizing the exact finite-time rate of convergence is left for future work.

Summary updated

BibTeX
@misc{chakrabarti2022control,
  author = {Kushal Chakrabarti and Nikhil Chopra},
  title = {{A Control Theoretic Framework for Adaptive Gradient Optimizers in Machine Learning}},
  year = {2022},
  eprint = {2206.02034},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.02034},
}
Figure