Parameter-Agnostic Optimization under Relaxed Smoothness

Florian Hübler, Junchi Yang, Xiang Li, Niao He

Introduction

In classical optimization theory, functions are typically assumed to be $L$-smooth, meaning the gradient norm is bounded by a constant $L$. However, modern deep learning architectures like Transformers and LSTMs often violate this assumption. Instead, they exhibit $(L_0, L_1)$-smoothness, where the landscape's curvature increases as the gradient grows larger. While specialized algorithms exist for this regime, they generally require prior knowledge of the $L_0$ and $L_1$ parameters to set optimal step sizes. In practice, these values are unknown, leading to expensive hyperparameter tuning. This paper investigates whether "parameter-agnostic" algorithms can achieve optimal convergence without such prior knowledge.

Theoretical Framework: The "Agnostic Tax"

The authors introduce a rigorous framework for parameter-agnostic algorithms, defined as those using the same hyperparameters regardless of the specific $(L_0, L_1)$ constants of the target function. A key theoretical insight is the discovery of an "agnostic tax": being parameter-agnostic in the $(L_0, L_1)$ regime necessitates an exponential dependency on $L_1$ in convergence complexity. Using a new lower bound framework, the authors prove that this exponential penalty is mathematically indispensable for a broad class of normalized momentum algorithms in stochastic settings.

Algorithmic Approaches

The research focuses on two primary algorithmic strategies to handle relaxed smoothness:

  1. Normalized SGD with Momentum (NSGD-M): In stochastic settings, normalization serves as a shield, preventing the "exploding gradients" characteristic of $(L_0, L_1)$ functions from causing divergence during the initial adaptation phase. The authors prove that NSGD-M achieves a nearly rate-optimal complexity of $\tilde{O}(\epsilon^{-4})$ for finding $\epsilon$-stationary points.
  2. Backtracking Line Search: Interestingly, the exponential penalty can be avoided in deterministic (non-stochastic) settings. By employing a standard Armijo-style line search, Gradient Descent can adaptively determine step sizes.
Algorithm 2: Gradient Descent with Backtracking Line Search for deterministic settings.

Empirical Results and Robustness

The theoretical findings were validated using language modeling tasks (Penn Treebank and WikiText-2) with AWD-LSTM architectures. These tasks are known to exhibit $(L_0, L_1)$-smoothness.

Minimal train loss vs. scale parameter $\lambda$, showing the robustness of NSGD-M compared to Clipped SGD and AdaGrad-Norm.

As illustrated in the experimental results, NSGD-M demonstrates significant robustness to "bad" initial step sizes compared to baselines like Clipped SGD. While Clipped SGD may converge faster when perfectly tuned, NSGD-M maintains consistent performance across a much wider range of scales ($\lambda$), making it a superior "out-of-the-box" choice for practitioners.

Conclusion and Future Work

While this work establishes the viability and fundamental limits of parameter-agnostic optimization under relaxed smoothness, several challenges remain. The exponential $L_1$ penalty remains a hurdle in stochastic settings, as line search methods are difficult to implement with noisy gradients. Future research may focus on generalizing these lower bounds to all first-order parameter-agnostic algorithms and finding ways to reduce the large constant factors associated with the adaptation phase.

Summary updated

BibTeX
@inproceedings{hubler2024parameter,
  author = {Florian Hübler and Junchi Yang and Xiang Li and Niao He},
  title = {{Parameter-Agnostic Optimization under Relaxed Smoothness}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure