Secant Penalized BFGS: A Noise Robust Quasi-Newton Method Via Penalizing The Secant Condition

Brian Irwin, Eldad Haber · DOI

Introduction

The BFGS (Broyden–Fletcher–Goldfarb–Shanno) algorithm is a cornerstone of mathematical optimization. As a quasi-Newton method, it achieves high efficiency by approximating the Hessian—the matrix of second-order derivatives—using only first-order gradient information. This allows it to mimic the fast convergence of Newton’s method without the prohibitive computational cost of calculating the Hessian directly.

However, the standard BFGS algorithm possesses a significant vulnerability: it is highly sensitive to noise. In modern applications such as machine learning, large-scale engineering simulations, or stochastic optimization, gradient measurements are rarely perfect. When confronted with even moderate levels of noise, BFGS often fails. This paper introduces Secant Penalized BFGS (SP-BFGS), a novel adaptation designed to maintain robustness by treating curvature updates as a regularized estimation problem rather than a rigid constraint.

The Problem: The Fragility of the Secant Condition

The core of the BFGS update is the secant condition: $H_{k+1}y_k = s_k$, where $s_k$ represents the change in position and $y_k$ represents the change in the gradient. Standard BFGS treats this condition as an absolute requirement. In every iteration, the algorithm solves a sub-problem to find a new inverse Hessian approximation ($H_{k+1}$) that satisfies this equality while remaining as close as possible to the previous estimate ($H_k$).

In a noise-free environment, this "overwriting" process works remarkably well. However, when gradients are corrupted by noise, the vector $y_k$ becomes unreliable. Because standard BFGS forces the secant condition to be met exactly, it incorporates this noise directly into the Hessian approximation. This leads to a "garbage-in, garbage-in" cycle where the curvature model quickly deteriorates, causing the algorithm to stall or diverge.

Methods: From Overwriting to Averaging

The authors propose a fundamental shift in how the Hessian is updated. Instead of enforcing the secant condition as a hard constraint, SP-BFGS reformulates the update as a penalized optimization problem. They introduce a penalty term inspired by regularized least squares, governed by a parameter $\beta_k$:

  • High $\beta_k$: The penalty for violating the secant condition is high, causing the algorithm to behave like standard BFGS.
  • Low $\beta_k$: The algorithm prioritizes staying close to the previous Hessian estimate, effectively ignoring the new (potentially noisy) data.

The critical innovation lies in the dynamic selection of $\beta_k$. The authors suggest making $\beta_k$ proportional to the step size ($\|s_k\|$). This heuristic is based on the observation that in small steps, the signal-to-noise ratio of the gradient change is typically low. By reducing the penalty for small steps, SP-BFGS prevents the algorithm from fitting its curvature model to local noise. This transforms BFGS from a process that overwrites its memory into one that averages curvature information over time.

Experimental Evaluation

To validate the robustness of SP-BFGS, the researchers conducted experiments across three distinct scenarios:

  1. Ill-Conditioned Quadratic Functions: A 4-dimensional test case designed to isolate how noise affects Hessian estimation. This demonstrated that while standard BFGS's curvature estimates "deteriorated massively" in noisy regions, SP-BFGS maintained a stable and accurate approximation.
  2. The CUTEst Benchmark: The algorithm was tested on 32 diverse problems from the standard CUTEst test set, ranging from 2 to 1000 dimensions. This set included complex non-convex landscapes like the Rosenbrock function.
  3. Synthetic Noise Injection: To simulate real-world conditions, the researchers added uniformly sampled noise to both function evaluations and gradient measurements.

Key Results and Insights

The numerical results indicate that SP-BFGS offers a significant improvement in reliability and accuracy:

  • Performance Dominance: On the noisy CUTEst problems, SP-BFGS outperformed standard BFGS in approximately 70% of cases and was at least as effective in 90% of tests.
  • Optimality Gap: SP-BFGS consistently reached lower objective function values—often by several orders of magnitude—before reaching the "noise floor" where further optimization becomes impossible.
  • Theoretical Stability: The authors proved that for strongly convex functions, SP-BFGS is guaranteed to converge linearly to a neighborhood of the true solution, even with bounded noise. Furthermore, the method naturally relaxes the "curvature condition" ($s_k^T y_k > 0$), which is a frequent point of failure for standard BFGS in non-convex or noisy settings.

Conclusion and Future Work

SP-BFGS represents a significant step forward in making quasi-Newton methods practical for "dirty" data environments. By replacing the rigid secant condition with a flexible penalty, the algorithm gains the ability to filter out noise while still capturing essential curvature information.

While the current work focuses on the full-memory version of the algorithm, the authors are currently developing a Limited-Memory (L-SP-BFGS) variant to handle the high-dimensional requirements of deep learning. Future research will also investigate more sophisticated heuristics for the penalty parameter and the algorithm's performance under different noise distributions, such as multiplicative or deterministic simulation errors.

Summary updated

BibTeX
@article{irwin2020secant,
  author = {Brian Irwin and Eldad Haber},
  title = {{Secant Penalized BFGS: A Noise Robust Quasi-Newton Method Via Penalizing The Secant Condition}},
  journal = {Comput. Optim. Appl},
  year = {2020},
  doi = {10.1007/s10589-022-00448-x},
}
Figure