Setup
The Calibration Problem
Model calibration is the process of finding parameter values such that a pricing model reproduces observed market prices. In quantitative finance, this typically means:
- Given: market-implied vols for instruments (strikes , maturities , put/call flags).
- Find: model parameters minimising the weighted sum of squared residuals.
For the Heston model, (mean-reversion speed, long-run variance, vol-of-vol, correlation, initial variance). For SABR, .
Why implied vols, not prices? Fitting prices across different maturities and strikes without normalisation gives excessive weight to long-dated options (higher absolute prices). Fitting implied vols gives roughly equal weight across the surface and aligns with how traders think about calibration quality.
Assumptions
- The pricing function is differentiable in (needed for the Jacobian).
- : at least as many market instruments as model parameters (identified system). For Heston, instruments is typical.
- The loss surface has a local minimum near the initial guess . For most models, multiple local minima exist — global optimisation or multi-start is needed in production.
The Nonlinear Least-Squares Objective
Define residuals :
where are weights (typically proportional to the liquidity or inverse bid-ask spread of instrument ). The objective is:
The factor is conventional and simplifies gradient expressions. The calibration seeks:
subject to box constraints (e.g., , ).
Theory: Levenberg-Marquardt
Gauss-Newton as the Foundation
The gradient and Hessian of are:
where is the Jacobian matrix with .
The Gauss-Newton (GN) approximation drops the second-order term (the sum of ), giving:
This is exact when the residuals are small (near the solution). The GN update solves:
GN converges quadratically when the residuals are small and the problem is well-conditioned, but fails when is singular or ill-conditioned (degenerate directions in parameter space).
The LM Damping Term
Levenberg-Marquardt adds a damping term to :
where is the damping parameter and is a diagonal matrix.
Two standard choices for :
- Levenberg (1944): (identity). Moves in the steepest-descent direction when is large.
- Marquardt (1963): . Scales each parameter direction by its gradient curvature, making the step invariant to parameter rescaling. This is the standard choice.
Interpolation between GN and gradient descent. When : the equation becomes , i.e., Gauss-Newton. When : the update becomes , a scaled steepest-descent step. LM adaptively chooses between these extremes.
Geometric Interpretation
The LM step minimises a quadratic approximation to within a trust region:
for some trust-region radius . The damping is the Lagrange multiplier for the constraint. Large corresponds to a small trust region (conservative step); small allows a large step.
Damping Parameter Update Rule
A standard update rule (Marquardt 1963, as refined by Moré 1978):
- Evaluate proposed step: .
- Compute gain ratio: where is the quadratic model: .
- Accept the step if (e.g., ): set and decrease (e.g., ).
- Reject the step if : increase (e.g., ) and retry.
This self-tuning makes LM robust: it contracts to gradient descent near bad regions and expands to GN near the solution.
Jacobian Computation
The Jacobian is the most expensive part of LM calibration.
Finite Differences (FD)
Forward differences (first-order accurate, order ):
Requires extra model evaluations per iteration (one per parameter direction). For Heston with parameters and instruments, this is Fourier integrals per LM step.
Central differences (second-order accurate, order ):
Twice the cost, but significantly more accurate for the same step size . Step size selection: for forward, for central.
Analytic Jacobian for Affine Models
For models with a closed-form characteristic function (e.g., Heston, Bates), the sensitivity of the model price to each parameter can be computed by differentiating under the Fourier integral: