A useful computation when acting in a complex environment is to infer the marginal probabilities or most probable states of task-relevant variables. probabilistic graphical models can efficiently represent the structure of such complex data, but performing these inferences is generally