Setup
Direct solvers — LU factorisation (Module 2) and Cholesky (Module 2) — cost flops and require storage. For a Crank-Nicolson finite difference grid with spatial nodes, forming and factorising the full stiffness matrix is flops and 800 MB of storage — impractical. For a 2-factor interest rate PDE on a grid, the system is — far beyond direct methods.
Iterative solvers exploit the structure of the system: they require only matrix-vector products , never the factorisation. For sparse matrices (finite difference stencils, sparse covariance models), each costs rather than . The cost of the solve is where depends on the condition number.
Where iterative solvers appear in quant finance:
-
PDE pricing (finite differences). Black-Scholes and Heston PDEs on dense grids produce large tridiagonal or banded systems at each time step. For 1D grids the Thomas algorithm (a direct tridiagonal solver, ) is standard; for 2D grids, alternating direction implicit (ADI) splits into 1D tridiagonals. For 3D or coupled systems, iterative solvers (PCG) are used.
-
Yield curve calibration. Bootstrapping a swap curve with pillars gives an lower-triangular system (direct, trivial). Fitting a regularised Nelson-Siegel-Svensson model to market quotes leads to a normal-equations solve — either direct (via Cholesky) or iterative (CG) depending on .
-
Portfolio optimisation. Mean-variance with assets and linear constraints gives a KKT system of dimension . Cholesky is fine here. But factor-model covariance (low-rank plus diagonal) inverts analytically via Woodbury — no solver needed.
-
Large-scale calibration of stochastic vol models. Iterative refinement is used when the Jacobian is large and only approximately known (numerical differentiation), making direct factorisation unreliable.
Mathematical setting. We focus on three cases:
- SPD system with sparse and symmetric positive definite: solved by Conjugate Gradient (CG).
- Non-symmetric system: GMRES (Generalised Minimal RESidual).
- Overdetermined LS : LSQR.
Conventions. SPD unless stated. is the residual at step . is the error. is the A-norm (energy norm).
Financial Insight. In production calibration at a bank, iterative solvers are used not just for speed but for robustness: they can be stopped early (before convergence) when the residual is below market-quote precision. Solving to accuracy when quotes are only known to wastes computation. Early stopping is equivalent to a form of regularisation — an important practical insight.
Theory
1. Quadratic Minimisation and the CG Motivation
For SPD, solving is equivalent to minimising the strictly convex quadratic: The gradient is . The minimum is at .
Steepest descent. The simplest iterative approach: move in the direction of the residual by the optimal step size:
Definition 5.1 (Steepest Descent). Given , iterate: The step is chosen to minimise over .
Convergence of steepest descent:
Theorem 5.1. Let . Steepest descent satisfies: For ill-conditioned problems (), the convergence factor approaches 1 — very slow.
The fundamental problem with steepest descent: consecutive search directions in the Euclidean inner product, but they are not -orthogonal. The method revisits the same subspaces, causing "zigzag" convergence along narrow valleys of when eigenvalues are spread widely.
2. Conjugate Gradient Method
The CG method eliminates the redundant search directions by enforcing A-conjugacy:
Definition 5.2 (A-conjugate directions). Vectors are A-conjugate (A-orthogonal) if . A set is A-conjugate if for all .
Theorem 5.2 (CG Algorithm — Hestenes-Stiefel, 1952). Starting from , , , iterate:
Key properties (proofs by induction on the Krylov subspace structure):
- for (residuals are mutually orthogonal in the Euclidean inner product).
- for (search directions are A-conjugate).
- minimises over the Krylov subspace .
- In exact arithmetic, CG terminates in at most steps with the exact solution.
CG convergence rate:
Theorem 5.3 (CG convergence). The CG iterates satisfy: For : CG convergence factor ; steepest descent factor .
Comparison: CG depends on rather than . For (typical calibration matrix):
- Steepest descent: iterations to reduce error by .
- CG: iterations (100× faster).
Example 5.1 (Tridiagonal FD system). A Crank-Nicolson price step for a node grid gives a tridiagonal SPD matrix with (for the standard 1D heat equation stencil). CG converges in iterations to machine precision — competitive with the Thomas algorithm ( steps). For 2D ADI, the subproblems are 1D tridiagonals, so Thomas algorithm dominates.