approximate inference and complex graphical models 872634