NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Randomized Algorithm for Nonconvex Minimization With Inexact Evaluations and Complexity Guarantees

Shuyao Li, Stephen J. Wright

Introduction

Finding local minima in nonconvex optimization is a fundamental challenge in training deep neural networks. While simple gradient descent is often sufficient, it frequently stalls near saddle points—regions where the gradient is zero but the surface curves downwards in some directions. Escaping these points typically requires second-order information, such as the Hessian matrix. However, traditional second-order methods face two significant hurdles: they often require exact derivative information and rely on frequent evaluations of the objective function $f(x)$ to ensure progress. In many practical scenarios, such as large-scale machine learning with mini-batching, derivatives are noisy and function evaluations are computationally prohibitive.

Addressing the Inexactness Challenge

This research introduces a randomized second-order algorithm designed to find an approximate second-order stationary point (SOSP) using only inexact gradients and Hessians, without ever evaluating the objective function itself. An $(\epsilon_g, \epsilon_H)$-SOSP is defined as a point where the gradient norm is small ($\|\nabla f(x)\| \leq \epsilon_g$) and the Hessian has no significant negative eigenvalues ($\lambda_{\min}(\nabla^2 f(x)) \geq -\epsilon_H$).

The proposed method, Algorithm 1, alternates between two primary strategies:

  1. Gradient Steps: When the estimated gradient is large, the algorithm performs a standard descent step.
  2. Randomized Negative Curvature Steps: When the gradient is small but the Hessian indicates a direction of negative curvature, the algorithm identifies an approximate eigenvector corresponding to the most negative eigenvalue.

The "Coin-Flip" Innovation

The core innovation lies in how the algorithm handles negative curvature. Traditional methods typically test two directions ($+p$ and $-p$) and evaluate the function value to see which one yields a decrease. This algorithm instead employs a randomized "coin-flip" strategy ($\sigma_k = \pm 1$) to choose the sign of the step.

By leveraging the second-order Taylor expansion, the authors demonstrate that while an individual step might occasionally move "uphill" due to noise or the random choice, the function value decreases on average. Using martingale analysis, they prove that the algorithm converges to a solution almost surely, effectively achieving Objective-Function-Free Optimization (OFFO).

Key Theoretical Insights

The paper provides several advancements over existing literature:

  • Relative Error Tolerance: The algorithm allows gradient errors to be relative to the gradient's magnitude. High precision is only required as the algorithm approaches a stationary point, allowing for noisier estimates during the initial phases of optimization.
  • Decoupled Tolerances: Unlike previous frameworks that enforced a rigid relationship between gradient and Hessian tolerances (e.g., $\epsilon_H = \sqrt{\epsilon_g}$), this method allows $\epsilon_g$ and $\epsilon_H$ to be set independently. This flexibility is particularly beneficial for specific problems like low-rank matrix recovery.
  • Optimal Iteration Complexity: The algorithm is proven to reach an $(\epsilon_g, \epsilon_H)$-SOSP in $O(\max\{\epsilon_g^{-2}, \epsilon_H^{-3}\})$ iterations. This matches the best-known rates for algorithms that have access to exact information.

Practical Implications and Limitations

The theoretical framework was validated on finite-sum problems and low-rank matrix recovery tasks. In matrix sensing, the decoupled error tolerances allow for significantly more efficient sampling—improving upon previous benchmarks by a factor related to the condition number of the problem.

However, the algorithm's reliance on "short steps" to guarantee descent without function checks means it may be more conservative than methods using adaptive line searches. Additionally, it requires knowledge of the Lipschitz constants for the gradient and Hessian. While the iteration complexity is optimal, the total sample complexity in purely stochastic settings remains an area for future refinement, potentially through adaptive sample size adjustments.

Conclusion

By combining randomized direction selection with rigorous martingale analysis, this work provides a robust framework for nonconvex optimization in noisy environments. The ability to guarantee second-order optimality without objective function evaluations marks a significant step toward more efficient and resilient large-scale machine learning algorithms.

Summary updated

BibTeX
@article{li2025randomized,
  author = {Shuyao Li and Stephen J. Wright},
  title = {{A Randomized Algorithm for Nonconvex Minimization With Inexact Evaluations and Complexity Guarantees}},
  journal = {J. Optim. Theory Appl.},
  year = {2025},
  doi = {10.1007/s10957-025-02817-y},
}
Figure