Negative diagonal elements in Incomplete Cholesky Decompostion

In summary: It is very technical but interesting.In summary, the conversation discusses the problem of performing incomplete Cholesky decomposition of sparse matrices. The algorithm used for this purpose is described in a Wikipedia page and involves ignoring zero elements in the matrix. However, sometimes this results in negative diagonal elements in the decomposition, leading to questions about the cause of this issue and a workaround involving multiplying the diagonal values by a factor. The conversation also delves into the concept of incomplete decomposition and its use as a preconditioner in solving systems of equations with large sparse symmetric positive definite matrices. Additionally, the concept of reducing the condition number of the matrix is mentioned as a way to speed up iterative solvers. A paper on the topic is also referenced.
  • #1
Hassan2
426
5
Dear all,

I'm facing a problem in performing incomplete Cholesky decomposition of sparse matrices. I use the algorithm which avoids talking square roots, given in here: http://en.wikipedia.org/wiki/Cholesky_decomposition and apply it to sparse matrices by just skipping the zeros ( no filling). My matrices are certainly symmetric and positive definite but the algorithm sometimes give negative diagonal elements. I have two questions regarding this:

1. Is this the consequence of ignoring zero elements in the sparse matrices or is due to error accumulation?

2. In order to go around the problem, I multiply the diagonal values by a number larger than 1.0, before decomposition. For small matrices, 1.05 may be enough but as the matrix sizes grows, the factor is not large enough. However with factor 1.2, the algorithm has never given negative diagonal values even for matrices of 1000,000 by 1000,000. Does anyone have any explanation as why the number helps and what is the smallest number which assure all positive diagonal elements?

Your help would be appreciated.
 
Physics news on Phys.org
  • #2
By "incomplete decomposition" do you mean ##LDL^T## decomposition?

Changing the diagonal terms of the matrix to "make it work" doesn't make any sense to me. You can easily check if your code is correct by multiplying the ##LDL^T## matrices numerically and comparing with the original matrix.

If your matrices really are positive definite, all the terms in D will be positive.

You can't "ignore fillin". For example
$$\begin{bmatrix}1 & 1 & 1 \\ 1 & 2 & 0 \\ 1 & 0 & 3 \end{bmatrix} =
\begin{bmatrix} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 1 & -1 & 1 \end{bmatrix}
\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}
\begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & -1 \\ 0 & 0 & 1 \end{bmatrix}$$
The 0 in the original matrix is "filled in" in the decomposition.
 
  • #3
Thanks AlephZero,

Sorry, I was supposed to explain a little bit more.

The incomplete decomposition is something special and it is used as a preconditioner in solving systems of equation with (large) sparse symmetric positive definite matrices.

The matrices are large; usually larger than 50,000 by 50,000, and very sparse; less than 100 non-zero elements in a row. Such systems of equations appear in numerical methods such as finite element method or finite difference method. A complete decomposition is almost impossible due to the size of the matrix and since the system is solved by iterative methods, even an approximation of LDLT helps a lot. The approximation is called incomplete Cholseky decomposition which is in fact the LDLT of symmetric positive definite matrices. In this approximation, the algorithm is done on nonzero elements of the matrix only.

Since the decomposition itself is an approximation, some change in it may still be all right. Let me explain it by mathematics.

Imagine the following system of equation:

[itex] Ax=b[/itex] .if I can find a matrix M so that M-1A≈I , then the equation [itex] M^{-1}Ax=M^{-1}b[/itex] can be solved in much less number of iteration than the original equation. In most cases the iterative method on the original equation doesn't even converge. The incomplete LDLT is good enough for the purpose and due to the sparsity of the matrix, it's computationally affordable.

When we perform an "incomplete" decomposition of A, then LDL=M≈A also M*(1.2I)≈A.

