In mathematics, Anderson acceleration, also called Anderson mixing, is a method for the acceleration of the convergence rate of fixed-point iterations. Introduced by Donald G. Anderson, this technique can be used to find the solution to fixed point equations f(x)=x often arising in the field of computational science.
Definition Given a function f:ℝn→ℝn, consider the problem of finding a fixed point of f, which is a solution to the equation f(x)=x. A classical approach to the problem is to employ a fixed-point iteration scheme; that is, given an initial guess x0 for the solution, to compute the sequence xk+1=f(xk) until some convergence criterion is met. However, the convergence of such a scheme is not guaranteed in general; moreover, the rate of convergence is usually linear, which can become too slow if the evaluation of the function f is computationally expensive. Anderson acceleration is a method to accelerate the convergence of the fixed-point sequence. Define the residual g(x)=f(x)−x, and denote fk=f(xk) and gk=g(xk) (where xk corresponds to the sequence of iterates from the previous paragraph). Given an initial guess x0 and an integer parameter m≥1, the method can be formulated as follows:
x1=f(x0) ∀k=1,2,… mk=min{m,k} Gk=[gk−mk…gk] αk=argminα∈Ak‖Gkα‖2,whereAk={α=(α0,…,αmk)∈ℝmk+1:∑i=0mkαi=1} xk+1=∑i=0mk(αk)ifk−mk+i where the matrix–vector multiplication Gkα=∑i=0mk(α)igk−mk+i, and (α)i is the ith element of α. Conventional stopping criteria can be used to end the iterations of the method. For example, iterations can be stopped when ‖xk+1−xk‖ falls under a prescribed tolerance, or when the residual g(xk) falls under a prescribed tolerance. With respect to the standard fixed-point iteration, the method has been found to converge faster and be more robust, and in some cases avoid the divergence of the fixed-point sequence.
Derivation For the solution x∗, we know that f(x∗)=x∗, which is equivalent to saying that g(x∗)=0→. We can therefore rephrase the problem as an optimization problem where we want to minimize ‖g(x)‖2. Instead of going directly from xk to xk+1 by choosing xk+1=f(xk) as in fixed-point iteration, let's consider an intermediate point x'k+1 that we choose to be the linear combination x'k+1=Xkαk, where the coefficient vector αk∈Ak, and Xk=[xk−mk…xk] is the matrix containing the last mk+1 points, and choose x'k+1 such that it minimizes ‖g(x'k+1)‖2. Since the elements in αk sum to one, we can make the first order approximation g(Xkαk)=g(∑i=0mk(αk)ixk−mk+i)≈∑i=0mk(αk)ig(xk−mk+i)=Gkαk and our problem becomes to find the α that minimizes ‖Gkα‖2. After having found αk, we could in principle calculate x'k+1. However, since f is designed to bring a point closer to x∗, f(x'k+1) is probably closer to x∗ than x'k+1 is, so it makes sense to choose xk+1=f(x'k+1) rather than xk+1=x'k+1. Furthermore, since the elements in αk sum to one, we can make the first order approximation f(x'k+1)=f(∑i=0mk(αk)ixk−mk+i)≈∑i=0mk(αk)if(xk−mk+i)=∑i=0mk(αk)ifk−mk+i. We therefore choose xk+1=∑i=0mk(αk)ifk−mk+i.
Solution of the minimization problem At each iteration of the algorithm, the constrained optimization problem argmin‖Gkα‖2, subject to α∈Ak needs to be solved. The problem can be recast in several equivalent formulations, yielding different solution methods which may result in a more convenient implementation:
defining the matrices 𝒢k=[gk−mk+1−gk−mk…gk−gk−1] and 𝒳k=[xk−mk+1−xk−mk…xk−xk−1], solve γk=argminγ∈ℝmk‖gk−𝒢kγ‖2, and set xk+1=xk+gk−(𝒳k+𝒢k)γk; solve θk={(θk)i}i=1mk=argminθ∈ℝmk‖gk+∑i=1mkθi(gk−i−gk)‖2, then set xk+1=xk+gk+∑j=1mk(θk)j(xk−j−xk+gk−j−gk). For both choices, the optimization problem is in the form of an unconstrained linear least-squares problem, which can be solved by standard methods including QR decomposition and singular value decomposition, possibly including regularization techniques to deal with rank deficiencies and conditioning issues in the optimization problem. Solving the least-squares problem by solving the normal equations is generally not advisable due to potential numerical instabilities and generally high computational cost. Stagnation in the method (i.e. subsequent iterations with the same value, xk+1=xk) causes the method to break down, due to the singularity of the least-squares problem. Similarly, near-stagnation (xk+1≈xk) results in bad conditioning of the least squares problem. Moreover, the choice of the parameter m might be relevant in determining the conditioning of the least-squares problem, as discussed below.
Relaxation The algorithm can be modified introducing a variable relaxation parameter (or mixing parameter) βk>0. At each step, compute the new iterate as xk+1=(1−βk)∑i=0mk(αk)ixk−mk+i+βk∑i=0mk(αk)if(xk−mk+i).The choice of βk is crucial to the convergence properties of the method; in principle, βk might vary at each iteration, although it is often chosen to be constant.
Choice of m The parameter m determines how much information from previous iterations is used to compute the new iteration xk+1. On the one hand, if m is chosen to be too small, too little information is used and convergence may be undesirably slow. On the other hand, if m is too large, information from old iterations may be retained for too many subsequent iterations, so that again convergence may be slow. Moreover, the choice of m affects the size of the optimization problem. A too large value of m may worsen the conditioning of the least squares problem and the cost of its solution. In general, the particular problem to be solved determines the best choice of the m parameter.
Choice of mk With respect to the algorithm described above, the choice of mk at each iteration can be modified. One possibility is to choose mk=k for each iteration k (sometimes referred to as Anderson acceleration without truncation). This way, every new iteration xk+1 is computed using all the previously computed iterations. A more sophisticated technique is based on choosing mk so as to maintain a small enough conditioning for the least-squares problem.
… excerpt ends here. Continue reading the full article.