Soft constraints can be implemented inefficiently using hard constraints and dual decomposition-by introducing copies of output variables and an auxiliary graphical model, as in .
at every iteration of dual decomposition, MAP must be run in this auxiliary model.