Perhaps the negative diagonal elements are in fact the consequence of "no-fill-in". The diagonals are guaranteed to be positive ( for positive definite matrices) for complete decomposition. The incomplete certainly have different result. I'm not clear about the details. The method is widely used in finite element software but I don't know how they overcome the problem. My trick works because I solve the equations is low enough numbers of iteration but I have the fear that in some cases one of diagonal elements become zero. This mistake would be unforgivable.
 
  • #4
Hassan2 said:
Thanks AlephZero,

Sorry, I was supposed to explain a little bit more.

The incomplete decomposition is something special and it is used as a preconditioner in solving systems of equation with (large) sparse symmetric positive definite matrices.

The matrices are large; usually larger than 50,000 by 50,000, and very sparse; less than 100 non-zero elements in a row. Such systems of equations appear in numerical methods such as finite element method or finite difference method. A complete decomposition is almost impossible due to the size of the matrix and since the system is solved by iterative methods, even an approximation of LDLT helps a lot. The approximation is called incomplete Cholseky decomposition which is in fact the LDLT of symmetric positive definite matrices. In this approximation, the algorithm is done on nonzero elements of the matrix only.
OK, now I understand what you meant.

Imagine the following system of equation:

[itex] Ax=b[/itex] .if I can find a matrix M so that M-1A≈I , then the equation [itex] M^{-1}Ax=M^{-1}b[/itex] can be solved in much less number of iteration than the original equation.

That seems a bit confused. You can't find "a" matrix M such that M-1A≈I. The inverse of the matrix A is unique. To speed up an iterative solver, you want to find a matrix which is suitably sparse, such that M-1A has a smaller condition number than A, but M is not the inverse of A.

Perhaps the negative diagonal elements are in fact the consequence of "no-fill-in".
Correct, the algorithm as you describe it is not guaranteed to work for any matrix.

This paper http://www.cs.indiana.edu/pub/techreports/TR394.pdf and the references in it might be useful.
 
  • #5
Many thanks.

Yes it's about reducing the condition number. I don't understand the concept of "condition number" but I think when the matrix becomes more diagonally dominant, the condition number becomes smaller.

Thanks for the paper.
 

1. What are negative diagonal elements in Incomplete Cholesky Decomposition?

Negative diagonal elements in Incomplete Cholesky Decomposition are the values on the diagonal of the decomposed matrix that are negative. These negative values can occur when the original matrix is not positive definite.

2. Why do negative diagonal elements occur in Incomplete Cholesky Decomposition?

Negative diagonal elements occur in Incomplete Cholesky Decomposition when the original matrix is not positive definite. This means that the matrix does not have all positive eigenvalues.

3. Can negative diagonal elements be ignored in Incomplete Cholesky Decomposition?

No, negative diagonal elements cannot be ignored in Incomplete Cholesky Decomposition. They indicate that the original matrix is not positive definite and ignoring them can result in incorrect decomposed matrices.

4. How do negative diagonal elements affect the accuracy of Incomplete Cholesky Decomposition?

Negative diagonal elements can significantly affect the accuracy of Incomplete Cholesky Decomposition. They can result in inaccurate decomposed matrices and can lead to incorrect solutions for linear systems of equations.

5. Can negative diagonal elements in Incomplete Cholesky Decomposition be fixed?

Yes, negative diagonal elements in Incomplete Cholesky Decomposition can be fixed by using a modified version of the decomposition algorithm. This modified algorithm, known as Modified Incomplete Cholesky Decomposition, can handle matrices with negative diagonal elements and produce accurate decomposed matrices.

Similar threads

  • Linear and Abstract Algebra
Replies
1
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
2K
Replies
2
Views
3K
  • Advanced Physics Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
5K
  • Math Proof Training and Practice
3
Replies
83
Views
17K
  • Linear and Abstract Algebra
Replies
3
Views
2K
  • Programming and Computer Science
Replies
2
Views
2K
  • Atomic and Condensed Matter
Replies
3
Views
863
  • Classical Physics
Replies
1
Views
2K
Back
Top