Dual Decomposition for Marginal Inference