Parameter-free Stochastic Optimization of Variationally Coherent Functions

Francesco Orabona, Dávid PálarXiv 2021

Abstract

We design and analyze an algorithm for first-order stochastic optimization of a large class of functions on $\mathbb{R}^d$. In particular, we consider the variationally coherent functions which can be convex or non-convex. The iterates of our algorithm on variationally coherent functions converge almost surely to the global minimizer $\boldsymbol{x}^*$. Additionally, the very same algorithm with the same hyperparameters, after $T$ iterations guarantees on convex functions that the expected suboptimality gap is bounded by $\widetilde{O}(\|\boldsymbol{x}^* - \boldsymbol{x}_0\| T^{-1/2+\epsilon})$ for any $\epsilon>0$. It is the first algorithm to achieve both these properties at the same time. Also, the rate for convex functions essentially matches the performance of parameter-free algorithms. Our algorithm is an instance of the Follow The Regularized Leader algorithm with the added twist of using rescaled gradients and time-varying linearithmic regularizers.

Introduction

Stochastic Gradient Descent (SGD) remains the cornerstone of modern machine learning. However, its efficacy is notoriously sensitive to the choice of the learning rate schedule. In the standard convex setting, the optimal learning rate typically depends on the distance between the initial point $\boldsymbol{x}_0$ and the unknown global minimizer $\boldsymbol{x}^*$. Since this distance is rarely known a priori, practitioners must resort to expensive hyperparameter tuning.

"Parameter-free" algorithms were developed to address this by automatically adapting to the unknown scale of the problem. While these methods have shown great promise in convex optimization, their behavior in non-convex landscapes has remained largely unexplored. This paper bridges that gap by introducing a single algorithm that maintains parameter-free performance for convex functions while providing rigorous convergence guarantees for a broader class of non-convex functions known as variationally coherent functions.

Variationally Coherent Functions

The core contribution of this work centers on the class of variationally coherent functions. A function $f$ is variationally coherent if, for every point $\boldsymbol{x}$, the negative gradient $-\nabla f(\boldsymbol{x})$ points at an angle of at most 90 degrees toward the global optimum $\boldsymbol{x}^*$. Formally, this is expressed by the condition $\langle \nabla f(\boldsymbol{x}), \boldsymbol{x} - \boldsymbol{x}^* \rangle \ge 0$.

This class is significantly broader than the class of convex functions. It encompasses:

  • Convex and Quasi-convex functions: Where the geometry naturally guides the gradient toward the minimum.
  • Star-convex and Pseudo-convex functions: Which may exhibit non-convexity but retain a global structure conducive to first-order optimization.

By targeting this class, the authors provide a framework that handles many non-convex problems that still possess a "well-behaved" global structure.

The Algorithm: FTRL with a Twist

The proposed algorithm is built upon the Follow The Regularized Leader (FTRL) framework, but it introduces two critical modifications to achieve its dual guarantees:

  1. Rescaled Gradients: Instead of using raw stochastic gradients, the algorithm applies a time-varying rescaling factor. This rescaling is inspired by the mechanics of SGD and is essential for ensuring that the algorithm does not diverge or become trapped in non-convex regions of the search space.
  2. Time-Varying Linearithmic Regularizers: The algorithm employs a specific regularizer $\psi_t$ that grows at a "linearithmic" rate (roughly $x \ln x$). This regularizer evolves over time, allowing the algorithm to search for the correct scale of the problem dynamically. This is the mechanism that enables "parameter-free" behavior, as the algorithm effectively learns the distance $\|\boldsymbol{x}^* - \boldsymbol{x}_0\|$ on the fly.

Unlike many theoretical algorithms that require "iterate averaging" (outputting the average of all previous points), this algorithm guarantees that the last iterate itself converges. This is a significant practical advantage, as the last iterate is typically what is used in real-world training scenarios.

Theoretical Results

The authors provide two primary theoretical guarantees for the same algorithm using the same hyperparameters:

1. Almost Sure Convergence

For any variationally coherent function, the sequence of iterates $\boldsymbol{x}_t$ produced by the algorithm is proven to converge to the global minimizer $\boldsymbol{x}^*$ with probability 1. This ensures that the algorithm is robust even when the underlying objective is not convex.

2. Near-Optimal Convex Rates

When the objective function is convex, the algorithm achieves an expected suboptimality gap of: $$\mathbb{E}[f(\boldsymbol{x}_T) - f(\boldsymbol{x}^*)] \le \widetilde{O}\left(\frac{\|\boldsymbol{x}^* - \boldsymbol{x}_0\|}{T^{1/2-\epsilon}}\right)$$ for any $\epsilon > 0$. This rate is nearly optimal for stochastic convex optimization in unbounded domains and matches the performance of specialized parameter-free algorithms that cannot handle non-convexity.

Conclusion and Future Work

This work presents the first stochastic optimization algorithm that is simultaneously parameter-free for convex functions and globally convergent for variationally coherent functions. It demonstrates that the generality required to handle non-convexity does not necessarily come at the cost of efficiency in the convex case.

Future research directions include relaxing the requirement for bounded stochastic gradients and exploring whether these rates can be extended to smooth, non-Lipschitz functions. Additionally, the question of whether the $T^{-1/2+\epsilon}$ rate can be improved to exactly $T^{-1/2}$ in unbounded domains remains an open theoretical challenge.

Summary updated

BibTeX
@misc{orabona2021parameter,
  author = {Francesco Orabona and Dávid Pál},
  title = {{Parameter-free Stochastic Optimization of Variationally Coherent Functions}},
  year = {2021},
  eprint = {2102.00236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.00236},
}
Figure