DIIS
DIIS (direct inversion in the iterative subspace or direct inversion of the iterative subspace), also known as Pulay mixing, is a technique for extrapolating the solution to a set of linear equations by directly minimizing an error residual (e.g.[src] a Newton–Raphson step size) with respect to a linear combination of known sample vectors.[src] 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.[src] At a given iteration, the approach constructs a linear combination of approximate error vectors from previous iterations.[src] The coefficients of the linear combination are determined so to best approximate, in a least squares sense, the null vector.[src] The newly determined coefficients are then used to extrapolate the function variable for the next iteration.[src] The method has been shown to be equivalent to the pre-existing Anderson acceleration , and to reduce to GMRES in the linear case .[src]
DIIS (direct inversion in the iterative subspace or direct inversion of the iterative subspace), also known as Pulay mixing, is a technique for extrapolating the solution to a set of linear equations by directly minimizing an error residual (e.g.[src] a Newton–Raphson step size) with respect to a linear combination of known sample vectors.[src] 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.[src] At a given iteration, the approach constructs a linear combination of approximate error vectors from previous iterations.[src] The coefficients of the linear combination are determined so to best approximate, in a least squares sense, the null vector.[src] The newly determined coefficients are then used to extrapolate the function variable for the next iteration.[src] The method has been shown to be equivalent to the pre-existing Anderson acceleration , and to reduce to GMRES in the linear case .[src] \mathbf e_{m+1}=\sum_{i = 1}^m\ c_i\mathbf e_i.[src] The DIIS method seeks to minimize the norm of under the constraint that the coefficients sum to one.[src] 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 ( ) and an error vector.[src] In the DIIS approximation, we get: \begin{align} \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{align} 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.[src] The minimization is done by a Lagrange multiplier technique.[src] Introducing an undetermined multiplier , a Lagrangian is constructed as \begin{align} L&=\left\|\mathbf e_{m+1}\right\|^2-2\lambda\left(\sum_i\ c_i-1\right),\\ &=\sum_{ij}c_jB_{ji}c_i-2\lambda\left(\sum_i\ c_i-1\right),\text{ where } B_{ij}=\langle\mathbf e_j, \mathbf e_i\rangle.[src] \end{align} Equating zero to the derivatives of with respect to the coefficients and the multiplier leads to a system of linear equations to be solved for the coefficients (and the Lagrange multiplier).[src] \begin{bmatrix} B_{11} & B_{12} & B_{13} & ...[src] & B_{1m} & -1 \\ B_{21} & B_{22} & B_{23} & ...[src] & B_{2m} & -1 \\ B_{31} & B_{32} & B_{33} & ...[src] & B_{3m} & -1 \\ \vdots & \vdots & \vdots & \vdots & \ddots & \vdots \\ B_{m1} & B_{m2} & B_{m3} & ...[src] & B_{mm} & -1 \\ 1 & 1 & 1 & ...[src] & 1 & 0 \end{bmatrix} \begin{bmatrix} c_1 \\ c_2 \\ c_3 \\ \vdots \\ c_m \\ \lambda \end{bmatrix}= \begin{bmatrix} 0 \\ 0 \\ 0 \\ \vdots \\ 0 \\ 1 \end{bmatrix} Moving the minus sign to , results in an equivalent symmetric problem.[src] \begin{bmatrix} B_{11} & B_{12} & B_{13} & ...[src] & B_{1m} & 1 \\ B_{21} & B_{22} & B_{23} & ...[src] & B_{2m} & 1 \\ B_{31} & B_{32} & B_{33} & ...[src] & B_{3m} & 1 \\ \vdots & \vdots & \vdots & \vdots & \ddots & \vdots \\ B_{m1} & B_{m2} & B_{m3} & ...[src] & B_{mm} & 1 \\ 1 & 1 & 1 & ...[src] & 1 & 0 \end{bmatrix} \begin{bmatrix} c_1 \\ c_2 \\ c_3 \\ \vdots \\ c_m \\ -\lambda \end{bmatrix}= \begin{bmatrix} 0 \\ 0 \\ 0 \\ \vdots \\ 0 \\ 1 \end{bmatrix} The coefficients are then used to update the variable as \mathbf p_{m+1}=\sum_{i = 1}^m c_i\mathbf p_i.[src]
33 sentences · 33 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"DIIS." encyclopegia.org, 2026, https://encyclopegia.org/wiki/diis. Accessed 06 December 2026.
Chicago
"DIIS." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/diis.
APA
encyclopegia.org. (2026). DIIS. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/diis
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON