Arnoldi iteration

From Wikipedia, the free encyclopedia
  (Redirected from Arnoldi's algorithm)
Jump to navigation Jump to search

In numerical linear algebra, the Arnoldi iteration is an eigenvalue algorithm and an important example of iterative methods. Arnoldi finds the eigenvalues of general (possibly non-Hermitian) matrices; an analogous method for Hermitian matrices is the Lanczos iteration. The Arnoldi iteration was invented by W. E. Arnoldi in 1951.

The term iterative method, used to describe Arnoldi, can perhaps be somewhat confusing. Note that all general eigenvalue algorithms must be iterative. This is not what is referred to when we say Arnoldi is an iterative method. Rather, Arnoldi belongs to a class of linear algebra algorithms (based on the idea of Krylov subspaces) that give a partial result after a relatively small number of iterations. This is in contrast to so-called direct methods, which must complete to give any useful results.

Arnoldi iteration is a typical large sparse matrix algorithm: It does not access the elements of the matrix directly, but rather makes the matrix map vectors and makes its conclusions from their images. This is the motivation for building the Krylov subspace.

Krylov subspaces and the power iteration[edit]

An intuitive method for finding an eigenvalue (specifically the largest eigenvalue) of a given m × m matrix is the power iteration. Starting with a random initial vector b, this method calculates Ab, A2b, A3b,… iteratively storing and normalizing the result into b on every turn. This sequence converges to the eigenvector corresponding to the largest eigenvalue, . However, much potentially useful computation is wasted by using only the final result, . This suggests that instead, we form the so-called Krylov matrix:

The columns of this matrix are not orthogonal, but in principle, we can extract an orthogonal basis, via a method such as Gram–Schmidt orthogonalization. The resulting set of vectors is thus an orthogonal basis of the Krylov subspace, . We may expect the vectors of this basis to give good approximations of the eigenvectors corresponding to the largest eigenvalues, for the same reason that approximates the dominant eigenvector.

The Arnoldi iteration[edit]

The process described above is intuitive. Unfortunately, it is also unstable. This is where the Arnoldi iteration enters.

The Arnoldi iteration uses the stabilized Gram–Schmidt process to produce a sequence of orthonormal vectors, q1, q2, q3, …, called the Arnoldi vectors, such that for every n, the vectors q1, …, qn span the Krylov subspace . Explicitly, the algorithm is as follows:

  • Start with an arbitrary vector q1 with norm 1.
  • Repeat for k = 2, 3, …
    • for j from 1 to k − 1

The j-loop projects out the component of in the directions of . This ensures the orthogonality of all the generated vectors.

The algorithm breaks down when qk is the zero vector. This happens when the minimal polynomial of A is of degree k. In most applications of the Arnoldi iteration, including the eigenvalue algorithm below and GMRES, the algorithm has converged at this point.

Every step of the k-loop takes one matrix-vector product and approximately 4mk floating point operations.

In the programming language python:

 1 import numpy as np
 2 def arnoldi_iteration(A,b,nimp):
 3     """
 4     Input
 5     A: (nxn matrix)
 6     b: (initial vector)
 7     nimp: number of iterations
 9     Returns Q, h
11     """
12     m = A.shape[0] # Shape of the input matrix
14     h = np.zeros((nimp+1, nimp))    # Creates a zero matrix of shape (n+1)x n
15     Q = np.zeros((m, nimp+1))       # Creates a zero matrix of shape m x n
17     q  = b/np.linalg.norm(b)        # Normalize the input vector
18     Q[:, 0] = q                     # Adds q to the first column of Q
20     for n in range(nimp):           
21         v =                # A*q_0
22         for j in range(n+1):
23             h[j, n] = Q[:,j]*v      
24             v = v - h[j,n]*Q[:,j]   
26         h[n+1, n] = np.linalg.norm(v)
27         q = v / h[n+1, n]
28         Q[:, n+1] = q
29     return Q, h

Properties of the Arnoldi iteration[edit]

Let Qn denote the m-by-n matrix formed by the first n Arnoldi vectors q1, q2, …, qn, and let Hn be the (upper Hessenberg) matrix formed by the numbers hj,k computed by the algorithm:

We then have

This yields an alternative interpretation of the Arnoldi iteration as a (partial) orthogonal reduction of A to Hessenberg form. The matrix Hn can be viewed as the representation in the basis formed by the Arnoldi vectors of the orthogonal projection of A onto the Krylov subspace .

The matrix Hn can be characterized by the following optimality condition. The characteristic polynomial of Hn minimizes ||p(A)q1||2 among all monic polynomials of degree n. This optimality problem has a unique solution if and only if the Arnoldi iteration does not break down.

The relation between the Q matrices in subsequent iterations is given by


is an (n+1)-by-n matrix formed by adding an extra row to Hn.

Finding eigenvalues with the Arnoldi iteration[edit]

The idea of the Arnoldi iteration as an eigenvalue algorithm is to compute the eigenvalues of the orthogonal projection of A onto the Krylov subspace. This projection is represented by Hn. The eigenvalues of Hn are called the Ritz eigenvalues. Since Hn is a Hessenberg matrix of modest size, its eigenvalues can be computed efficiently, for instance with the QR algorithm. This is an example of the Rayleigh-Ritz method.

It is often observed in practice that some of the Ritz eigenvalues converge to eigenvalues of A. Since Hn is n-by-n, it has at most n eigenvalues, and not all eigenvalues of A can be approximated. Typically, the Ritz eigenvalues converge to the extreme eigenvalues of A. This can be related to the characterization of Hn as the matrix whose characteristic polynomial minimizes ||p(A)q1|| in the following way. A good way to get p(A) small is to choose the polynomial p such that p(x) is small whenever x is an eigenvalue of A. Hence, the zeros of p (and thus the Ritz eigenvalues) will be close to the eigenvalues of A.

However, the details are not fully understood yet. This is in contrast to the case where A is symmetric. In that situation, the Arnoldi iteration becomes the Lanczos iteration, for which the theory is more complete.

Implicitly restarted Arnoldi method (IRAM)[edit]

Due to practical storage consideration, common implementations of Arnoldi methods typically restart after some number of iterations. One major innovation in restarting was due to Lehoucq and Sorensen who proposed the Implicitly Restarted Arnoldi Method.[1] They also implemented the algorithm in a freely available software package called ARPACK.[2] This has spurred a number of other variations including Implicitly Restarted Lanczos method.[3][4][5] It also influenced how other restarted methods are analyzed.[6] Theoretical results have shown that convergence improves with an increase in the Krylov subspace dimension n. However, an a-priori value of n which would lead to optimal convergence is not known. Recently a dynamic switching strategy [7] has been proposed which fluctuates the dimension n before each restart and thus leads to acceleration in the rate of convergence.

See also[edit]

The generalized minimal residual method (GMRES) is a method for solving Ax = b based on Arnoldi iteration.


  1. ^ R. B. Lehoucq & D. C. Sorensen (1996). "Deflation Techniques for an Implicitly Restarted Arnoldi Iteration". SIAM. doi:10.1137/S0895479895281484. 
  2. ^ R. B. Lehoucq; D. C. Sorensen & C. Yang (1998). "ARPACK Users Guide: Solution of Large-Scale Eigenvalue Problems with Implicitly Restarted Arnoldi Methods". SIAM. 
  3. ^ D. CALVETTI; L. REICHEL & D.C. SORENSEN (1994). "An Implicitly Restarted Lanczos Method for Large Symmetric Eigenvalue Problems". ETNA. 
  4. ^ E. Kokiopoulou; C. Bekas & E. Gallopoulos (2003). "An Implicitly Restarted Lanczos Bidiagonalization Method for Computing Smallest Singular Triplets" (PDF). SIAM. 
  5. ^ Zhongxiao Jia (2002). "The refined harmonic Arnoldi method and an implicitly restarted refined algorithm for computing interior eigenpairs of large matrices". Appl. Numer. Math. doi:10.1016/S0168-9274(01)00132-5. 
  6. ^ Andreas Stathopoulos and Yousef Saad and Kesheng Wu (1998). "Dynamic Thick Restarting of the Davidson, and the Implicitly Restarted Arnoldi Methods". SIAM. doi:10.1137/S1064827596304162. 
  7. ^ K.Dookhitram, R. Boojhawon & M. Bhuruth (2009). "A New Method For Accelerating Arnoldi Algorithms For Large Scale Eigenproblems". Math. Comput. Simulat. doi:10.1016/j.matcom.2009.07.009. 
  • W. E. Arnoldi, "The principle of minimized iterations in the solution of the matrix eigenvalue problem," Quarterly of Applied Mathematics, volume 9, pages 17–29, 1951.
  • Yousef Saad, Numerical Methods for Large Eigenvalue Problems, Manchester University Press, 1992. ISBN 0-7190-3386-1.
  • Lloyd N. Trefethen and David Bau, III, Numerical Linear Algebra, Society for Industrial and Applied Mathematics, 1997. ISBN 0-89871-361-7.
  • Jaschke, Leonhard: Preconditioned Arnoldi Methods for Systems of Nonlinear Equations. (2004). ISBN 2-84976-001-3
  • Implementation: Matlab comes with ARPACK built-in. Both stored and implicit matrices can be analyzed through the eigs() function.