Objective precision in GP hyperparameter fits

The MAP objective contains a log determinant, a quadratic solve, and prior penalties. Their floating-point errors can obscure small changes near a minimum. A strict decrease test then rejects steps that are only noise. The rgmin adapter (gpr/ml/RgminOpt.inl, call set_objective_roundoff(1e-6)) uses the Hager–Zhang approximate Wolfe value window for these fits, with relative parameter epsilon = 1e-6.

Status: implemented. It applies to the rgmin:<method> hyperparameter modes, which include the default rgmin:lbfgs outside the classic profiles. The window is an acceptance policy, not a bound on the objective’s evaluation error.

For a descent direction p, write phi(a) = F(theta + a p). A trial inside the value window must satisfy both endpoint slope tests:

phi(a) - phi(0) <= epsilon |phi(0)|
phi'(a) <= (2 c1 - 1) phi'(0)
|phi'(a)| <= c2 |phi'(0)|

Here phi'(0) < 0, 0 < c1 < 1/2, and c1 < c2 < 1. The solver checks finite values and gradients. Approximate Wolfe acceptance after coordinate clipping checks slopes along the actual displacement. Gradient stopping uses the configured tolerance independently of the value window.

Guarantees and limits

For an exact quadratic restriction, the upper slope test implies Armijo decrease. Strong curvature also makes the secant product positive along a descent line. The rgmin Lean and SymPy checks establish these identities and inequalities. Sollya checks explicit binary64 examples where cancellation hides a decrease.

For a general nonlinear objective, endpoint derivatives alone cannot prove decrease. If each reported value has absolute error at most eta, the window bounds the true increase by epsilon |phi(0)| + 2 eta, using the reported opening value. The configured window itself is not an error certificate for a covariance solve.

The acceptance rule follows Hager and Zhang, SIAM Journal on Optimization 16 (2005), equations 4.1–4.3, with the relative parameter from their numerical experiments: doi:10.1137/030601880.