# DIIS

DIIS (direct inversion in the iterative subspace or direct inversion of the iterative subspace), also known as Pulay mixing, is an extrapolation technique. DIIS was developed by Peter Pulay in the field of computational quantum chemistry with the intent to accelerate and stabilize the convergence of the Hartree–Fock self-consistent field method.[1][2]

At a given iteration, the approach constructs a linear combination of approximate error vectors from previous iterations. The coefficients of the linear combination are determined so to best approximate, in a least squares sense, the null vector. The newly determined coefficients are then used to extrapolate the function variable for the next iteration.

## Details

At each iteration, an approximate error vector, ei, corresponding to the variable value, pi is determined. After sufficient iterations, a linear combination of m previous error vectors is constructed

${\displaystyle \mathbf {e} _{m+1}=\sum _{i=1}^{m}\ c_{i}\mathbf {e} _{i}.}$

The DIIS method seeks to minimize the norm of em+1 under the constraint that the coefficients sum to one. The reason why the coefficients must sum to one can be seen if we write the trial vector as the sum of the exact solution (pf) and an error vector. In the DIIS approximation, we get:

{\displaystyle {\begin{aligned}\mathbf {p} &=\sum _{i}c_{i}\left(\mathbf {p} ^{\text{f}}+\mathbf {e} _{i}\right)\\&=\mathbf {p} ^{\text{f}}\sum _{i}c_{i}+\sum _{i}c_{i}\mathbf {e} _{i}\end{aligned}}}

We minimize the second term while it is clear that the sum coefficients must be equal to one if we want to find the exact solution. The minimization is done by a Lagrange multiplier technique. Introducing an undetermined multiplier λ, a Lagrangian is constructed as

{\displaystyle {\begin{aligned}L&=\left\|\mathbf {e} _{m+1}\right\|^{2}-\lambda \left(\sum _{i}\ c_{i}-1\right),\\&=\sum _{ij}c_{j}B_{ji}c_{i}-\lambda \left(\sum _{i}\ c_{i}-1\right),{\text{ where }}B_{ij}=\langle \mathbf {e} _{j},\mathbf {e} _{i}\rangle .\end{aligned}}}

Equating zero to the derivatives of L with respect to the coefficients and the multiplier leads to a system of (m + 1) linear equations to be solved for the m coefficients (and the Lagrange multiplier). The coefficients are then used to update the variable as

${\displaystyle \mathbf {p} _{m+1}=\sum _{i=1}^{m}c_{i}\mathbf {p} _{i}.}$

## Citations

1. ^ Pulay, Péter (1980). "Convergence acceleration of iterative sequences. the case of SCF iteration". Chemical Physics Letters. 73 (2): 393–398. doi:10.1016/0009-2614(80)80396-4.
2. ^ Pulay, Péter (1982). "Improved SCF Convergence Acceleration". Journal of Computational Chemistry. 3 (4): 556–560. doi:10.1002/jcc.540030413.

## References

• Garza, Alejandro J.; Scuseria, Gustavo E. (2012). "Comparison of self-consistent field convergence acceleration techniques". Journal of Chemical Physics. 173 (5): 054110. doi:10.1063/1.4740249.
• Rohwedder, Thorsten; Schneider, Reinhold (2011). "An analysis for the DIIS acceleration method used in quantum chemistry calculations". Journal of Mathematical Chemistry. 49 (9): 1889. doi:10.1007/s10910-011-9863-y.