VLAE icon indicating copy to clipboard operation
VLAE copied to clipboard

'The factorization could not be completed because the input is not positive-definite'

Open davidbuterez opened this issue 1 year ago • 0 comments

Hi,

I am experimenting with the VLAE model in a graph setting (VGAE). The main change to the standard VLAE is a graph convolution-based encoder and a reconstruction loss term.

I noticed that my models tend to crash after a few epochs (<10) with the following error:

RuntimeError: torch.linalg.cholesky: (Batch element 22): The factorization could not be completed because the input is not positive-definite (the leading minor of order 50 is not positive-definite).

This also happens when the loss becomes largely negative. If it helps, I noticed that the p_x_z loss term tends to grow much quicker than the others (graph based on the mean):

bitmap

Any advice is appreciated (can also provide more details if necessary).

davidbuterez avatar Sep 20 '22 15:09 davidbuterez