Stochastic Subspace Descent Accelerated via Bi-fidelity Line Search

Nuojin Cheng, Alireza Doostan, Stephen Becker · DOI

Abstract

Zeroth-order (ZO) optimization is a critical tool for black-box scenarios where gradients are unavailable. However, these methods are often computationally expensive due to the high number of function evaluations required. This paper presents BF-SSD, a novel algorithm that accelerates high-dimensional gradient-free optimization by leveraging bi-fidelity line search. By utilizing inexpensive low-fidelity (LF) models to construct temporary 1D surrogates, BF-SSD significantly reduces the number of costly high-fidelity (HF) evaluations needed to determine optimal step sizes. Experimental results across synthetic benchmarks, kernel ridge regression, adversarial attacks, and language model fine-tuning demonstrate that BF-SSD achieves superior efficiency compared to standard zeroth-order techniques.

Introduction

In many modern scientific and engineering applications—ranging from the hyperparameter tuning of massive language models to the simulation of complex physical systems—optimization must be performed in a "black-box" setting. In these scenarios, while the objective function can be evaluated, its gradient is inaccessible. Zeroth-order (ZO) optimization methods address this by estimating gradients through function queries. However, as the dimensionality ($D$) of the problem increases, the number of queries required to make progress becomes prohibitively expensive.

The Challenge: Step-Size Selection

A primary bottleneck in ZO optimization is the selection of an appropriate step size (learning rate). Traditional line search techniques, which find the optimal step size by testing multiple points along a search direction, require numerous function evaluations. In high-stakes environments, such as large-scale AI training or high-fidelity engineering simulations, the cost of these "high-fidelity" (HF) evaluations is a major constraint.

Methodology: Bi-Fidelity Line Search (BF-SSD)

The proposed BF-SSD algorithm introduces a bi-fidelity approach to mitigate this cost. The method assumes access to two versions of the objective function: a high-fidelity (HF) model that is accurate but expensive, and a low-fidelity (LF) model that is less accurate but significantly cheaper.

The core innovation lies in building a temporary 1D surrogate model during each iteration:

  1. Subspace Descent: The algorithm estimates the gradient within a random, low-dimensional subspace to minimize initial query costs.
  2. Surrogate Construction: Using the LF model and a minimal number of HF samples (often just one or two), the algorithm "corrects" the LF model to create a 1D approximation of the HF function along the current search path.
  3. Backtracking on the Surrogate: A standard backtracking line search is performed on this inexpensive surrogate to select the step size. A full HF evaluation is only committed once the step size is finalized.

This "local" surrogate approach is robust because it only requires accuracy in the immediate neighborhood of the current search direction, allowing it to work even with "uncalibrated" LF models that are merely well-aligned with the HF objective.

Experimental Evaluation

The authors evaluated BF-SSD across four distinct domains:

  • Synthetic Benchmarks: Testing on Nesterov’s "worst function in the world" to assess optimization robustness.
  • Kernel Ridge Regression: Utilizing the California Housing dataset with a low-rank Nyström approximation as the LF model.
  • Adversarial Attacks: Generating attacks on a deep CNN (MNIST) using a smaller "student" network as the LF guide.
  • Language Model Fine-tuning: Soft prompting DistilBERT on the aclImdb dataset, where the LF model used a reduced data sample size.

Key Results

The performance of BF-SSD was measured in terms of Equivalent HF Function Calls, a metric that normalizes the cost of LF queries against HF queries.

Convergence comparison of BF-SSD against baseline methods on a synthetic benchmark, showing superior efficiency in terms of equivalent high-fidelity function calls.

As shown in the experimental results, BF-SSD consistently outperforms standard Gradient Descent (GD), Coordinate Descent (CD), and fixed-step Stochastic Subspace Descent (SSD). In the synthetic benchmark, BF-SSD reached lower error levels significantly faster than all baseline methods. Similar efficiency gains were observed in adversarial attack scenarios and language model fine-tuning, where BF-SSD achieved competitive results with a fraction of the expensive transformer evaluations required by other methods.

Conclusion and Future Work

BF-SSD represents a significant step forward in making zeroth-order optimization practical for high-dimensional, expensive problems. By shifting the burden of line search to inexpensive surrogates, the method achieves substantial speedups. Future research will focus on refining hyperparameter selection and bridging the theoretical gap between the current convergence analysis and the fully stochastic nature of the SSD gradient approximation.

Summary updated

BibTeX
@article{cheng2025stochastic,
  author = {Nuojin Cheng and Alireza Doostan and Stephen Becker},
  title = {{Stochastic Subspace Descent Accelerated via Bi-fidelity Line Search}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=xuOQUs5YmT},
}
Figure