On Prior Distributions and Approximate Inference for Structured Variables