Stochastic Zeroth-Order Method for Computing Generalized Rayleigh Quotients

Jonas Bresch, Oleh Melnyk, Martin Schoen, Gabriele SteidlarXiv 2025 · DOI

Abstract

Computing the largest generalized eigenvalue is a cornerstone of numerical linear algebra, yet standard methods often fail when matrix transposes or inverses are inaccessible. This paper introduces a novel stochastic zeroth-order Riemannian approach that maximizes the generalized Rayleigh quotient using only forward operator evaluations. By sampling random 1D subspaces and applying an exact analytical step size, the algorithm bypasses the need for adjoint operators and matrix inversions. Numerical experiments demonstrate its superior performance over existing zeroth-order methods and its robustness to ill-conditioned systems.

Introduction

Maximizing the generalized Rayleigh quotient—finding the vector $v$ that maximizes $R(A, B) = \frac{\langle v, Av \rangle}{\langle v, Bv \rangle}$—is essential for tasks like spectral analysis and stability testing. However, standard iterative solvers typically rely on two components that are often unavailable or computationally expensive: matrix-adjoint products ($A^T$) and matrix inverses ($B^{-1}$).

In many real-world applications, such as computed tomography (CT), the forward operator $A$ is known, but its exact transpose is replaced by a computationally cheaper approximation. This "adjoint mismatch" can lead to significant errors in gradient-based optimization. Furthermore, computing the inverse of a large positive definite matrix $B$ is often computationally prohibitive and numerically unstable. To address these challenges, the authors propose a "zeroth-order" approach that requires only evaluating products with $A$ and $B$.

Stochastic Zeroth-Order Riemannian Algorithm

The core of the proposed method is a Stochastic Zeroth-Order Riemannian Algorithm. Unlike general-purpose zeroth-order methods that approximate gradients using finite differences, this approach leverages the specific structure of the Rayleigh quotient.

Visualization of the generalized Rayleigh quotient for different matrices $B$. The goal is to find the highest point on the surface constrained to the unit sphere.

Key Algorithmic Features

  • Random Subspace Sampling: In each iteration, the algorithm samples a random direction from the tangent space of the unit sphere (defined with respect to $B$).
  • Analytical Step Size: Instead of using a fixed or decaying step size, the authors derive an exact analytical solution for the optimal step size that maximizes the Rayleigh quotient along the chosen 1D line. This makes the algorithm significantly more robust and efficient than standard gradient-based methods.
  • Multi-sampling: The basic one-sample method is extended to a multi-sample version that reduces the variance of the search direction, accelerating convergence.

Experimental Evaluation

The authors evaluated their method using synthetic random Gaussian matrices and a real-world-inspired Karhunen-Loève problem involving a covariance matrix built from an RBF kernel and a mass matrix from a 1D grid.

Key Results

  • Convergence: The algorithm is proven to converge to the set of global maximizers at a sublinear rate ($1/n$) with probability one.
  • Performance: In numerical tests, the proposed method significantly outperformed other zeroth-order techniques like ZO-RGA and the Gen-Oja algorithm.
  • Robustness: While high condition numbers for $B$ can slow convergence, the multi-sample version remains effective in scenarios where other methods fail. The method also successfully extends to complex-valued matrices.

Discussion and Conclusion

The success of this method demonstrates that generalized eigenvalue problems can be solved even when knowledge of the system is "one-sided" (i.e., when only the forward operator is available). By restricting the problem to a 1D subspace, a complex non-convex optimization problem becomes analytically solvable, providing a much more stable update than traditional gradient approximations.

While the convergence rate is sublinear—a common trait for zeroth-order methods—the use of an optimal step size allows this method to compete with first-order methods that suffer from adjoint mismatch. Future work may involve combining these "slicing" ideas with variance-reduction techniques to further enhance performance in very high-dimensional settings.

Summary updated

BibTeX
@misc{bresch2025stochastic,
  author = {Jonas Bresch and Oleh Melnyk and Martin Schoen and Gabriele Steidl},
  title = {{Stochastic Zeroth-Order Method for Computing Generalized Rayleigh Quotients}},
  year = {2025},
  eprint = {2512.05520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.05520},
}
Figure