Exploring Variational Inference: Loss Functions, Efficient Approximations and Stability-Based Generalization