A Gradient-Based Optimization Method Using the Koopman Operator

Mengqi Hu, Bian Li, Yi-An Ma, Yifei Lou, Yang XiuSIAM J. Appl. Dyn. Syst 2023

TL;DR

This paper introduces a novel optimization framework that treats finding a minimum as finding the steady state of a dynamical system. By applying the Adaptive Spectral Koopman (ASK) method, the authors linearize complex nonlinear gradient flows, allowing for highly accurate convergence and superior stability in notoriously difficult min-max (saddle point) problems.

What Problem Does This Paper Address?

Most optimization algorithms we use today—like Gradient Descent (GD), Adam, or Nesterov Acceleration—are based on temporal discretization. They take discrete steps in time, and their success heavily depends on tuning hyperparameters like the learning rate. If the step is too large, the system diverges; if it's too small, it crawls.

Furthermore, min-max problems (common in GAN training and game theory) are a headache for standard methods. These systems often exhibit "cyclic behavior," where the optimizer orbits the solution forever without actually landing on it. The authors aim to move away from simple "step-taking" and instead leverage the global properties of the underlying dynamical system to find equilibria more robustly.

Methods

The core idea is to reformulate the optimization problem $\min f(x)$ as an Ordinary Differential Equation (ODE): $\dot{x} = -\nabla f(x)$. The "solution" to the optimization is simply the point where the system stops moving (the steady state).

To solve this ODE, they use the Koopman Operator approach:

  1. Linearization: The Koopman operator is a linear (but infinite-dimensional) operator that describes how functions of the state evolve. It turns a finite-dimensional nonlinear problem into an infinite-dimensional linear one.
  2. ASK (Adaptive Spectral Koopman): Since we can't compute an infinite-dimensional operator, the authors use a truncated version. They approximate the system using a finite number of eigenfunctions and eigenvalues.
  3. Spatial Discretization: Unlike GD, which discretizes time, this method discretizes the space around the current point using sparse grids. This helps avoid the "curse of dimensionality" that usually plagues spectral methods.
  4. Adaptivity: As the system evolves toward the minimum, the "neighborhood" being modeled shifts. The algorithm periodically updates this local region to maintain a high-fidelity linear approximation of the nonlinear landscape.

Datasets

The authors evaluated their method on a suite of standard mathematical "torture tests" for optimizers:

  • Bowl-shaped functions: Rotated Hyper-Ellipsoid, Sum of Different Powers, and Bohachevsky 2.
  • Valley-shaped functions: Three-hump and Six-hump Camel functions, Dixon-Price, and the infamous Rosenbrock function.
  • High-dimensional benchmarks: Least-squares minimization up to 600 dimensions and a 100-dimensional Dixon-Price problem.
  • Min-max problems: Bilinear saddle points and complex non-convex saddle landscapes.

Key Insights and Ideas

  • The "One-Step" Wonder: For certain convex problems (like the Rotated Hyper-Ellipsoid), the ASK method can reach the global optimum in a single iteration. This is because the Koopman approximation captures the global dynamics perfectly if the underlying system is essentially linear.
  • Breaking the Cycle: In min-max problems where standard methods like GDA or OGDA (Optimistic Gradient Descent Ascent) might circle a saddle point indefinitely, ASK "sees" the linear structure of the flow and drives the system directly to the equilibrium.
  • Continuous vs. Discrete: By treating optimization as a continuous flow, the method is less sensitive to the "step size" issues that plague traditional discrete-step optimizers.
  • Spatial Intelligence: The shift from time-domain discretization to spatial-domain discretization allows the algorithm to navigate asymmetric valleys (like the Rosenbrock "banana" function) much more efficiently than standard gradient-based methods.

Key Results

  • Precision: ASK consistently achieved gradient norms (a measure of how close you are to the true minimum) several orders of magnitude smaller than GD, NAG, or Heavy Ball (e.g., $10^{-9}$ vs $10^{-7}$).
  • Robustness in High Dimensions: In the 100D Dixon-Price min-max challenge, ASK had an 85% success rate, while GD, NAG, and OGDA all had a 0% success rate.
  • Efficiency: While each "step" of ASK is computationally heavier (requiring an eigen-decomposition), it requires far fewer steps to converge. In many high-dimensional least-squares tests, ASK was significantly faster in total wall-clock time than traditional gradient descent.

Limitations and Future Work

  • Computational Overhead: The method requires solving a generalized eigenvalue problem at each adaptivity step. While sparse grids help, this is still more expensive per-iteration than a simple gradient update.
  • Scaling to Deep Learning: The paper tests up to 600 dimensions. Modern neural networks have millions or billions of parameters. Scaling spectral methods to that regime remains a massive open challenge.
  • Theoretical Bounds: The authors provided an error bound for a special case, but a comprehensive numerical analysis for general non-convex functions is still needed.
  • Parameter Tuning: While it reduces "learning rate" headaches, it introduces new parameters like the "neighborhood radius" ($r$) and the "level of approximation" ($N$).

Reference: Hu, M., Li, B., Ma, Y.-A., Lou, Y., & Yang, X. (2023). A Gradient-Based Optimization Method Using the Koopman Operator. arXiv:2312.14361v1 [math.OC].

Summary updated

Abstract

In this paper, we propose a novel approach to solving optimization problems by reformulating the optimization problem into a dynamical system, followed by the adaptive spectral Koopman (ASK) method. The Koopman operator, employed in our approach, approximates the evolution of an ordinary differential equation (ODE) using a finite number of eigenfunctions and eigenvalues. We begin by providing a brief overview of the Koopman operator and the ASK method. Subsequently, we adapt the ASK method for solving a general optimization problem. Moreover, we provide an error bound to aid in understanding the performance of the proposed approach, marking the initial step in a more comprehensive numerical analysis. Experimentally, we demonstrate the applicability and accuracy of our method across a diverse range of optimization problems, including min-max problems. Our approach consistently yields smaller gradient norms and higher success rates in finding critical points compared to state-of-the-art gradient-based methods. We also observe the proposed method works particularly well when the dynamical properties of the system can be effectively modeled by the system's behaviors in a neighborhood of critical points.
BibTeX
@article{hu2023gradient,
  author = {Mengqi Hu and Bian Li and Yi-An Ma and Yifei Lou and Yang Xiu},
  title = {{A Gradient-Based Optimization Method Using the Koopman Operator}},
  journal = {SIAM J. Appl. Dyn. Syst},
  year = {2023},
}
Figure