Nested-Set Hessian
- Nested-Set Hessian is a derivative-free method that approximates the Hessian of a scalar function using nested difference schemes.
- It efficiently reuses function evaluations to attain minimal cost and provides explicit first-order (O(Δ)) error bounds.
- The method extends to overdetermined configurations and calculus-based variants, enhancing stability and applicability in optimization.
The nested-set Hessian is a derivative-free, first-order accurate method for approximating the Hessian matrix of a twice-differentiable scalar function , specifically designed for use in settings where explicit derivatives are unavailable. Rooted in the theory of generalized simplex gradients, the approach constructs the Hessian by combining two nested difference schemes that efficiently reutilize function evaluations. For carefully chosen sample structures, the nested-set Hessian achieves a minimal evaluation cost of while providing explicit error bounds of order in the sampling radii. Its framework further permits calculus-based composition rules and extension to overdetermined sets, supporting flexible application within model-based derivative-free optimization routines (Hare et al., 2020).
1. Mathematical Foundations and Formal Construction
Given a base point , the method relies on two sets of directions:
- Inner set (full row rank)
- Outer set (full row rank)
The generalized simplex gradient at with respect to is defined as
where
0
and 1 denotes the Moore–Penrose pseudoinverse. For 2 and nonsingular 3, this recovers the classical simplex gradient.
The nested-set Hessian introduces a further set 4 for a second layer of differencing. For each 5, compute both 6 and 7. Construct the matrix
8
and set
9
This estimator approximates directional second derivatives via differences of approximate gradients. The error bound is given by
0
where 1, and 2 is explicit in the pseudoinverse norms and the Lipschitz constant of the true Hessian (Hare et al., 2020).
2. Evaluation Complexity and Minimal Point Sets
The generic requirement for function evaluations is at most 3, comprising 4, 5, 6, and 7 (for all 8). However, if 9 and both 0 and 1 have favourable structure, numerous points coincide and only
2
distinct function evaluations are necessary. A minimal poised set for the nested-set Hessian consists of 3 with 4, such that the collection
5
has cardinality exactly 6. One canonical construction uses 7 and 8 (specific difference matrices), and all full-row-rank 9 can be generated via transformations from this canonical case (Hare et al., 2020).
The method readily generalizes to 0 or 1 (overdetermined geometry), enhancing stability via reduced pseudoinverse norms, though at the cost of additional function values.
| Configuration | Function Evaluations | Accuracy |
|---|---|---|
| General (2) | 3 | 4 |
| Minimal 5 | 6 | 7 |
| Quadratic Interpolation | 8 | 9 gradient / exact Hessian for quadratics |
3. Error Bounds and Stability Considerations
Assuming 0 near 1 with Lipschitz constant 2, the error in the nested-set Hessian is bounded by
3
where 4. For 5,
6
Stability is governed by the conditioning of 7 and 8 (through the pseudoinverse norms). For highly nonlinear 9, 0 must be small to guarantee control of 1 error (Hare et al., 2020).
4. Algorithmic Procedure
The computation proceeds through the following steps:
Input: x0 ∈ ℝⁿ, S=[s¹…sᵐ] ∈ ℝⁿ×ᵐ, T=[t¹…tᵏ] ∈ ℝⁿ×ᵏ
1. Evaluate f0 = f(x0)
2. For j = 1…k, evaluate fT[j] = f(x0 + t^j)
3. Compute δ0 = fT – f0 * 1ₖ, then ∇s0 = (Tᵀ)† δ0
4. For i = 1…m:
Evaluate fS[i] = f(x0 + s^i)
For j = 1…k, evaluate fST[i,j] = f(x0 + s^i + t^j)
Compute δi[j] = fST[i,j] – fS[i]
Compute ∇s_i = (Tᵀ)† δi
Set row i of Δ_∇ = (∇s_i – ∇s0)ᵀ
5. Compute H = (Sᵀ)† Δ_∇
Output: Approximate Hessian H ≈ ∇²f(x⁰)
This nested structure enables efficient reuse of function values, particularly in minimal sets (Hare et al., 2020).
5. Calculus-Based Approximation Variants
Two calculus-based Hessian approximation schemes are developed to address composite expressions:
- Simplex calculus Hessian replaces gradient and Hessian terms in standard product, quotient, and power rules with the corresponding nested-set estimators, e.g.,
2
This variant exhibits 3 error and exactness for affine components.
- Quadratic calculus Hessian constructs quadratic interpolation models 4 for 5 and uses these for gradient terms, while retaining nested-set Hessians in second-derivative terms. For composite 6:
7
This formula yields 8 accuracy and is exact whenever all factors are quadratic (Hare et al., 2020).
6. Comparative Assessment and Applicability
Compared to alternative approaches, the nested-set Hessian matches the minimal evaluation cost of quadratic interpolation while simplifying implementation by relying on nested simplex-gradient calculations rather than solving a global system. In contrast, finite-difference Hessians using central difference of gradients require 9 gradient evaluations—translating to 0 function values due to the cost of gradient estimation.
The nested-set Hessian offers:
- Explicit 1 error for the Hessian estimator,
- Minimal 2 cost for well-structured sets,
- Flexible extension to overdetermined (stabilized) configurations,
- Compatibility with calculus-based rules supporting combinations of estimated Hessians.
Its limitations include only first-order (3) accuracy, sensitivity to ill-conditioning in 4 and 5, and the need for sufficiently small 6 to control error for highly nonlinear functions. Quadratic interpolation, by contrast, achieves higher gradient accuracy (7) and exactness for quadratics but is more complex to implement (Hare et al., 2020).
Overall, the nested-set Hessian supplies an efficient, robust, and implementable framework for derivative-free second-order information that is readily integrated into model-based optimization routines and advanced calculus operations on estimated models.