Differential equation and probability inspired graph neural networks for latent variable learning