Structured Prediction with Stronger Consistency Guarantees