Purpose: Find extreme eigenvalues and eigenvectors of a large sparse symmetric matrix, or solve sparse symmetric linear systems, using only matrix-vector products — for iterations.

The Idea: Krylov subspaces

Given and a start vector , the Krylov subspace is

These vectors quickly become numerically parallel, so Lanczos orthogonalises as it goes. For a symmetric , the miracle is that each new vector only needs to be orthogonalised against the previous two — a three-term recurrence:


In the resulting orthonormal basis, becomes a small tridiagonal matrix , whose eigenvalues (computable in ) approximate the extreme eigenvalues of extremely well — long before reaches .

Complexity

  • Per iteration: one matrix-vector product, , plus vector arithmetic
  • iterations:
  • Space: if only eigenvalues are needed (keep three vectors); to reconstruct eigenvectors

Extreme eigenvalues typically converge in iterations — often a few dozen for matrices with millions of rows.

Loss of orthogonality

In floating point, the computed lose mutual orthogonality once an eigenvalue converges, producing spurious duplicate (“ghost”) eigenvalues. Real implementations use selective or partial reorthogonalisation to control this. Over a finite field the problem disappears entirely — which is why the block Lanczos used in factorisation is numerically trivial.

Lanczos vs Wiedemann over finite fields

Both solve sparse systems using only matrix-vector products; they are the two standard choices for the linear algebra stage of the number field sieve.

LanczosWiedemann
Needs symmetryyes ( if not)no
Iterations
Failure modeself-orthogonal vectors over (handled by blocking)unlucky random vectors (retry)
Parallelismgood (block Lanczos)excellent (block Wiedemann)
Memory vectors scalars

Block Lanczos (Montgomery) is generally faster on a single machine; block Wiedemann distributes better across many.

MethodFor
Lanczossymmetric eigenproblems
Conjugate gradientsymmetric positive definite systems — is Lanczos, rearranged
Arnoldinon-symmetric eigenproblems; full orthogonalisation,
GMRESnon-symmetric systems, built on Arnoldi
Power iterationthe single dominant eigenvalue; Lanczos is strictly better

Variants / Use Cases

  • PageRank and spectral graph theory — the second eigenvalue of a graph Laplacian, spectral clustering, expansion
  • Integer factorisation / discrete logs — block Lanczos over
  • Physics and quantum chemistry — ground-state energies of enormous sparse Hamiltonians; the original motivation
  • Wiedemann — the finite-field alternative
  • Rank and Linear Systems — the topic page