Implicit Regularization of AdaDelta

Matthias Englert, Ranko Lazic, Avi SemlerTMLR 2024

Abstract

This paper investigates the implicit bias of the AdaDelta adaptive optimization algorithm when applied to locally Lipschitz, positively homogeneous, and o-minimally definable neural networks using exponential or logistic loss. We demonstrate that after achieving perfect training accuracy, the resulting adaptive gradient flows converge in direction to a Karush-Kuhn-Tucker (KKT) point of the margin maximization problem. This indicates that AdaDelta performs the same implicit regularization as standard gradient descent, provided its internal stability parameters are isotropic. We further analyze generalizations of AdaDelta with time-varying decay coefficients and non-isotropic stability terms, proving that the latter leads to a skewed margin maximization. Our theoretical findings are supported by numerical experiments on convolutional networks using MNIST and CIFAR-10 datasets.

Introduction

In the regime of overparameterized deep learning, models possess the capacity to fit training data in an infinite variety of ways. Despite this, these models generalize remarkably well to unseen data. This phenomenon is largely attributed to implicit regularization: the optimization algorithm itself inherently biases the model toward specific solutions—typically those that maximize the "margin" between classification boundaries.

While the implicit bias of standard Gradient Descent (GD) is well-documented, adaptive optimizers like Adam, RMSProp, and AdaDelta have remained more theoretically elusive. AdaDelta is particularly complex because its update rule incorporates exponentially decaying averages in both the numerator and the denominator. This study bridges that gap, providing a formal proof of AdaDelta's margin-maximizing properties and identifying the conditions under which it mirrors or diverges from standard gradient flow.

Theoretical Framework: Continuous Generalized AdaDelta

To analyze the algorithm's behavior, we model AdaDelta as a gradient flow—the continuous-time limit as the learning rate approaches zero. This approach allows for the application of sophisticated mathematical tools to handle the non-smooth landscapes typical of neural networks (e.g., those using ReLU activations).

O-minimal Geometry and the Adapter Analysis

We utilize the framework of o-minimal geometry to manage the non-smoothness of the objective function. A central component of our analysis is the "skewed adapter" (denoted as $\beta$), which represents the ratio of the moving averages within the AdaDelta update. A significant portion of our proof involves demonstrating that this adapter eventually stabilizes and converges to 1. This stabilization is the "bridge" that allows us to link AdaDelta’s complex adaptive behavior to the known convergence properties of simpler gradient flows.

Key Insights

The Role of Isotropy

Our findings reveal that the deciding factor in AdaDelta’s bias is the configuration of its numerical stability terms ($\epsilon$ and $\delta$).

  • Isotropic Stability: If these terms are identical for every parameter in the network, AdaDelta behaves exactly like Gradient Descent, maximizing the standard Euclidean margin.
  • Non-Isotropic Stability: If stability terms vary across different weights, the optimizer still maximizes a margin, but it is a "skewed" version. In this scenario, the decision boundary is pushed away from data points in a warped, ellipsoidal manner rather than a uniform, spherical one.

Convergence Rates and Asymptotics

We confirm that while the training loss decreases toward zero, the Euclidean norm of the parameters increases to infinity. Specifically, we prove that the parameter norms grow at a rate proportional to the $L$-th root of $\log t$, where $L$ is the degree of homogeneity of the network. This matches the asymptotic rates observed in plain gradient flows.

Robustness to Schedules

Interestingly, the final direction of weight convergence is robust to changes in the decay schedule (how quickly the optimizer "forgets" past gradients). As long as the decay coefficients do not approach 1 too rapidly and the learning process is not prematurely terminated, the directional convergence remains consistent.

Empirical Validation

We corroborated our theoretical results through experiments across three distinct setups:

  1. Synthetic 2D Dataset: Used a two-layer Leaky ReLU perceptron to visualize the optimizer's path in 3D space.
  2. MNIST: Employed a 4-layer convolutional neural network (CNN) to verify the theory on standard image recognition tasks.
  3. CIFAR-10: Utilized a 14-layer VGG-16 network to test the findings in a complex, high-dimensional deep learning scenario.

In tests on MNIST and CIFAR-10, standard (isotropic) AdaDelta produced margins and test accuracies nearly identical to Stochastic Gradient Descent (SGD). Conversely, when stability terms were randomized (a variant we call AdaDeltaN), the normalized margin was significantly lower and more volatile, confirming that non-isotropy disrupts standard Euclidean regularization.

Conclusion and Future Work

This work provides a formal foundation for understanding the implicit bias of AdaDelta, proving that it converges to KKT points of margin maximization problems. However, several avenues for future research remain. Our analysis relies on continuous-time gradient flow; extending these proofs to discrete-time gradient descent for non-smooth ($C^1$) networks is a significant technical challenge. Additionally, while we have addressed adaptive scaling, the inclusion of momentum into this theoretical framework remains an open problem. Finally, while our results likely extend to multiclass scenarios, the current formal proofs are focused on binary classification using exponential or logistic loss.

Summary updated

BibTeX
@article{englert2024implicit,
  author = {Matthias Englert and Ranko Lazic and Avi Semler},
  title = {{Implicit Regularization of AdaDelta}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=nm40lbbwoR},
}
Figure